Delayed entery of stop orders?
Delayed entery of stop orders?
I am autotrading with MC 7 beta3, once a buy order is triggered and filled, the profit target immediately is placed in market. However the the trailing stop, and stop loss orders don't get entered until the next bar. Presently I am using a 20 minute bar, so I am with out a stop for 20 minutes, which can be a long time if your day trading, in these markets. Do you know if there is away to resolve this? So, the stop orders get entered immediately after the fill, like the profit target order.
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
Re: Delayed entery of stop orders?
can you post your code snippet?I am autotrading with MC 7 beta3, once a buy order is triggered and filled, the profit target immediately is placed in market. However the the trailing stop, and stop loss orders don't get entered until the next bar. Presently I am using a 20 minute bar, so I am with out a stop for 20 minutes, which can be a long time if your day trading, in these markets. Do you know if there is away to resolve this? So, the stop orders get entered immediately after the fill, like the profit target order.
Re: Delayed entery of stop orders?
Not sure what you mean code snippet. I am using the standard signals in MC for the profit target LX, stop loss LX and dollar trailing LX if that helps?
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
Re: Delayed entery of stop orders?
depends on how you code your strategy,Not sure what you mean code snippet. I am using the standard signals in MC for the profit target LX, stop loss LX and dollar trailing LX if that helps?
the effect can be unexpected.
- Stan Bokov
- Posts: 963
- Joined: 18 Dec 2009
- Has thanked: 367 times
- Been thanked: 302 times
Re: Delayed entery of stop orders?
Dear iceman,
Make sure you either turn on IOG, or use RecalcLastBarAfter keyword to make sure your code calculates more than once per bar. If a stop order should be sent, it will be once it calculates.
Make sure you either turn on IOG, or use RecalcLastBarAfter keyword to make sure your code calculates more than once per bar. If a stop order should be sent, it will be once it calculates.