Is it really wrong?
The white field of the bottom indicator on your first pic above seem to start around 19:30 and end around 21:30.
Isn't it so that the 19, 20 & 21 candles on H1 are bullish and it is displaying as it should? For every candle there will be 60 white bars if displaying the indicator ON a m1 chart.
Just a thought...
/ McKeen
for(i=0,y=0;i<limit;i++) { if (Time[i]<TimeArray[y]) y++; double UpBuffer =iCustom(NULL,TimeFrame,"Heiken Ashi_SW",MaMetod,MaPeriod,0,y) ;The bar you want in the iCustom is the H1 bar corresponding to your Time[i]. Get rid of TimeArray[] and use
y = iBarShift(NULL,TimeFrame, Time[i]);
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Ok - I have been attempting to do this for about 10 hours now and I am going nuts. There has to be something very simple that I'm missing.
I wanted to make an indicator that determines whether which direction the Heiken Ashi MA candles are facing, and then graphs JUST THE COLOR in a separate indicator window. This works just fine when I set the chart's timeframe as the Heiken Ashi timeframe. However when I attempt to determine the candle color on higher timeframes, it acts very very oddly! Basically, it works right when I attach it to the chart, but every subsequent bar of the higher timeframe will render as the same color!
The top indicator is running on M1 (the same as the chart). The bottom one is running on H1. Top one works, bottom doesn't.
The indicators are included in the zip file, but I'll post the code here too:
Here is the base indicator... this one seems to work fine and has no problems:
And here is the Multi Timeframe indicator that feeds off the first one. I have been trying to fix it for hours.... I must be some sort of retard :(