Hi,
Is that possible to create 2 limits orders on the same position.
For example, I want to buy if stock level reach wither A or B.
Can I write 2 lines as below
BuyAtLimit( bar+1, A );
BuyAtLimit( bar+1, B );
Or do I have to compute if A < B and then use BuyAtLimit one time only?
Size:
Color:
Hi,
Just as in real trading, it's possible to enter multiple limit orders to create multiple positions. For a single position system, the level first to trigger will create the trade.
Size:
Color:
ok, thanks!
Size:
Color:
It's not advisable to use limit orders this way unless you actually want to scale in to 2 positions. Since you said "the same Position", it's not clear what you're trying to do. If you only want one Position, then you should do the following -
CODE:
Please log in to see this code.
Size:
Color: