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

RE: [EquisMetaStock Group] Indicator Help



PureBytes Links

Trading Reference Links

Jaime-


Your code sets a to the constant 0 (zero).  You then add 1 to it to get the 
constant 1. That's what you are plotting. Try setting a to 3. You'll get a 
plot of 4.

You're looking for
CUM(1);
Which is a bar counter increasing from left to right.

Ron


>From: "jaime" <xtal32768@xxxxxxxxxxx>
>Reply-To: equismetastock@xxxxxxxxxxxxxxx
>To: equismetastock@xxxxxxxxxxxxxxx
>Subject: [EquisMetaStock Group] Indicator Help
>Date: Tue, 24 Apr 2007 21:37:11 -0000
>
>Hi,
>
>I'm trying something with Metastock and its behavior is not what i
>expected. When i create an indicator with the following code:
>
>a:= 0;
>a:= Ref(a,-1) + 1;
>a;
>
>MS plots a straight line with the value 1. I was expecting a line
>increasing by +1 in each bar. Anyone knows why this happens?
>I'm using MS Pro 8.0.
>
>Thank you,
>Jaime
>
>
>




 
Yahoo! Groups Links

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

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/equismetastock/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:equismetastock-digest@xxxxxxxxxxxxxxx 
    mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx

<*> 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/