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

[amibroker] IB plugin



PureBytes Links

Trading Reference Links

Try this:

Value=Param("DEMA OffSet Periods",9,9,55,1);

Trigger=Param("Trigger Line",13,13,55,1);

Short=(EMA(Close,3)+EMA(Close,5)+

EMA(Close,7)+EMA(Close,9)+

EMA(Close,11)+EMA(Close,13));

LONG=(EMA(Close,30)+EMA(Close,34)+

EMA(Close,38)+EMA(Close,42)+

EMA(Close,46)+EMA(Close,50));

MMACD=((Short-Long)/Long)*100;

MMACD1=EMA(EMA(MMACD,Value),Value);

value1=MMACD-MMACD1;

finalvalue=EMA(MMACD-MMACD1,Trigger);

Plot(finalvalue,"final",colorRed,styleLine);

Plot(Value1,"histo",colorBlue,styleHistogram);



Anthony

----- Original Message ----- 
From: "bruiserbbq" <bruiserbbq@xxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, April 06, 2004 7:52 AM
Subject: [amibroker] Re: Help with my modified MACD indicator


> Ok here's what I have got so far ( but still a bit lost):
>
> /*  MMACD - DEMA Offset  */
>
> Value = Param("DEMA OffSet Periods",1,55,9);
> Trigger = Param("Trigger Line",1,55,13);
> Short =(EMA(Close,3, EMA(Close,5,
> EMA(Close,7,EMA(Close,9,
> EMA(Close,11,EMA(Close,13,
> LONG =(EMA(Close,30,EMA(Close,34,
> EMA(Close,38,EMA(Close,42,
> EMA(Close,46,EMA(Close,50,
> MMACD =((Short-Long)/Long)*100
> MMACD1 =EMA(EMA(MMACD,Value,),Value,);
> MMACD-MMACD1;
> EMA(MMACD-MMACD1,Trigger,);
> 0;
>
>
> AND HERE'S THE METASTOCK CODE I'M TRYING TO CONVERT:
>
> Value:=Input("DEMA OffSet Periods",1,55,9);
> Trigger:=Input("Trigger Line",1,55,13);
> SHORT:=(Mov(CLOSE,3,E)+Mov(CLOSE,5,E)+
> Mov(CLOSE,7,E)+Mov(CLOSE,9,E)+
> Mov(CLOSE,11,E)+Mov(CLOSE,13,E));
> LONG:=(Mov(CLOSE,30,E)+Mov(CLOSE,34,E)+
> Mov(CLOSE,38,E)+Mov(CLOSE,42,E)+
> Mov(CLOSE,46,E)+Mov(CLOSE,50,E));
> MMACD:=((Short-Long)/Long)*100;
> MMACD1:=Mov(Mov(MMACD,Value,E),Value,E);
> MMACD-MMACD1;
> Mov(MMACD-MMACD1,Trigger,E);
> 0;
>
>
> Thanks in advance
>
> Bruiser
> downunder
>
>
>
> 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
> Yahoo! Groups Links
>
>
>
>
>
>



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 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
     amibroker-unsubscribe@xxxxxxxxxxxxxxx

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