Hi,
i want to add an indicator to the chart via API and not via the menu of the chart.
a small code snippet would be nice.
i know that IChart has the method addIndicator(IIndicator indicator) but i don't know
how to get or create e.g. the RSI indiactor or VOLUME.
i found out, that the context has some indicators, but they will return the value of it, e.g.
double d = context.getIndicators().rsi(Instrument.EURUSD, Period.ONE_MIN, OfferSide.BID, IIndicators.AppliedPrice.CLOSE, 14, 1);
console.getOut().println("rsi: " + d);
in the api doc, there is a IIndicatorsProvider interface, that has the method getIndicator(String name).
my intension was to use this method e.g. getIndicator("RSI") or getIndicator("VOLUME"). but the problem is,
that i can not found an instance of IIndicatorsProvider to call the method that i want.
so i don't know at the moment how i can add an indicator to the chart.
next thing would be to add an custom indicator to the chart ... but at the moment, i need some help with
a code snippet

greetings,
tom