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 |

MACD Histo >0 <0 different colours Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
burls
Posted : Saturday, January 26, 2013 2:44:26 PM
Registered User
Joined: 10/5/2009
Posts: 66

Hi,

I'm trying to have it such that when the MACD Histo is > 0 it is one color and when <0 it is another....I found an older post that had this RealCode-I changed the colors based on the selection provided by SF 5.1 but got errors about Lineinput and Plotcolor not being being declared.

Any help would be appreciated,

Thanks, Burls

If Lineinput >= 0 Then
 PlotColor = color.DarkOliveGreen
Else
 PlotColor = color.RosyBrown
End If
 

Bruce_L
Posted : Monday, January 28, 2013 9:13:15 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

Please try using the following RealCode instead:

If Line.Value >= 0 Then
	PlotColor = color.DarkOliveGreen
Else
	PlotColor = color.RosyBrown
End If

The PlotColor error message also has me wondering to some extent where you were attempting to use the RealCode. You should only get that error if it was used somewhere besides a RealCode Paint Scheme.

Please make sure you are editing the MACD Histogram and then selecting the Edit button to the right of the Paint Scheme drop-down menu. Then select the Edit button to the right of Apply RealCode. You will want to make sure you have this checked to actually use the RealCode Paint Scheme.

Paint Schemes



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
burls
Posted : Tuesday, January 29, 2013 4:40:50 PM
Registered User
Joined: 10/5/2009
Posts: 66

Thanks!!

 

Bruce_L
Posted : Tuesday, January 29, 2013 4:43:01 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

You're welcome.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
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.