N1:=5;N2:=10;N3:=50;
ma1:=ma(c,250);
ratio:=if(ma1>ref(ma1,1),120,200);
total:capital*c*100,colorred,linethick3;
amt1:ema(amount,n1)*ratio,colorFFABA3;
amt2:ema(amount,n2)*ratio,coloryellow;
amt3:ema(amount,n3)*ratio,colorgreen,linethick2;
N1:=5;N2:=10;N3:=50;
ma1:=ma(c,250);
ratio:=if(ma1>ref(ma1,1),120,200);
total:capital*c*100,colorred,linethick3;
amt1:ema(amount,n1)*ratio,colorFFABA3;
amt2:ema(amount,n2)*ratio,coloryellow;
amt3:ema(amount,n3)*ratio,colorgreen,linethick2;