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

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



PureBytes Links

Trading Reference Links




Moving 
average in AB is MA not MOV... Input is Param(
<SPAN 
class=751542813-09072003> 
<SPAN 
class=751542813-09072003>try.......
<SPAN 
class=751542813-09072003> 
<FONT 
color=#282828 size=2> 
UDPC=(C<FONT 
size=2>>((H-<FONT 
size=2>L)*.5)+L<FONT 
size=2>) AND <FONT 
size=2>C>Ref<FONT 
size=2>(C,-<FONT 
size=2>1); 

UDNC=(C<FONT 
size=2><((H-<FONT 
size=2>L)*.5)+L<FONT 
size=2>) AND <FONT 
size=2>C>Ref<FONT 
size=2>(C,-<FONT 
size=2>1); 

DDPC=(C<FONT 
size=2>>((H-<FONT 
size=2>L)*.5)+L<FONT 
size=2>) AND <FONT 
size=2>C<Ref<FONT 
size=2>(C,-<FONT 
size=2>1); 

DDNC=(C<FONT 
size=2><((H-<FONT 
size=2>L)*.5)+L<FONT 
size=2>) AND <FONT 
size=2>C<Ref<FONT 
size=2>(C,-<FONT 
size=2>1); 

HVWS=((H<FONT 
size=2>-L)><FONT 
size=2>Ref((H<FONT 
size=2>-L),-<FONT 
size=2>1)) AND<FONT 
size=2> V><FONT 
size=2>Ref(V<FONT 
size=2>,-1<FONT 
color=#0000ff>);
HVNS=((H<FONT 
size=2>-L)<<FONT 
size=2>Ref((H<FONT 
size=2>-L),-<FONT 
size=2>1)) AND<FONT 
size=2> V><FONT 
size=2>Ref(V<FONT 
size=2>,-1<FONT 
color=#0000ff>);
LVWS=((H<FONT 
size=2>-L)><FONT 
size=2>Ref((H<FONT 
size=2>-L),-<FONT 
size=2>1)) AND<FONT 
size=2> V<<FONT 
size=2>Ref(V<FONT 
size=2>,-1<FONT 
color=#0000ff>); 
LVNS=((H<FONT 
size=2>-L)<<FONT 
size=2>Ref((H<FONT 
size=2>-L),-<FONT 
size=2>1)) AND<FONT 
size=2> V<<FONT 
size=2>Ref(V<FONT 
size=2>,-1<FONT 
color=#0000ff>);
B=IIf(UDPC <FONT 
size=2>AND HVWS,8<FONT 
size=2>,IIf(UDPC <FONT 
size=2>AND HVNS,7<FONT 
size=2>,IIf(UDPC <FONT 
size=2>AND LVWS,6<FONT 
size=2>,IIf
 
(UDPC AND 
LVNS,5, <FONT 
size=2>IIf(UDNC AND<FONT 
size=2> HVWS,4,<FONT 
size=2>IIf(UDNC AND<FONT 
size=2> HVNS,3,<FONT 
size=2>IIf(UDNC 

 
AND LVWS,2<FONT 
size=2>,IIf (LVNS,-<FONT 
size=2>5,IIf(DDNC 
AND HVWS,-<FONT 
size=2>4,IIf(DDNC 
AND HVNS,-<FONT 
size=2>3,IIf
 
(DDNC AND 
LVWS,-2,<FONT 
size=2>IIf(DDNC AND<FONT 
size=2> LVNS,-1,<FONT 
size=2>0<FONT 
color=#0000ff>))))))))))));
prd=Param<FONT face=Arial 
size=2>("Period",<FONT face=Arial 
size=2>5,1<FONT 
size=2>,100<FONT 
color=#0000ff>);
 
IIf(<FONT color=#0000ff 
size=2>MA(B,prd)><FONT color=#ff00ff 
size=2>0,<FONT color=#0000ff 
size=2>MA(B,prd),<FONT color=#ff00ff 
size=2>0);
 
IIf(<FONT color=#0000ff 
size=2>MA(B,prd)<<FONT color=#ff00ff 
size=2>0,<FONT color=#0000ff 
size=2>MA(B,prd),<FONT color=#ff00ff 
size=2>0);
 
 
Regards, 
Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: theoldchartreader 
[mailto:theoldchartreader@xxxxxxxxx]Sent: Wednesday, July 09, 2003 
8:36 AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] 
Can some one please convert the last three lines of this MS to 
AmibrokerHI,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);Send 
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
suggest@xxxxxxxxxxxxx-----------------------------------------Post 
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
group FAQ at: <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Your use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor


  ADVERTISEMENT 









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 the Yahoo! Terms of Service.