Hello,
I am looking for advice on how a tradingsystem from VTRADER (www.cms-forex.com) could get implemented on eSignal.
It just has to show signals as arrows like the cms one.
It is based on Wilders ATR and called VT-Level Stop-Reverse System
Here is the formula used :
{Delta Stop for Trailing Stop Loss}
DeltaStop:=if(Mode=0, Wilders(ATR (14),14) * 2.824, DeltaPrice);
{Trailing Stop Loss Level}
TrStopLevel:=
If(
C=PREV,
PREV,
If(
((Ref(C,-1)<=PREV)AND(C<PREV)),
Min(PREV, (Close + DeltaStop)),
If(
(Ref(C,-1)>=PREV) AND (C>PREV),
Max(PREV,(Close - DeltaStop)),
If(
C>PREV,
(CLose - DeltaStop),
(CLose + DeltaStop)
)
)
)
);
{Signal Up and Down}
Up:= Cross(Close,TrStopLevel);
Down:= Cross(TrStopLevel,Close);
{OpenBuy and CloseBuy}
OpenBuy:= Up and (eventCount('OpenBuy')=eventCount('CloseBuy'));
CloseBuy:= Down and (eventCount('OpenBuy')>eventCount('CloseBuy'));
{OpenSell and CloseSell}
OpenSell:= Down and (eventCount('OpenSell')=eventCount('CloseSell'));
CloseSell:= Up and (eventCount('OpenSell')>eventCount('CloseSell'));
Attached a picture of how it looks.
Any help is highly appreciated !
I am looking for advice on how a tradingsystem from VTRADER (www.cms-forex.com) could get implemented on eSignal.
It just has to show signals as arrows like the cms one.
It is based on Wilders ATR and called VT-Level Stop-Reverse System
Here is the formula used :
{Delta Stop for Trailing Stop Loss}
DeltaStop:=if(Mode=0, Wilders(ATR (14),14) * 2.824, DeltaPrice);
{Trailing Stop Loss Level}
TrStopLevel:=
If(
C=PREV,
PREV,
If(
((Ref(C,-1)<=PREV)AND(C<PREV)),
Min(PREV, (Close + DeltaStop)),
If(
(Ref(C,-1)>=PREV) AND (C>PREV),
Max(PREV,(Close - DeltaStop)),
If(
C>PREV,
(CLose - DeltaStop),
(CLose + DeltaStop)
)
)
)
);
{Signal Up and Down}
Up:= Cross(Close,TrStopLevel);
Down:= Cross(TrStopLevel,Close);
{OpenBuy and CloseBuy}
OpenBuy:= Up and (eventCount('OpenBuy')=eventCount('CloseBuy'));
CloseBuy:= Down and (eventCount('OpenBuy')>eventCount('CloseBuy'));
{OpenSell and CloseSell}
OpenSell:= Down and (eventCount('OpenSell')=eventCount('CloseSell'));
CloseSell:= Up and (eventCount('OpenSell')>eventCount('CloseSell'));
Attached a picture of how it looks.
Any help is highly appreciated !