Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

double to <double>

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

    double to <double>

    I am trying to take an EMA, of an EMA- just like how the MACD signal line is found from the EMA of the difference of two EMAs. But it gives an error that it cannot convert from double to <double>. So I guess the output of the inner EMA function is a double, and it has to convert that to <double> to take the EMA of it, and it won't?

    Value1[0] = EMA(12)[0] - EMA(26)[0];

    Avg1[0] = EMA(Value1[0], 9);

    #2
    Hello Paracelsus462,

    If the Value1 object is a series, you would remove the "[0]" from Value1 to pass the series into the EMA indicator.

    Avg1[0] = EMA(Value1, 9);

    Please let me know if I can assist further.

    Comment


      #3
      Thank you that fixed it!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      607 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      353 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      105 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      560 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      561 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X