Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Is it possible to use HeikenAshi in a Strategy?

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

    Is it possible to use HeikenAshi in a Strategy?

    Guys,

    I made a copy of the HeikenAshi indicator so I could set the colors on my chart.

    I can Add() it, but when I try to call crmHeikenAshi.HAOpen[0] or crmHeikenAshi.Values[0][0] and run a strategy, I get a very curious error message I had not seen before and I've Added() lots of other indicators:

    Error on calling 'OnBarUpdate' method for strategy 'MamaHeikenAshi2': The indicator 'crmHeikenAshi' is intended for visualization and can only be used on a chart.

    Can someone explain what causes this and how to enable this indicator to be used in a strategy please?

    #2
    ChartOnly = false;

    Guys,

    sorry. I'm leaving this here for any others who have this problem.

    In OnInitialize() the original code had this internal variable set to true.

    do this and you can use the indicator in a strategy:

    ChartOnly = false;

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    647 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    368 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    108 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    571 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    573 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X