Re: MT4 Indicator requests and ideas

21293
traderokey wrote: Sun May 18, 2025 2:59 am Hi Mrtools,

I’m trying to use ATR Bands avgs and Vidya cmo - bands .ex5 indicators in an EA. I'm using GROK AI to learn and see if it can code the EA, however I only have the .ex5 files. I need some help. Could you please help me with these:
  • How many buffers does each of the two indicators have, and what does each one show (upper band, lower band, middle line, colour change)?
  • For the middle line with two colors (Vidya), how do the buffers show the trend direction?
  • Are there any extra buffers for trading signals?
Thank you.


vidya cmo - bands (mtf + btn).ex5


Atr Bands avgs (btn).ex5
Hello for Vidya, buffer # 2 is the middle line and buffer # 3 is the middle line color. The buffer # 4 is used for mtf calculation.

Code: Select all

   SetIndexBuffer(0,bandUp,INDICATOR_DATA);
   SetIndexBuffer(1,bandDn,INDICATOR_DATA);
   SetIndexBuffer(2,val   ,INDICATOR_DATA); 
   SetIndexBuffer(3,valc  ,INDICATOR_COLOR_INDEX); 
   SetIndexBuffer(4,mtfData,INDICATOR_CALCULATIONS);
For the Atr bands it is buffer # 0 is the middle line, buffer # 1 is the upper band and buffer # 3 is the lower band.

Code: Select all

   SetIndexBuffer(0,mb,INDICATOR_DATA); 
   SetIndexBuffer(1,ub,INDICATOR_DATA); 
   SetIndexBuffer(2,lb,INDICATOR_DATA);