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


Sam

Avatar
Donator
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:




2 Answers
Sam

Avatar
Donator
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.
Topic starter
Thanks:

Mikhail Sukhov

Avatar
Articles author Programmer Trader
Date: 5/16/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