I want to sell all open positions in profit if price touch any Daily pivot line. My strategy works OnBar and i use OnTick to exit. My code has no compilation error but doesn't exit the winning positions. Any suggestion to correct the problem ? Thanks for any help...
API Support
Post subject: Re: OnTick exit if positions in profit
Consider logging relevant values (i.e. indicators, bars, orders etc.) in the decision points in the code such that you see which execution paths get taken and why, see: https://www.dukascopy.com/wiki/#IConsole/Logging_values