Hi
I am not getting my indicator on the screen when I compile and run the code below. do I need to drag it to a chart or to id a window?
Please take a look to see if all else is Ok.
thx
I am not getting my indicator on the screen when I compile and run the code below. do I need to drag it to a chart or to id a window?
Please take a look to see if all else is Ok.
thx
MQL5:
#property description "stoch_change" #property indicator_chart_window #property indicator_buffers 1 #property indicator_plots 1 #property indicator_type1 DRAW_LINE #property indicator_style1 STYLE_SOLID #property indicator_color1 Blue //--- indicator double rlBuffer [300]; int OnInit() { // a class here populates the rlBuffer return(0); } int OnCalculate(const int rates_total, ... { SetIndexBuffer(0,rlBuffer,INDICATOR_DATA);
Last edited by a moderator: