What is the Buffer Index Numbers for Blue and Red bricks in this indicator?

To add comments, please log in or register
Alirzen
140
Alirzen  
Hi friends. I hope you are enjoying a good day. I found an indicator from the developer Kaleem Haider from this link (https://www.mql5.com/en/code/15563). I find it helpful to my strategy. When I want to make an EA based on my strategy and this indicator, for Buffer Index number I have a problem. It's basically "n" and not a number. Can anybody help me with the Buffer Index Numbers of Blue bricks and Red bricks of this indicator? I'll attach the indicator to this post.
Tipu Renko Live
Tipu Renko Live
  • www.mql5.com
Renko charts were invented in Japan and were introduced to the Western world by Steve Nison, widely known as father of modern candlestick charting. Renko charts ignore time and focus solely on price changes. Renko charts plot fixed price brick up or down in 45 degrees with one brick per vertical line. As vertical/horizontal axis cannot be fixed...
Files:
William Roeder
19430
William Roeder  
Alirzen: t's basically "n" and not a number.
  1. int OnInit(){
       int n=0;
       SetIndexBuffer(n,dSignalBuffer,INDICATOR_CALCULATIONS); n++;
    
    Of course it's a number. dSignalBuffer is zero the next is one, etc.

  2.             dSignalBuffer[i]=OP_BUY;
    
                dSignalBuffer[i]=OP_SELL;
    

Alirzen
140
Alirzen  
William Roeder:
  1. Of course it's a number. dSignalBuffer is zero the next is one, etc.


I got it. Thank you very much.
To add comments, please log in or register