PureBytes Links
Trading Reference Links
|
Hi,
I'm try to code Stop-Loss ( SL ) as per my formula of
Key Reversal day. If it happens as a buy than the high
of privious day will be stop loss and low if sell.
The code is given below. Well, It's shows tick of SL
correct but I want this continue, till opposite
reversal happens or Stops Out, as line.
Any Help ?
--- formula-----
BUY=ref(L,-2)<REF(L,-3) AND REF(L,-1)<REF(L,-2) AND
REF(C,-1)>REF(C,-2) AND C>.99*REF(H,-1);
SELL=ref(H,-1)>REF(H,-2) AND H < REF(H,-1) AND
C <1.01* REF(L,-1);
SLL = IIF ( BUY , REF ( L , -1 ) , -1e10) ;
SLS = IIF ( SELL , REF ( H , -1 ) , -1e10 ) ;
GRAPH0=IIF(SELL,SLS, REF ( SLS , -1 ));
GRAPH1=IIF(BUY,SLL,REF ( SLL , -1 ));
GRAPH2 = C ;
GRAPH2STYLE = 128 ;
GRAPHXSPACE=2.5;
-----end----
Kailask K Pareek ( Johnny )
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com
|