showing custom strategies in charting area


showing custom strategies in charting area
Atom
5/12/2019


Sam

Avatar
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?



Thanks:


Sam

Avatar
Date: 5/15/2019
Reply


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.
Thanks:

Mikhail Sukhov

Avatar
Date: 5/17/2019
Reply


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


Attach files by dragging & dropping, , or pasting from the clipboard.

loading
clippy