the goal here is to build some code I suppose on an indicator that allows us to create an instrument X like the result of multiplying two other instruments already set up in a NT 7 chart.
The idea is to track different instruments on a different price point of view. Let's look at crude oil CL and have it multiplied with instrument 6E so as to have a chart with crude oil based on euros.
Thought of simply creating 4 dataseries in a new indicator for open, high, low and close values of the resulting instrument X values, updating them at OnBarUpdate when BarsInProgress==1.
Then for the Plot() function I thought of using similar technique to build GomCD_style_candlesticks at Plot().
But thought there should be an easier way to just 'tell NT' to plot the result X of this indicator as new user_instrument so it would already be perfectly plottable as candlesticks, point and figure and so on.
Is there a way to create a new user_Instrument and feed its data from an indicator?
Or is there a way to treat as an instrument (at least for the plotting capabilities) the 4 dataseries OHLC resulting from an indicator?
Thank you for your time to imagine this.
Comment