Use two limit orders on same position
Author: levyfred
Creation Date: 9/9/2009 1:24 AM
profile picture

levyfred

#1
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?
profile picture

Eugene

#2
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.
profile picture

levyfred

#3
ok, thanks!
profile picture

Cone

#4
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.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).