Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

adding to MutiTimeFrame

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

    adding to MutiTimeFrame

    I have created an Indicator averaging the slope value of a EMA.

    Now I am trying to add that in to multi time frame indicator

    if (BarsInProgress == 0)

    (Rising(SlopeEMA(BarsArray[1]).slopeEMA) &&(Rising(SlopeEMA(BarsArray[0]).slopeEMA)))

    {
    BackColor = Color.Green;

    }


    But I am getting this error.



    " No overload for method 'SlopeEMA' takes '1' arguments"

    Can any give me a helping hand to fix this please.

    Your help will be greatly appreciated.

    The indicator file also attached for your reference.
    Best Regards

    Simple.

    Attached Files

    #2
    Hello Simple,

    This is because the SlopeEMA has 4 User Defined Variables that you need to pass in to your SlopeEMA() method call after you pass in your IDataSeries as well. After typing in the parenthesis you should see the Intillisense come up to show you the parameters that it takes for example:

    SlopeEMA(BarsArray[1], Color.Blue, Color.Black, Color.Beige, 30);

    See attached picture.
    Attached Files
    JCNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    574 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    333 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    553 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    551 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X