INPUT:N1(5,1,100),n2(10,1,100),n3(50,1,100);
drawgbklast(close>0,strip(rgb(60,120,0),rgb(10,90,0),));
ma1:=ma(c,250);
ratio:=if(ma1>ref(ma1,1),31,200);
total:capital*C*100,colorred,linethick3;
amt1:ema(amount,N1)*ratio,colorffff00;
amt2:ema(amount,N2)*ratio,coloryellow;
amt3:ema(amount,N3)*ratio,colorgreen,linethick2;
202108211239.jpg
|