|
JJ:=(H+L+C+C)/4,NODRAW;
RC:=7;
NN:=7;
TP:=150;
SL:=50;
LOTS:=5;
IF(MONEYREAL>400000,LOTS=10,IF(MONEYREAL>800000,LOTS=20,IF(MONEYREAL>1600000,LOTS=40,IF(MONEYREAL>3200000,LOTS=80,IF(MONEYREAL>6400000,LOTS=160,5)))));
HGL:="MIN$3$H";
LGL:="MIN$3$L";
CGL:="MIN$3$CLOSE";
JJGL:=(HGL+LGL+CGL+CGL)/4,NODRAW;
MA(JJ,14)<REF(MA(JJ,14),1)
&& MA(JJ,RC)<REF(MA(JJ,RC),1)
&& EVERY(C<MA(JJ,RC),NN)
&& EVERY(MA(JJ,RC)<REF(MA(JJ,RC),1),NN)
,SK(LOTS);
(C>=SKPRICE+SL*MINPRICE1||C<=SKPRICE-TP*MINPRICE1)
&& SKPRICE>0,
BP(LOTS);
MA(JJ,14)>REF(MA(JJ,14),1)
&& MA(JJ,RC)>REF(MA(JJ,RC),1)
&& EVERY(C>MA(JJ,RC),NN)
&& EVERY(MA(JJ,RC)>REF(MA(JJ,RC),1),NN)
,BK(LOTS);
(C<=BKPRICE-SL*MINPRICE1||C>=BKPRICE+TP*MINPRICE1)
&& BKPRICE>0,
SP(LOTS);
CLOSEMINUTE<=1,CLOSEOUT;
TRADE_AGAIN(5); |
|