Issues with Heiken Ashi and candle paint bar code.

Indicators coded by community members
Message
Author
djspinburner
Posts: 12
Joined: Mon Nov 09, 2015 9:35 pm

Issues with Heiken Ashi and candle paint bar code.

#1 Postby djspinburner » Thu Nov 19, 2015 10:35 am

Candle Paintbar not working correctly. Heiken Ashi indicator paints candles half blue and half red during test mode but paints them correctly in history mode. Is there any adjustment to the code that would paint them all blue or red with source code provided?

FX Helper
Posts: 1380
Joined: Mon Apr 01, 2013 3:55 am

Re: Issues with Heiken Ashi and candle paint bar code.

#2 Postby FX Helper » Fri Nov 20, 2015 7:11 am

Hello,

Can you please send the screenshtot of your issue?
I've just checked Heiken Ashi indicator and it works properly in both History and Testing Mode.
It paint the candles of only one color.

Please also check that the same color is set for Up bar color and Up bar fill color in the properties of this indicator (also for down and down bar color).

djspinburner
Posts: 12
Joined: Mon Nov 09, 2015 9:35 pm

Re: Issues with Heiken Ashi and candle paint bar code.

#3 Postby djspinburner » Sat Nov 21, 2015 9:46 am

Here are the attachments
Attachments
paintbar Indicator issue chart.PNG
paintbar Indicator issue chart.PNG (22.06 KiB) Viewed 9010 times
paintbar Indicator issue settings.PNG
paintbar Indicator issue settings.PNG (7.07 KiB) Viewed 9010 times

FX Helper
Posts: 1380
Joined: Mon Apr 01, 2013 3:55 am

Re: Issues with Heiken Ashi and candle paint bar code.

#4 Postby FX Helper » Mon Nov 23, 2015 9:43 am

Hello,

Thank you for the screenshot.

Please set "bars mode" in Forex Tester program (please see the screenshot), this will help.
Attachments
barsmode.png
barsmode.png (8.79 KiB) Viewed 8974 times

djspinburner
Posts: 12
Joined: Mon Nov 09, 2015 9:35 pm

Re: Issues with Heiken Ashi and candle paint bar code.

#5 Postby djspinburner » Mon Nov 23, 2015 10:04 am

Now the open and close don't look right
Attachments
paintbar Indicator issue chart bar setting.PNG
paintbar Indicator issue chart bar setting.PNG (47.45 KiB) Viewed 8973 times

FX Helper
Posts: 1380
Joined: Mon Apr 01, 2013 3:55 am

Re: Issues with Heiken Ashi and candle paint bar code.

#6 Postby FX Helper » Tue Nov 24, 2015 4:28 am

Hello,

These are the same bars, just Open and Close values are shown by a small horizontal line instead of building the whole bar.

You can switch between "Bars Mode" and "Candles mode" and see that the bars are the same.

djspinburner
Posts: 12
Joined: Mon Nov 09, 2015 9:35 pm

Re: Issues with Heiken Ashi and candle paint bar code.

#7 Postby djspinburner » Tue Nov 24, 2015 3:41 pm

My problem is that I used the candle painting code based on that indicator for something else that I use. I have a problem with the candles being painted half one color and half another, and changing that to bar mode makes no difference. I coded it based on reference to Ahki Ashi in the API. this is where I am looking for some help as it is making my testing difficult. I baught 2 copies of forex tester and need this one problem fixed so that I can actually start using it properly.
Attachments
Paintbar Example 1.PNG
Paintbar Example 1.PNG (64.89 KiB) Viewed 8947 times

FX Helper
Posts: 1380
Joined: Mon Apr 01, 2013 3:55 am

Re: Issues with Heiken Ashi and candle paint bar code.

#8 Postby FX Helper » Wed Nov 25, 2015 5:57 am

Hello,

Sorry, but this is the only version of Heiken Ashi indicator we have.

Please also see this theme:
viewtopic.php?f=3&t=1185&hilit=Heiken+Ashi

There you will find a source code (.dpr file) of Heiken Ashi Smoothed indicator, it builds the bars in one color.

I hope, this will help.

djspinburner
Posts: 12
Joined: Mon Nov 09, 2015 9:35 pm

Re: Issues with Heiken Ashi and candle paint bar code.

#9 Postby djspinburner » Wed Nov 25, 2015 1:11 pm

I fixed it :) I added a index+1 instead of index and now it paints the candle after it closes so we are all good. Also for you in case you want to fix the issue on your end as well.

Thanks for the help though.


Return to “Indicators”

Who is online

Users browsing this forum: No registered users and 2 guests