Im trying to code a custom candle which is based upon an parameter and the period of the underlying chart.
When i set the parameter to 3 and attach the indicator on the 3m chart i would like to have it display a custom candle of 3 bars wide.
Now i have code from the old custom candle indicator (within JForex) but it draws the rectangles (custom candles) completely wrong, see attachment.
This uses the 'older' custom candle code which outputs this way... Does anyone has the new code available?
I have it working but only in an Strategy while i want to use an indicator.
Someone know how to do this and or why the old code doesnt work and paint the way it does?
Anyone can give me some pointers how to proceed?
Thanks,
Phil