View Full Version : TIME STOPS AND OPTIONS
gawdib
21st December 2003, 02:06 AM
SINCE I TRADE OPTIONS, I NEED TO BUILD INTO MY TESTING A LIMITED NUMBER OF DAYS DURIJNG WHICH I HAVE TO HAVE MY SYSTEM WORK. HOW DOES ONE DO THIS? THANK YOU.
David Samborsky
21st December 2003, 05:32 AM
Use the SetTimeStop function.
ExtFml(“TradeSim.SetTimeStop”,NBARS);
This function is used to limit the maximum number of bars before the RecordTrades function is forced to exit a trade irrespective of the condition of the ExitTrigger. When a trade is entered and a valid exit trigger has not been detected after NBARS have been counted the trade will automatically be terminated on the next bar. If NBARS is set to zero then the time stop will be disabled. A call to the Initialize function disables the effects of a call to this function.
Example
The following example sets up a time stop to automatically exit a trade after 60 bars have passed and an ExitTrigger has not been detected.
ExtFml(“TradeSim.SetTimeStop”,60);
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.