PDA

View Full Version : Rising/Falling Colors on a MA


nolantx
05-25-2007, 10:57 AM
I'm trying to color an indicator (EMA) differently as its rising or falling. I have defined both components as separate plots but when I insert them in to a condition as below, or in an if loop: blank screen.

I understand the definition of thresholds in the context of Above zero or below zero type indicators but an unclear how they need or should be used in this instance.

T3_Down.Set((EMA(length1)[0] < EMA(length1)[1]) ? (EMA(length1)[0]) : 0);

NinjaTrader_Ray
05-25-2007, 11:04 AM
Please refer to this post and see the sample code.

http://www.ninjatrader-support.com/vb/showthread.php?t=1675