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

[EquisMetaStock Group] Re: Golden Triple Moving Average



PureBytes Links

Trading Reference Links


here is a binary signal

periods1:=Input("Moving average periods: ",1,1000,9);
periods2:=Input("Moving average periods: ",1,1000,15);
periods3:=Input("Moving average periods: ",1,1000,24);

periodsLarge1:=LastValue(Rnd(periods1/1.6180339887));
periodsSmall1:=LastValue(Rnd(periods1-periodsLarge1));
PhineMA1:=(Mov(C,periodsLarge1,S)+
ValueWhen(1,periodsLarge1+1,
Mov(C,periodsSmall1,S)))/2;

periodsLarge2:=LastValue(Rnd(periods2/1.6180339887));
periodsSmall2:=LastValue(Rnd(periods2-periodsLarge2));
PhineMA2:=(Mov(C,periodsLarge2,S)+ValueWhen(1,periodsLarge2+1,
Mov(C,periodsSmall2,S)))/2;

periodsLarge3:=LastValue(Rnd(periods3/1.6180339887));
periodsSmall3:=LastValue(Rnd(periods3-periodsLarge3));
PhineMA3:=(Mov(C,periodsLarge3,S)+ValueWhen(1,periodsLarge3+1,
Mov(C,periodsSmall3,S)))/2;

D:=If(C>PhineMA1 AND PhineMA1=Max( PhineMA1,Max( PhineMA2, 
PhineMA3)) AND  PhineMA2=Max( PhineMA2, PhineMA3),-1, If(C<PhineMA1 
AND PhineMA1=Min( PhineMA1,Min( PhineMA2, PhineMA3)) AND  
PhineMA2=Min( PhineMA2, PhineMA3), 1,0));
D;
--- In equismetastock@xxxxxxxxxxxxxxx, "alberto_cravo" 
<alberto_cravo@xxxx> wrote:
> 
> 
> Dear Jose,
> 
> The indicator you developed works perfectly.
> I do thank you so much.
> 
> Well, would you be so kind as to adapt to the values of the Golden 
> Triple Moving Average (GTMA) , which I send as follows:
> 
> periods1:=Input("Moving average periods: ",1,1000,9);
> periods2:=Input("Moving average periods: ",1,1000,15);
> periods3:=Input("Moving average periods: ",1,1000,24);
> 
> periodsLarge1:=LastValue(Rnd(periods1/1.6180339887));
> periodsSmall1:=LastValue(Rnd(periods1-periodsLarge1));
> PhineMA1:=(Mov(C,periodsLarge1,S)+ValueWhen(1,periodsLarge1+1,Mov
> (C,periodsSmall1,S)))/2;
> 
> periodsLarge2:=LastValue(Rnd(periods2/1.6180339887));
> periodsSmall2:=LastValue(Rnd(periods2-periodsLarge2));
> PhineMA2:=(Mov(C,periodsLarge2,S)+ValueWhen(1,periodsLarge2+1,Mov
> (C,periodsSmall2,S)))/2;
> 
> periodsLarge3:=LastValue(Rnd(periods3/1.6180339887));
> periodsSmall3:=LastValue(Rnd(periods3-periodsLarge3));
> PhineMA3:=(Mov(C,periodsLarge3,S)+ValueWhen(1,periodsLarge3+1,Mov
> (C,periodsSmall3,S)))/2;
> 
> PhineMA1;
> PhineMA2;
> PhineMA3;
> 
> Once again, Thank You.
> LePrincePlus
> 
> 
> ***************
> 
> AC, try this indicator/exploration code:
> 
> ---8<----------------------
> 
> { http://www.metastocktools.com }
> 
> { Short/Medium/Long period variables }
> PdsShort:=9;
> PdsMedium:=15;
> PdsLong:=24;
> 
> { Short/Medium/Long SMAs }
> ShortSMA:=Mov(C,PdsShort,S);
> MediumSMA:=Mov(C,PdsMedium,S);
> LongSMA:=Mov(C,PdsLong,S);
> 
> { * Entry Long signals: }
> EntryLong:=
>  ShortSMA > MediumSMA AND
>  ShortSMA > LongSMA AND
>  MediumSMA < LongSMA;
> 
> { Signal }
> EntryLong





------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/BefplB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

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

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

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