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

Notification

Icon
Error

Options
Go to last post Go to first unread
HolyGrail  
#1 Posted : Sunday, August 22, 2010 2:21:19 AM(UTC)
HolyGrail

Rank: Member

Groups: Registered, Registered Users
Joined: 5/27/2010(UTC)
Posts: 13
Location: Norton, Ohio

Gents, Is there a way to plot one's stop on a chart only when in a position? For example: If(Position = 1 {Long}, ATRStop, {do not plot anything}); I cannot leave the "else" clause of the "If" statement blank or I get an error. What can I place there to result in nothing being drawn? Thanks kindly!
wabbit  
#2 Posted : Sunday, August 22, 2010 2:32:49 AM(UTC)
wabbit

Rank: Advanced Member

Groups ready for retrieval: 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)
Once an indicator starts plotting (returning values) it cannot be switched on and off.

In this instance you are going to have to give the function another value. If you use 0, then be prepared for the chart to rescaled (which can be avoided by using the return an N/A as the last value trick, valuewhen(1,0,0) ) or choose another value and return a second indicator with the same value, formatted to hide the "real" value. There are plenty of examples already on the forum. Just shout again if you get stuck.


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.