Hi,
Can you please have a look at this indicator . Download:
https://www.tektronic.ro/problem.zipIgnore what it does and errors shown. Basically, calculates the correlation between 2 instruments.
When I first time use Add Custom indicator, the first below image appears. The indicator correctly identifies the pairs names at that indexes 20 & 21.
Index: 21 Name: AUDCAD Ord: 29
Index: 20 Name: AUDCHF Ord: 30
After I click Ok , the indicator gives me in void setOptInputParameter(int index, Object value) the values (ordinals) at index 20 & 21, which are 29 & 30 and I use to detect the pairs selected. You can see in the second capture I get them correct.
But indicator settings line shows wrong data as you see in the second image. It appears that instead to use the value (instrument ordinal) from that indexes it uses the index itself as value.
I am not sure if I am wrong, think no. But if this is a bug/problem with JForex I please you let me know before you start fix it so I can know and go doing other stuff meantime.
Overall, I would like to know if I am on the correct way in logic of this indicator. Is something else I should take care or I do wrong ?