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

[amibroker] Can some one please convert the last three lines of this MS to Amibroker



PureBytes Links

Trading Reference Links

HI,
I did not know how to change the last three lines.


UDPC=(C>((H-L)*.5)+L) AND C>Ref(C,-1); 
UDNC=(C<((H-L)*.5)+L) AND C>Ref(C,-1); 
DDPC=(C>((H-L)*.5)+L) AND C<Ref(C,-1); 
DDNC=(C<((H-L)*.5)+L) AND C<Ref(C,-1); 
HVWS=((H-L)>Ref((H-L),-1)) AND V>Ref(V,-1);
HVNS=((H-L)<Ref((H-L),-1)) AND V>Ref(V,-1);
LVWS=((H-L)>Ref((H-L),-1)) AND V<Ref(V,-1); 
LVNS=((H-L)<Ref((H-L),-1)) AND V<Ref(V,-1);
B=IIf(UDPC AND HVWS,8,IIf(UDPC AND HVNS,7,IIf(UDPC AND LVWS,6,IIf
(UDPC AND LVNS,5, IIf(UDNC AND HVWS,4,IIf(UDNC AND HVNS,3,IIf(UDNC 
AND LVWS,2,IIf (LVNS,-5,IIf(DDNC AND HVWS,-4,IIf(DDNC AND HVNS,-3,IIf
(DDNC AND LVWS,-2,IIf(DDNC AND LVNS,-1,0))))))))))));

prd=Input("Period",1,100,5);
IIf(Mov(B,prd,S)>0,Mov(B,prd,S),0);
IIf(Mov(B,prd,S)<0,Mov(B,prd,S),0);


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Free shipping on all inkjet cartridge & refill kit orders to US & Canada.
Low prices up to 80% off. We have your brand: HP, Epson, Lexmark & more.
http://www.c1tracking.com/l.asp?cid=5510
http://us.click.yahoo.com/y8_tZA/6oVGAA/ySSFAA/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/