logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Mickyboy  
#1 Posted : Sunday, March 7, 2010 11:54:26 PM(UTC)
Mickyboy

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

oztrader  
#2 Posted : Monday, March 8, 2010 2:50:37 AM(UTC)
oztrader

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
Mickyboy  
#3 Posted : Monday, March 8, 2010 3:33:44 AM(UTC)
Mickyboy

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

wabbit  
#4 Posted : Monday, March 8, 2010 6:44:08 AM(UTC)
wabbit

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)
Similar Topics
drawing rectangles, horizontal lines through program (Formula Assistance)
by satyanarayana Boggavarapu 5/31/2017 12:58:33 PM(UTC)
A horizontal line created by multiple smaller horizontal lines with fixed periods and different colours (Advanced Coding Techniques)
by kskdut 3/27/2013 11:56:01 PM(UTC)
How plot horizontal lines and indicator associated (Formula Assistance)
by Leverage 3/19/2013 9:29:12 AM(UTC)
PLEASE : how to get horizontal lines on range or narrow sideway area (Formula Assistance)
by mohammedasd 8/15/2011 1:59:04 AM(UTC)
horizontal line at last 50 day high (Formula Assistance)
by chriskot 11/20/2010 12:29:54 AM(UTC)
Horizontal Line at High of 9am candle (Formula Assistance)
by Renzo 10/28/2010 7:54:43 AM(UTC)
Horizontal line. (Advanced Coding Techniques)
by yechiyah 11/21/2009 11:55:07 AM(UTC)
Full Length Horizontal Line Plotting Based On Last Values Only (Product Wish List)
by Dojidog 9/10/2009 10:49:49 AM(UTC)
Make Horizontal Lines Dissappear if Far From Price (Advanced Coding Techniques)
by pspr 2/20/2009 5:52:42 PM(UTC)
How to show prices on Horizontal Lines (S&R)? (MetaStock)
by LeoCrespo 6/1/2008 4:07:28 AM(UTC)
Horizontal lines not being anchored sometimes (MetaStock)
by Metarminator 1/11/2008 1:03:12 AM(UTC)
Pls help on generating an horizontal line (Technical Chat)
by happysingh 12/16/2006 10:22:32 AM(UTC)
Explorer crossing horizontal line? [RESOLVED] (Formula Assistance)
by Rickmetastock123 10/5/2005 2:11:38 AM(UTC)
Horizontal lines [RESOLVED] (Formula Assistance)
by robcpettit 6/6/2005 5:53:37 PM(UTC)
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.