PDA

View Full Version : SetTimeStop - TradeSim


gordont
17th February 2005, 12:13 AM
I am trying to test a trading plan using the SetTimeStop Exit Control Function.

I am unable to see how to code the Exit Price to account for when the SetTimeStop is actuated.

There needs to be an IF statement that sets the Exit Price to be the Stop Loss Price unless the SetTimeStop is actuated, when the closing price will be used. What is the parameter that is used to count the number of days in the trade?

David Samborsky
17th February 2005, 01:17 PM
What is the parameter that is used to count the number of days in the trade?

This is internal parameter. When the trade period exceeds the number of bars specified by the time stop then trade exits at a price set by the ExitPrice. However if a protective stop is breached at/or any time before the time stop then this has precedence and the exit price is set according to the flow chart in the user manual for protective stop function.