if(Reversal(-1)>0){Alert"candle pattern found!");} if(Reversal(1)>0){Alert"candle pattern found!");}
if(Reversal(-1)>0){Alert("candle pattern found!");} if(Reversal(1)>0){Alert("candle pattern found!");}
Your code will not compile with the missing (
Hi
Oh yes sorry, my mistake that was a typing error on the forum post rather than my EA.
Thanks
Antony
Hi
Oh yes sorry, my mistake that was a typing error on the forum post rather than my EA.
Thanks
Antony
if(Reversal(-1)>0){Alert("candle pattern found!");}
Thanks
Antony
Well, I corrected the error and ran it through the strategy tester and it appears to return values other than zero
0 18:11:15 2016.02.19 22:00 @@@@TEST AUDUSD,H1: Alert: candle pattern found!
0 18:11:15 2016.02.19 22:00 @@@@TEST AUDUSD,H1: 2016.02.19 22:00:00
0 18:11:15 2016.02.22 05:00 @@@@TEST AUDUSD,H1: Alert: candle pattern found!
0 18:11:15 2016.02.22 05:00 @@@@TEST AUDUSD,H1: 2016.02.22 05:00:00
0 18:11:15 2016.02.22 10:00 @@@@TEST AUDUSD,H1: Alert: candle pattern found!
0 18:11:15 2016.02.22 10:00 @@@@TEST AUDUSD,H1: 2016.02.22 10:00:00
0 18:11:15 2016.02.22 12:00 @@@@TEST AUDUSD,H1: Alert: candle pattern found!
0 18:11:15 2016.02.22 12:00 @@@@TEST AUDUSD,H1: 2016.02.22 12:00:00
0 18:11:15 2016.02.22 20:00 @@@@TEST AUDUSD,H1: Alert: candle pattern found!
0 18:11:15 2016.02.22 20:00 @@@@TEST AUDUSD,H1: 2016.02.22 20:00:00
0 18:11:15 2016.02.22 20:00 @@@@TEST AUDUSD,H1: Alert: candle pattern found!
0 18:11:15 2016.02.22 20:00 @@@@TEST AUDUSD,H1: 2016.02.22 20:00:00
0 18:11:15 2016.02.23 04:00 @@@@TEST AUDUSD,H1: Alert: candle pattern found!
0 18:11:15 2016.02.23 04:00 @@@@TEST AUDUSD,H1: 2016.02.23 04:00:00
0 18:11:15 2016.02.23 04:00 @@@@TEST AUDUSD,H1: Alert: candle pattern found!
0 18:11:15 2016.02.23 04:00 @@@@TEST AUDUSD,H1: 2016.02.23 04:00:00
0 18:11:15 2016.02.23 12:00 @@@@TEST AUDUSD,H1: Alert: candle pattern found!
0 18:11:15 2016.02.23 12:00 @@@@TEST AUDUSD,H1: 2016.02.23 12:00:00
0 18:11:15 2016.02.23 17:00 @@@@TEST AUDUSD,H1: Alert: candle pattern found!
0 18:11:15 2016.02.23 17:00 @@@@TEST AUDUSD,H1: 2016.02.23 17:00:00
0 18:11:15 2016.02.23 20:00 @@@@TEST AUDUSD,H1: Alert: candle pattern found!
0 18:11:15 2016.02.23 20:00 @@@@TEST AUDUSD,H1: 2016.02.23 20:00:00
0 18:11:15 2016.02.23 22:00 @@@@TEST AUDUSD,H1: Alert: candle pattern found!
0 18:11:15 2016.02.23 22:00 @@@@TEST AUDUSD,H1: 2016.02.23 22:00:00
0 18:11:15 2016.02.23 23:00 @@@@TEST AUDUSD,H1: Alert: candle pattern found!
0 18:11:15 2016.02.23 23:00 @@@@TEST AUDUSD,H1: 2016.02.23 23:00:00
0 18:11:16 2016.02.24 10:00 @@@@TEST AUDUSD,H1: Alert: candle pattern found!
0 18:11:16 2016.02.24 10:00 @@@@TEST AUDUSD,H1: 2016.02.24 10:00:00
0 18:11:16 2016.02.24 13:00 @@@@TEST AUDUSD,H1: Alert: candle pattern found!
0 18:11:16 2016.02.24 13:00 @@@@TEST AUDUSD,H1: 2016.02.24 13:00:00
0 18:11:16 2016.02.24 15:00 @@@@TEST AUDUSD,H1: Alert: candle pattern found!
0 18:11:16 2016.02.24 15:00 @@@@TEST AUDUSD,H1: 2016.02.24 15:00:00
0 18:11:16 2016.02.24 22:00 @@@@TEST AUDUSD,H1: Alert: candle pattern found!
0 18:11:16 2016.02.24 22:00 @@@@TEST AUDUSD,H1: 2016.02.24 22:00:00
0 18:11:16 2016.02.24 23:00 @@@@TEST AUDUSD,H1: Alert: candle pattern found!
0 18:11:16 2016.02.24 23:00 @@@@TEST AUDUSD,H1: 2016.02.24 23:00:00
Must be an issue with my terminal I will try and re-install the mt4 program to see if it resolves the error.
Thanks
Antony

- 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
I have a function in my EA whihc has operate correctly for some time, until recently. When the function detects a very specific candle shape it returns a vale higher than 0.
So here is the function call:
Here is the function: