In OnBarUpdate(), an algo checks for entry signals and then updates a trailing stop value if applicable and in OnExecution() the algo handles the entry and sets the initial stop prices. If we get an entry signal and an entry is executed with the stop set, where in the steps of the algo does a stop get tested and eventually actioned? Does the stop get implicitly tested in OnBarUpdate prior to any of the code in OnBarUpdate? And if the stop is to be actioned, does the code move to OnExecution to do this and then back to OnBarUpdate to continue looping over each bar?
Thanks,
darmbk.
Comment