+91-0000000000

}

Monday – Friday : 9:00 AM – 6:30 PM

Holy System

Similar to the Holy Grail System, the Holy System refers to an idealized trading approach. Traders explore AFL codes within Amibroker and integrate them with Amibroker Data Feeder to replicate characteristics of a Holy System, aiming for enhanced accuracy and minimized risk in trading decisions based on current market data.

/_SECTION_BEGIN("holy");
p=Param("look back period",20,1,52,1);
t1 = Param ("short term trend",20,3,35,1);
t2 = Param ("long term trend",35,5,90,1);

High20 = HHV(High,p);
Low20 = LLV (Low,p);
Plot(Close,"",colorWhite,styleCandle);
Plot (High20,"high of the last 20 bars",colorRed,styleThick);
Plot (low20,"low of the last 20 bars",colorGreen,styleThick);

H_ex = Ref(H,-1);
L_ex = Ref(L,-1);

em34 = EMA(Close,t2);
em21 = EMA (Close,t1);


Buy = em21 > em34 AND 
L < L_ex AND
H < H_ex AND
L_ex < Ref(L,-2) AND
H_ex < Ref(H,-2);


Sell = em21 < em34 AND
L > L_ex AND
H > H_ex AND
L_ex > Ref(L,-2) AND
H_ex > Ref(H,-2);





Title = EncodeColor(colorWhite)+ "Linkon Holy grail System" + " - " +  Name() + " - " + EncodeColor(colorRed)+ Interval(2) + EncodeColor(colorWhite) +
 "  - " + Date() +" - "+"\n" +EncodeColor(colorYellow) +"Op-"+O+"  "+"Hi-"+H+"  "+"Lo-"+L+"  "+ "Cl-"+C+"  "+ "Vol= "+ WriteVal(V)+ "\n"+
EncodeColor(colorLime)+
WriteIf (Buy , " GO LONG at "+H_ex+"  "+"Target of :"+High20+"  SL @ "+L_ex,"")+
EncodeColor(colorRed)+
WriteIf (Sell , " GO short at "+L_ex+"  "+"Target of :"+Low20+"  SL @ "+H_ex,"")
;
piv_col = IIf(Buy,colorBlue,IIf(Sell,colorRed,colorYellow));
Plot(3, "", piv_col, styleOwnScale| styleArea|styleNoLabel,-0.5,100); 
 



_SECTION_END();

Open chat
1
Hi, how can I help you?