Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 3/8/2010(UTC) Posts: 3
|
Hi
I'm a newbie and i was wondering if someone could help me, i have made a simple indicator "normalised volume" VOLUME / Mov(VOLUME, 50,E) * 100, and would like to plot a permanent horizontal line at 100, how do i do this????
Thanks
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 7/12/2007(UTC) Posts: 134 Location: Perth Western Australia
|
Hi Mickyboy,
{normalised volume}
VOLUME / Mov(VOLUME, 50,E) * 100;
100
Cheers,
oz
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 3/8/2010(UTC) Posts: 3
|
Hi oztrader,
Well that was easy,lol, thanks very much, much appreciated
Cheers
Mickyboy
|
|
|
|
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)
|
Just a quick note about plotting static values in indicators: It is often a good idea to plot the static values first, then return the value for the function, that way if you need to call the value of the function you can use the slightly faster Fml() function instead of the slower FmlVar() e.g. Code:
{plot}
100;
VOLUME / Mov(VOLUME, 50,E) * 100;
Code:
{plot}
0.5;
-0.5;
(Exp(x)-1)/(Exp(x)+1);
Problems have been encountered in the past when coders have listed the static values last and then password protected the indicator, so it is impossible to see the name of the indicator variable which has the desired value. wabbit [:D]
|
|
|
|
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.