[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Safezone Stop



PureBytes Links

Trading Reference Links

Hi all

I'm trying to chart Elder's Safezone Stop. This is what I've got so 
far:

B=Low;
B1=Ref(Low,-1);

Y=IIf(B>B1,B-B1,0);
Y1=Sum(Y,10);
Y2=IIf(B1<B,1,0);
Y3=Sum(Y2,10);
Y4=Y1/Y3;
Y5=B-(2*Y4);

I'm having trouble with Y1: summing "B-B1" from Y, and trouble with 
Y3: summing the variable's true value. Any suggestions?

Thanks very much.

Russ 


------------------------ Yahoo! Groups Sponsor ---------------------~-->
DVD Rentals with No Late Fees - Try Netflix for FREE!
http://us.click.yahoo.com/ZKLNcC/pEZFAA/i5gGAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/