PureBytes Links
Trading Reference Links
|
Jose,
It's Alert function! Thank you so much.
Regards,
Lintou
--- In equismetastock@xxxxxxxxxxxxxxx, "Jose Silva" <josesilva22@xxxx>
wrote:
> Lintou, try this MS indicator code example:
>
> ---8<------------------------
> { http://www.metastocktools.com }
>
> { User input }
> pds:=Input("Span periods",1,260,3);
>
> { MACD, trigger }
> Mac:=MACD();
> Trigger:=Mov(Mac,9,E);
>
> { Percentage Price Oscillator }
> PPO:=OscP(1,25,S,%);
>
> { Signals }
> GoldenCross:=Cross(Mac,trigger);
> PPOcross:=Cross(PPO,0);
>
> { Plot signals on price chart }
> Alert(GoldenCross,pds) AND Alert(PPOcross,pds)
>
> ---8<------------------------
>
>
> jose '-)
> http://www.metastocktools.com
>
>
>
>
> --- In equismetastock@xxxxxxxxxxxxxxx, "Ding" <thisperson@xxxx> wrote:
> > Hi,
> >
> > I need to code a trigger signal but without any clue to start with.
> >
> > IF Condition A and B both occur within 3 days, then it is a valid
> > signal. Doesn't matter whether A or B happens first.
> >
> > For example: buy trigger:= (MACD golden cross) AND (PPO cross 0) in
> > last 3 days
> >
> >
> > Would anyone give some hints here?
> >
> > Thanks a lot
> >
> > Lintou
------------------------ Yahoo! Groups Sponsor --------------------~-->
Help tsunami villages rebuild at GlobalGiving. The real work starts now.
http://us.click.yahoo.com/njNroD/KbOLAA/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/
|