PDA

View Full Version : EnableProtectiveStop = 0


Brad07
12th January 2012, 08:40 AM
When using the coding:

ExtFml("TradeSim.EnableProtectiveStop",0)

Does anyone know precisely how this works? The User Manual suggests that it means that a trade can be stopped out on the day of entry (page 72).

However, does this mean that TradeSim can determine which occured first: entry or stop? Logically of course it can't. So when the Inactivity Delay is set to "0", how does TradeSim circumvent erroneously exiting out of a trade it entered into when say (for instance for Long trades) the low occured first and the high (which triggered the entry into the trade) occured later in the day?

Perhaps it might mean that I have to avoid entering trades for which the low price already exists which would have triggered a stop!

oztrader
12th January 2012, 10:53 AM
Hi Brad07,

ExtFml("TradeSim.EnableProtectiveStop",0)

Yes you are correct in that the value "0" in the above code will allow the trade to be exited on the entry bar.

The most obvious way to deal with the problem is to either enter at the open price or to delay the Protective Stop from becoming active until the next bar.

Cheers,
Rob