I have a strategy that calculates combination of signals (multi-timeframe) - and can output or plot signal on chart (Strategy doesn't place orders).
I want my custom add-on to detect (ideally I want strategy to send an event and for add-on to be able to read that event through memory and not through txt file) - and the instant when that signal occurs - I want add-on to detect it.
Do you have any samples/guidelines/suggestions on how to accomplish it?
The other sub-question - let's say I have "Shark Indicators BloodHound" painting entry long/short signals on the chart. What is the best way for add-on to connect to this chart and detect the moment that dataseries/plot/property of this indicator just got updated in real-time?
Basically I have to questions:
- One-way communication from strategy to add-on (add-on subscribed to events posted by the strategy, but also being able to unsubscribe if strategy is disabled or just manually unsubscribe from that event). Maybe add-on can loop through all strategies that are enabled, and be able to select to which strategy to subscribe...
- Connect add-on to specific chart and being able to determine the exact millisecond when X indicator plots Y value in its plot property.
Thanks
Comment