I am setting EntriesPerDirection and ErrorHandling in the Initialize section of a strategy but they appear to have no effect. i.e. I do this
EntryHandling = EntryHandling.UniqueEntries;
EntriesPerDirection = 3;
But when I print them in the OnBarUpdate section they revert to their default values. If I set them in the strategy parameters they work fine.
What am I doing wrong?
Thanks,
Ian
PS while I'm here is there any way to determine the price that a trailing stop is set to? I'd like to draw a dot on the chart that shows the value of the trailstop for a bar. Also (maybe I should have started a new thread for this...) if SetTrailStop is set to a price, does that mean the trailstop is set to the difference between the price the stop is set to and the current price? The bar Open? (and will trail at that value?)
Thanks again...
Comment