Plz Help me to develop this AFL code

#1
I need a help.I want to develop an AFL code that recognises and gives indication like lines or dots in the specific time frame whenever 50 ema,100 ema,150 ema and 200 ema reach almost equal level for a short time like 5 min,10 min,15 min,30 min++ time.plz some one help.Here is the afl code.



_SECTION_BEGIN("EMA");

Periods1 = Param("Periods1",200,1,2000,2);
Periods2 = Param("Periods2",150,2,2000,2);
Periods3 = Param("Periods3",100,3,2000,2);
Periods4 = Param("Periods4",75,4,2000,2);
Periods5 = Param("Periods5",50,5,2000,2);
Periods6 = Param("Periods6",25,5,2000,2);


EMA1 = EMA(C,Periods1);
EMA2 = EMA(C,Periods2);
EMA3 = EMA(C,Periods3);
EMA4 = EMA(C,Periods4);
EMA5 = EMA(C,Periods5);
EMA6 = EMA(C,Periods6);



Plot(EMA1,"Ema1",ParamColor("color1",colorblue),styleline);
Plot(EMA2,"Ema2",ParamColor("color2",colorgreen),styleline);
Plot(EMA3,"Ema3",ParamColor("color3",colorred),styleline);
Plot(EMA4,"Ema4",ParamColor("color4",colorcustom12),styleline);
Plot(EMA5,"Ema5",ParamColor("color5",colorgold),styleline);
Plot(EMA6,"Ema6",ParamColor("color6",coloryellow),styleline);

Title = Name() + " - EMA's "
+"\n"+EncodeColor(colorblue)+"EMA 1 = "+ema1
+"\n"+EncodeColor(colorgreen)+"EMA 2 = "+ema2
+"\n"+EncodeColor(colorred)+"EMA 3 = "+ema3
+"\n"+EncodeColor(colorCUSTOM12)+"EMA 4 = "+ema4
+"\n"+EncodeColor(colorRED)+"EMA 5 = "+ema5
+"\n"+EncodeColor(colorYELLOW)+"EMA 6 = "+ema6;










_SECTION_END();
 
Last edited:

Similar threads