Just one clarification. Is it the monthly highs for ALL the past
months or the daily highs for just the one month (previous month in
this case)? I was thinking that the -1 parameter was referencing the
highs for the previous month only.

Thanks again

--- In [email protected], "apfxtrader" <[EMAIL PROTECTED]> wrote:
>
> Hello, 
> mh = TimeFrameGetPrice("H", inMonthly, -1);
> is giving you the highs for all the past months.
> if you need the just the value for the previous month high: 
> prevmh = lastvalue(mh);
> 
> 
> --- In [email protected], "Gerald Monks" <glmonks@> wrote:
> >
> > I need a little clarification on how to derive a single value for 
> the
> > monthly H, L and C for the previous month. When I use the following
> > AFL code, I presume that the mh variable is actually an array of 
> daily
> > H's for the entire month. Is this right?
> > 
> > mh = TimeFrameGetPrice("H", inMonthly, -1);
> > 
> > What I'm looking for is a single value (in this case, the High) for
> > the entire month without having to use an index into an array.
> > 
> > I'm sure this is quite simple, but I'm not sure I'm getting it 
> right.
> > Do I need to use the TimeFrameCompress function? Any help would
> > certainly be appreciated.
> > 
> > Thanks
> >
>


Reply via email to