← 返回

showing custom strategies in charting area

Hello, I've created a custom strategy and indicator following the help files. However, when I try to display it (the value should be around .1) it only shows the bitcoin price on the y axis and doesn't seem to draw anything. The number seems to be passing to the chart because if I hold the mouse over the connection, it shows the value. I have this in the code so it seems like it should work.

    [DiagramExternal]
    public event Action<IIndicatorValue> NewMirocanaIndicator;

            var indicatorReturn = _NewMI.Process(candle);
            NewMirocanaIndicator?.Invoke(indicatorReturn);

What do I need to do to show this correctly?

本主题对您有帮助吗?

分享主题

评论 (2)

登录创建账户, 登录或注册以发表评论

Sam
Sam 作者

So, after multiple days of frustration, the reason it was not painting is because the indicator never set the "IsFormed" property to true. Different parts of the help give different parts of the equation. Make sure you look at other parts that deal with the issue you are working with. The answer may be in a different section.

Mikhail Sukhov
Mikhail Sukhov

Thank you for the feedback. We will improve our documentation.