looks like i should call this https://docs.mql4.com/indicators/ima instead of combining two separate indicator.
Any idea? Anyone?
- docs.mql4.com
I have two codes one Doda stochastic and EMA cross over alert, i have combined both. ( i have set correctly i guess the buffer values, setindex and all but because of two "for loops" i am stuck and two counter in same code), I have modified code as much as i could. (compiled when counter name change)
(Note: xx are Values)
my conditions when
Buy Alert:
(doda stochastic above xx) && (ema slow xx above ema fast xx) = BUY alert
Ex:
Sell Alert:
(doda stochastic below xx) && (ema slow xx below ema fast xx) = sell alert
Ex:
Please let me know where i am wrong.
You need to be more specific - what do you mean by "no result"?
When I run your code, I can see two lines and arrows for both directions plotted within the same indicator sub-window. Only problem is your arrow positions are wrong.
You need to be more specific - what do you mean by "no result"?
When I run your code, I can see two lines and arrows for both directions plotted within the same indicator sub-window. Only problem is your arrow positions are wrong.
Probably due to this line:
Hey Seng Thankyou, you were right it was because of the barcount, i will try to fix the arrow position.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello All,
I have two codes one Doda stochastic and EMA cross over alert, i have combined both. ( i have set correctly i guess the buffer values, setindex and all but because of two "for loops" i am stuck and two counter in same code), I have modified code as much as i could. (compiled when counter name change)
(Note: xx are Values)
my conditions when
Buy Alert:
(doda stochastic above xx) && (ema slow xx above ema fast xx) = BUY alert
Ex:
// if((ExtHistoBuffer[0] <indicator_level1 && BuyAlert==False) && (CrossUp[i] > CrossDown[i] && alertTag!=Time[0]) )
Sell Alert:
(doda stochastic below xx) && (ema slow xx below ema fast xx) = sell alert
Ex:
// if((ExtHistoBuffer[0] >indicator_level2 && BuyAlert==False) && (CrossUp[i] < CrossDown[i] && alertTag!=Time[0]) )
Please let me know where i am wrong.
Thankyou.