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

Notification

Icon
Error

Options
Go to last post Go to first unread
Renzo  
#1 Posted : Thursday, October 28, 2010 7:54:43 AM(UTC)
Renzo

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 3/5/2009(UTC)
Posts: 7

I need assistance to create an indicator that will plot an Horizontal line at the High of the 9am candle and to change on every new 9am candle. Any ideas are really welcome. Thanks in Advance Renzo
johnl  
#2 Posted : Thursday, October 28, 2010 7:04:32 PM(UTC)
johnl

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/7/2005(UTC)
Posts: 602

Can you do something like:

a1:=If(Hour()=9am,1,0);
a2:=ValueWhen(1,a1=1,H);
a2

Correct the syntax of "Hour()=9am" and replace "H" with whatever you are looking for.




Renzo  
#3 Posted : Thursday, October 28, 2010 8:22:59 PM(UTC)
Renzo

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 3/5/2009(UTC)
Posts: 7

Hi Johnl, It works exactly as I need it. Thank very much. Renzo
blashablinc  
#4 Posted : Thursday, October 28, 2010 9:45:17 PM(UTC)
blashablinc

Rank: Newbie

Groups: Registered, Registered Users
Joined: 10/6/2010(UTC)
Posts: 9

You could also add this line (y:=...) on shorter time frames...
x:=hour()=9;
y;=minutes()=0;
valuewhen(1,x and y,h)

Ron
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.