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

[EquisMetaStock Group] Re: Newbie Confused



PureBytes Links

Trading Reference Links

John, you must copy and paste (using NotePad) all posted code between 
the "---8<-------" lines into an Indicator Builder's new Indicator.

Do not waste any of your time on the System Tester.


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



--- In equismetastock@xxxxxxxxxxxxxxx, "johng9999" <johngalenski@xxxx> 
wrote:
>
> Jose. I appreciate your rapid response to my problem. I tried 
> entering your suggestion in my MetaStock 7.0 Pro, but got a message 
> of "Expression too complex (Expression Stack Overflow)". How do I 
> overcome that? Also, how can I test your suggestion in System 
> Tester? Thanks for the help- it is much appreciated........John
>
>
> --- In equismetastock@xxxxxxxxxxxxxxx, "Jose Silva" 
> <josesilva22@xxxx> wrote:
>
> 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/