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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      44 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      58 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      35 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      95 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      59 views
      0 likes
      Last Post PaulMohn  
      Working...
      X