DR Strategy
DR Strategy
DR Strategy
dys = Param("days",1,1,10,1);
//hi = Max(TimeFrameGetPrice("H",inDaily,0),TimeFrameGetPrice("H",inDaily,-1)); //
Ref(HHV(H,dys),0);
//lo = Min(TimeFrameGetPrice("L", inDaily,0),TimeFrameGetPrice("L",inDaily,-
1));; //Ref(LLV(L,dys),0);
//hi1 = Max(TimeFrameGetPrice("H",inDaily,0),TimeFrameGetPrice("H",inDaily,0)); //
Ref(HHV(H,dys),0);
//lo1 = Min(TimeFrameGetPrice("L",
inDaily,0),TimeFrameGetPrice("L",inDaily,0));; //Ref(LLV(L,dys),0);
hi = H; //HHV(H,dys); //Ref(HHV(H,dys),0);
lo = L; //LLV(L,dys); //Ref(LLV(L,dys),0);
hi1 = Ref(HHV(H,dys),0);
lo1 = Ref(LLV(L,dys),0);
DR = (hi-lo);
ADR10 = MA(dr,10);
ADR5 = MA(dr,5);
EX = ADR10 * 1.25;
CM = ADR10 * 0.65;
_SECTION_BEGIN("EXPLORATION");
NH = Ref(H,1);
NL = Ref(L,1);
RNG = Ref(H,1) - Ref(L,1);
RNGP = RNG*100/NL;
HP = TDPRDN > DPRUP;
LP = TDPRUP < DPRDN;
IP = TDPRUP < DPRUP AND TDPRDN > DPRDN;
WHP = WTDPRDN > WDPRUP;
WLP = WTDPRUP < WDPRDN;
WIP = WTDPRUP < WDPRUP AND WTDPRDN > WDPRDN;
MMA = C > EMA(C,20);
MMB = C < EMA(C,20);
Filter = DR < CM AND C > 100; // (DR <= CM AND C > 100 AND C < 500000 AND DR/CM >0)
OR (DR1 <= CM1 AND C > 100 AND C < 500000 AND DR1/CM1 >0) OR (DR >= EX AND C > 100
AND C < 500000) OR (DR1 >= EX1 AND C > 100 AND C < 500000 );
AddColumn(C,"CMP",1.2);
AddColumn(DR,"1DR",1.2);
AddColumn(CM,"10DR0.65",1.2);
AddColumn(DR/CM,"RATIO_CONT",1.2);
AddColumn(DR<=CM,"DR<CM",1.2);
AddColumn(CM, "1st tgt addon", 1.2);
AddColumn(ADR10 * 0.75, "2nd tgt addon", 1.2);
AddColumn(ADR10 * 1, "3rd tgt addon", 1.2);
AddColumn(ADR10 * 1.25, "4th tgt addon", 1.2);
_SECTION_END();