Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

TEMA function

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

    TEMA function

    double x= High[1];

    if
    (AtrSwitch == 1
    && CrossAbove(C, TEMA(x,MaLen), 1))

    I am getting an error message telling me that TEMA cannot take a double for parameter 1 but only an IDataSeries. How do I resolve this? DO I convert x to an Idata series? How do I do that?

    Thank you,

    David



    #2
    Hello David,

    Thank you for your post.

    Your analysis is correct, you will need to make x an IDataSeries. For information on the DataSeries class in NinjaScript please visit the following link: http://www.ninjatrader.com/support/h...ries_class.htm

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    63 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    35 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    54 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    61 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    48 views
    0 likes
    Last Post CarlTrading  
    Working...
    X