Hello,
I need to ask you something..
I am creating custom indicator PAC (price action channel) and I need to have following optInputParameters in my indicator:..
int Period - period of bars for calculating the PAC values.
boolean Include_current_bar - if part of the perdiod should be also current_bar or not
Instrument - instrument from where the indicator takes the price bars for calculations
Unit - unit of the instrument
UnitCount - unitCount of the instrument..
It is really simple and I already wrote whole the indicator, but the problem what I am solving and why I need your help is, that the indicator is working when I am trying for example this:
to add indicator into into chart GBPUSD_1_Hour but as source data chart set instrument EURUSD and unit 30_Minutes.
So my indicator is working fine when you will try to add it into some chart and as source data chart you will use the same instrument and unit.
But when you want to see this PAC indicator with values of chart EURUSD drawn in chart GBPUSD it will be not working..
Any advice please?
Thank you
see the source code:
https://files.lorencsoftware.cz/20000006 ... I_PAC.java