Is there a recommended way or example available on how to structure a strategy efs that evaluates trade entry conditions based on indicator values for the prior bar (-1) but also evlauates price action for the current bar for entry and exit conditions that will work for back testing, realtime and tick replay?
I usually encapsulate my strategy in a _NEWBAR loop and set a flag for bRealtime to query realtime or tick replay to execute generic broker calls or the strategy methods.
I also always use -1 on completed bars (setup bar) for indicator entry but need to be able to process trade by trade in realtime and tick replay for the actual trade entry trigger and also for management of stops and profit targets.
Not sure if I should execute the entire efs outside of _NEWBAR control which I thought would work and seems fine in a back test, but is inefficient?
I'm also seeing strange results in tick replay with or without SetComputeOnClose, which I thought would only pass control to the efs upon bar completion?
I normally evaluate indicators on -1 but also added a "trend test" of close(0) above a EMA and knew when running realtime that false signals could occur intrabar.
Does processing tick by tick have a seemingly disporportionate effect on indicator values?
Normally when using a 15 minute chart interval that would have "included" say 100 ticks, and visually if watching the 15 minute chart, CCI and EMA values "seem" to change gradually over time in an incremental fashion.
Intuitively I thought a 1 tick trade, which could represent 1 percent of the prior bars activity has a disporpotional effect on the values returned?
Thanks,
Glen
I usually encapsulate my strategy in a _NEWBAR loop and set a flag for bRealtime to query realtime or tick replay to execute generic broker calls or the strategy methods.
I also always use -1 on completed bars (setup bar) for indicator entry but need to be able to process trade by trade in realtime and tick replay for the actual trade entry trigger and also for management of stops and profit targets.
Not sure if I should execute the entire efs outside of _NEWBAR control which I thought would work and seems fine in a back test, but is inefficient?
I'm also seeing strange results in tick replay with or without SetComputeOnClose, which I thought would only pass control to the efs upon bar completion?
I normally evaluate indicators on -1 but also added a "trend test" of close(0) above a EMA and knew when running realtime that false signals could occur intrabar.
Does processing tick by tick have a seemingly disporportionate effect on indicator values?
Normally when using a 15 minute chart interval that would have "included" say 100 ticks, and visually if watching the 15 minute chart, CCI and EMA values "seem" to change gradually over time in an incremental fashion.
Intuitively I thought a 1 tick trade, which could represent 1 percent of the prior bars activity has a disporpotional effect on the values returned?
Thanks,
Glen
Comment