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

[Metastockusers] Re: How can I implement a horizontal shift for a MA in an expert?



PureBytes Links

Trading Reference Links



Sorry about that - I must have been vertically-challenged at the time 
I read your post.  :)

---8<----------------
shift:=-5; {Horizontal shift periods (-252~+252)}
Ref(Mov(C,5,E),-shift);
---8<----------------

jose '-)


--- In Metastockusers@xxxxxxxxxxxxxxx, Sukhen K Mitra <sukhen@xxxx> 
wrote:
> Jose-
> Many thanks for your help. Although vertical shift is very important 
to me, I need to implement horizontal shift at this time.
>  
> I do appreciate it.
>  
> Best.
>  
> - Sukhen
> 
> Jose <josesilva22@xxxx> wrote:
> Adapted from Preston's post at http://finance.groups.yahoo.com/
group/
> equismetastock/message/14328 :
> 
> ---8<--------------
> shift:=-5; {"Vertical shift %" (-100~100)}
> shift:=shift/100+1;
> Mov(C,5,E)*shift;
> ---8<--------------
> 
> jose '-)
> 
> 
> --- In Metastockusers@xxxxxxxxxxxxxxx, sukhen@xxxx wrote:
> > Is there any way to draw moving average with horizontal shift in a 
> > program?
> > 
> > I checked the help where it states the complete format of the 
> formula 
> > is mov(price_type, horizontal_shift, vertical_shift, number, type) 
> > but while I am trying to write mov(C, -5, 0, 5, E), the 
interpreter 
> > is rejecting saying the format will be without the shift 
parameters.
> > 
> > How can I implement the shift parameters? I need to use –5 as 
> > horizontal shift. I am using MS 7.0 Pro.
> > 
> > Thanks in advance
> > 
> > - Sukhen






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/zMEolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

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

<*> To unsubscribe from this group, send an email to:
    Metastockusers-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/