Hi.
Suppose that an up-trend is starting by something like an sma50 crossover. Then you could write something like this:
goLong:=cross(c,mov(c,50,s));
totalNumberOfGaps:=cum(gapup());
gapCounter:=totalNumberOfGaps-valueWhen(1,goLong,ref(totalNumberOfGaps,-1));
Maybe there are some syntax errors (I'm not in front of a pc with metastock).
Regards,
Minas Chantzides
--- In equismetastock@yahoogroups.com, "Lionel Issen" <lissen@xxx> wrote:
>
> Hi Sharad:
>
>
>
> If you can't do it in Metastock, try Amibroker.
>
> Amibroker is fairly cheap, it can read Metastock files, it does have a
> learning curve.
>
>
>
> Hope this helps.
>
>
>
> Lionel
>
>
>
>
>
> From: equismetastock@yahoogroups.com [mailto:equismetastock@yahoogroups.com]
> On Behalf Of Sharad Lohia
> Sent: Wednesday, February 10, 2010 11:26 PM
> To: equismetastock@yahoogroups.com
> Subject: Re: [EquisMetaStock Group] Coding Help
>
>
>
>
>
> Hi
>
>
>
> Can anyone help me with the following coding in Metastock
>
>
>
> I need a counter which counts the number of consecutive gaps in a trend. The
> trend will be defined in terms of % move and the counter shud count the
> number of gaps. The basic aim is that the 4th gap is exhaustion gap and will
> always close.
>
>
>
> Been trying for quite some time to code a counter but failing
>
>
>
> Kindly help
>
>
>
> Warm Regards
>
> Sharad Lohia
>
>
>
>
>
>
>
>
>
> On 11-Feb-2010, at 9:05 AM, Rvalue1 wrote:
>
>
>
>
>
>
>
> Has anyone tried using this source for free RT data into Metastock? Pls let
> us know..
>
> "Hey Guys ..
> RealTime Data To Metastock, Tradestation Or AdvancedGet can be obtained
> using a software called HyperServer Lite.
> HyperServer Lite : HyperServer allows to use TradeStation 2000i with
> datafeeds that are not supported originally.
> HyperServer support also TradeStation/SuperCharts 4.0, MetaStock
> Professional 6.52/7.0/8.0/9.0 or Advanced GET Realtime and allow to use
> OnDemand technology for MetaStock 7.0/8.0/9.0 or Advanced GET.
> Its a 6.8MB File.
> Get this Software @ http://www.hypertrader.it/hserverl.shtml
>
> You will be directed to the Forum where u will be asked Registration,
> Register and Login to download the software.
> After the download is complete u need another registration for obtaining
> product CODE. Do That.
> After the Software is installed follow the instructions for the Tick By Tick
> Data.
> In Case Of Any Trouble Post Or Mail Me @ just4trades@...
> <mailto:just4trades%40yahoo.com> Or Yahoo Chat : just4trades
> Regards & Happy Trading.
> Just4Trades. "
>