Registered User Joined: 8/30/2007 Posts: 33
|
team,
I am trying to follow the video for block 3 and paint brushes but I get some errors
this is my code
'# NH = indicator.NH
'# PH = indicator.PriceHistory.2
If nh > 0.15 Then
plotcolor=color.Green
End If
the error message, "the operator > is not defined for "wbi.commonblocks.scriptingline" and "double".
thanks
|
Administration
Joined: 9/18/2004 Posts: 3,522
|
you need NH.value to get the value of the plot.
Also you don't need the PH import. Price is always available to you in RealCode.
Ken Gilb (Kuf) Chief Software Engineer - Worden Brothers Inc. Try/Catch - My RealCode Blog
|
Registered User Joined: 8/30/2007 Posts: 33
|
thanks!
|