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

[EquisMetaStock Group] Re: Newbie Confused



PureBytes Links

Trading Reference Links

John, try this MS indicator code:

==============
Indicator name
==============
---8<----------------------------
{ Higher Close in any 3 of past 5 periods.
  http://www.metastocktools.com }

{ User inputs }
pdsHi:=Input("Number of higher Close periods",
 1,260,3);
pdsBack:=Input("Lookback periods",1,260,5);

{ Prevent HiClose periods exceed lookback pds }
pdsHi:=If(pdsHi>pdsBack,pdsBack,pdsHi);

{ Higher Close }
HiClose:=C>Ref(C,-1);

{ Plot as indicator in own window }
Sum(HiClose,pdsBack)>=pdsHi
---8<----------------------------


jose '-)
http://www.metastocktools.com




--- In equismetastock@xxxxxxxxxxxxxxx, "johng9999" <johngalenski@xxxx> 
wrote:
>
> Hi, I am having trouble getting the syntax right for some code, and
> so far it passes but doesn't generate any trades. I want to trigger
> a buy if a close price exceeds its immediately prior close for any 3
> of the past 5 days. 
> 
> Can anyone provide code that works? Thank you......John







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/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/