Rank: Newbie
Groups: Registered, Registered Users Joined: 5/11/2009(UTC) Posts: 3
|
I come across these 2 parameters when drawing a moving average line:
1. Horizontal shift
2. Vertical shift %
My questions are:
1. What are the purposes of these parameters?
2. How do we represent them in indicator formula,when using explorer?
3. Can we do the same for other indicators that derived from moving average, such as price channel?
Thank you.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
Hi khlee, Welcome to the Forum. You can use a scalar multiplier to move the moving average up and down, this will have a similar effect as the %shift in the parameters dialog box for the indicator, e.g. Code:
ma:=mov(c,20,s);
{plot}
1.1 * ma;
ma;
0.9 * ma;
You can use the Ref() function to move the indicator forward and backwards in time, i.e. horizontal shift. You can learn more about these functions and MS programming by reading the MS Users Manual and the free Equis Formula Primer. Hope this helps. wabbit [:D]
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 5/11/2009(UTC) Posts: 3
|
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 5/11/2009(UTC) Posts: 3
|
I used the horizontal shift by 10 period but the MA stop at the last tick.
Would it possible to move the indicator beyond the last trading tick?
Thanks.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
No, MS cannot extend indicators beyond the last bar of data.
wabbit [:D]
P.S. Yes, we know other software can extend into the future.
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.