BO_NRP.mq4
BO_NRP.mq4 download link will appear after 10 seconds.
BO_NRP.mq4 Programming source code.
#property indicator_separate_window #property indicator_buffers 3 #property indicator_color1 Yellow extern int Length=8; double BO[]; double Raw1[], Raw2[]; int init() { IndicatorShortName("Blast Off"); IndicatorDigits(Digits); SetIndexStyle(0,DRAW_LINE); SetIndexBuffer(0,BO); SetIndexStyle(1,DRAW_NONE); SetIndexBuffer(1,Raw1); SetIndexStyle(2,DRAW_NONE); SetIndexBuffer(2,Raw2); return(0); } int deinit() { return(0); } int start() { if(Bars<=Length) return(0); int ExtCountedBars=IndicatorCounted(); if (ExtCountedBars<0) return(-1); int limit=Bars-2; if(ExtCountedBars>2) limit=Bars-ExtCountedBars-1; int pos; pos=limit; while(pos>=0) { Raw1[pos]=Close[pos+1]-Open[pos]; Raw2[pos]=High[pos]-Low[pos]; pos--; } double MA1, MA2; pos=limit; while(pos>=0) { MA1=iMAOnArray(Raw1, 0, Length, 0, MODE_SMA, pos); MA2=iMAOnArray(Raw2, 0, Length, 0, MODE_SMA, pos); if (MA2!=0) { BO[pos]=100*MA1/MA2; } else { BO[pos]=0; } pos--; } return(0); }