I plot a simple MACD crossing over/under an HMA line (named TrendLine) on the price pane & it works great. Now I'm trying to have that same 'TrendLine' line to change colors as it Rises / Falls using the 'Rising' or 'Falling' function.
if (Rising(TrendLine)) where
double TrendLine = (HMAvalue + (MACDiffValue * MDiffMult));
How do I convert 'TrendLine' so I don't have all these errors:
- Invalid Argument
-Cannot convert from 'double' to 'NinjaTrader.Data.IDataSeries'
-Cannot apply indexing with [] to an expression of type 'double'
I have been using Ninja for 2.5 years but have not Posted very many Threads so if anyone has tips on how to post questions correctly I open to learn that also.
Comment