Hi,
It's better to display open price int your strategy, but if you need to do this in the custom indicator, price can be accessed through input parameters. Firstly you need to specify InputParameterInfo.Type to PRICE and then cast input object to double array of arrays.
InputParameterInfo[] inputParameterInfos = new InputParameterInfo[] {new InputParameterInfo("Input data", InputParameterInfo.Type.PRICE)};
public void setInputParameter(int index, Object array) {
double[][] inputs = (double[][]) array;
}
Prices for PRICE type will be in the following order: open, close, high, low, volume.
Please take a look at the following JForex wiki page for more details:
https://www.dukascopy.com/wiki/index.php ... ameterInfo