Here there are the differences between Prev_calculated and Prev_calculated-1 in bars loop using prev_calculated-1 int OnCalculate ( const int rates_total
What is wrong in calling the Empty indicator using CIndicator class: The output is the following: handle=-1 The caller: CIndicator IDiv; ...... int OnInit() {
Hi, I'm developing an indicator based on sma of a limited set of bars. Trying different way to calculate sma I obtain different result for the same bar. I use 4 different way to calculate the sma: 1) using SimpleMAOnBuffer on all available bars
Is it possible to fix canvas size to half of datas dimension and to set a scroll on the orizzontal axis? Here I attach a code which can set as input canva size. If canvas size is bigger than datas size no problem, othervise the chart doesn't display
Hi, I converted the Battleplan indicator (found in the network) from MT4 to MT5 successfully, but I still have a problem. The diffulty I enconter is to do the indicator in MT5 to paint the battleplan for future time date. In MT4 the indicator paint
Can anyone explainme why trying to force scale to 1 inside an indicator I get the error 4210? Here the code in the init (): long scala; ResetLastError(); bool result; result= ChartGetInteger(ChartID(),CHART_SCALE_PT_PER_BAR,0,scala); if (result!=