Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

real code Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
mdfalco
Posted : Friday, February 15, 2008 12:42:54 PM
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
Kuf
Posted : Friday, February 15, 2008 1:03:07 PM


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
mdfalco
Posted : Friday, February 15, 2008 1:28:28 PM
Registered User
Joined: 8/30/2007
Posts: 33
thanks!
Users browsing this topic
Guest-1

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.