Merhabalar,
"Mtx_macd, supertrend opt ve 8 ORT KESİŞİMLER " system tester formülünü indikatör olarak tanımlama için desteğinizi rica ediyorum.
iyi çalışmalar,
Mtx_macd;
Cross(MACD(opt1,opt2,opt3),MACDTrigger(opt1,opt2,opt3))
Cross(MACDTrigger(opt1,opt2,opt3),MACD(opt1,opt2,opt3))
supertrend opt;
period:=OPT1;
coeff:=OPT2;
AP:=(H+L)/2;
OFFSET:=coeff*ATR(period);
STR:=AP+OFFSET;
STS:=AP-OFFSET;
FUB:=IF(STR<PREV OR REF(C,-1)>PREV,STR,PREV);
FLB:=IF(STS>PREV OR REF(C,-1)<PREV,STS,PREV);
ST:=IF(PREV=REF(FUB,-1) AND C<FUB,FUB,IF(PREV=REF(FUB,-1) AND C>FUB,FLB,IF(PREV=REF(FLB,-1) AND C>FLB,FLB,IF(PREV=REF(FLB,-1) AND C<FLB,FUB,fub))));
cross(c,st)
***
period:=OPT1;
coeff:=OPT2;
AP:=(H+L)/2;
OFFSET:=coeff*ATR(period);
STR:=AP+OFFSET;
STS:=AP-OFFSET;
FUB:=IF(STR<PREV OR REF(C,-1)>PREV,STR,PREV);
FLB:=IF(STS>PREV OR REF(C,-1)<PREV,STS,PREV);
ST:=IF(PREV=REF(FUB,-1) AND C<FUB,FUB,IF(PREV=REF(FUB,-1) AND C>FUB,FLB,IF(PREV=REF(FLB,-1) AND C>FLB,FLB,IF(PREV=REF(FLB,-1) AND C<FLB,FUB,fub))));
cross(st,c)
8 ORT KESİŞİMLER;
cross(c,mov(c,8,s))
cross(mov(c,8,s),c)