Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

What is the meaning of this error message ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    What is the meaning of this error message ?

    I took a doing well custom indicator and added these lines of code :

    private DataSeries MMAskTot;
    private DataSeries MMBidTot;
    Add(new Plot(Color.DarkGreen, PlotStyle.Line, "MMAskTot"));
    Add(new Plot(Color.DarkMagenta, PlotStyle.Line, "MMBidTot"));
    MMAskTot = new DataSeries(this);
    MMBidTot = new DataSeries(this);
    MMAskTot.Set(SMA(AskTot, 20));
    MMBidTot.Set(SMA(BidTot, 20));

    When I compiled, I got this message :

    The best overloaded method match for 'NinjaTrader.Data.DataSeries.Set(double)' has some invalid arguments
    Argument '1': cannot convert from 'NinjaTrader.Indicator.SMA' to 'double'
    The best overloaded method match for 'NinjaTrader.Data.DataSeries.Set(double)' has some invalid arguments
    Argument '1': cannot convert from 'NinjaTrader.Indicator.SMA' to 'double'

    #2
    Issues like:

    MMAskTot.Set(SMA(AskTot, 20));

    should be

    MMAskTot.Set(SMA(AskTot, 20)[0]);
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kinfxhk, 07-14-2026, 09:39 AM
    0 responses
    127 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    105 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    85 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    105 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    86 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X