Forum

ChartApplyTemplate applying to _Symbol chartID, not desired ChartID

I want to apply a template on a chart other than the default chart for _Symbol. I can successfully create a new chart and pass that chartID down to a function of mine which is supposed to apply a template in the Template directory, based on a constructed name, to the new chart. ‌In the debugger I

how to recode mql4 function that retrieves a historical order's profit

I have an mql4 function that retrieves the last historical order and then the profit of that last order.... I can't figure out how to do that in mql5. In mql5, I can retrieve historical data on Orders and Deals. Orders are useless -- to the extent I can determine -- and it appears that any one