Steve Johnson![]() | I was researching this topic and tried the now.(month,day,hour,minute) technique in both OScript and as an OL stop. I tested as both a buy stop on the front end and sell stop. For EOD, both work, but only if Run Analysis or a data update is requested. Note that the data update does not trigger a time stop is there is no actual data update (e.g. data was updated Friday after market and a time stop is set for Monday - which happens to be a holiday - will not trigger because there is no new data). My initial interest was to have a time stop to close a position prior to an earnings date. Essentially this is a time based conditional order. This works fine for EOD if you want to close with a MOO order, but if you want to close at say 2:30 pm central, another analysis needs to be run. Putting OT in Auto mode with a run time of 14:30 is an option, but only addresses one specific time daily. Anyone know if an SDK solution could expose and use a time event? I'm guessing OP could be used to repeatedly run analysis throughout the day, but I have not explored that. Any suggestions appreciated. |