
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 inserted your code in my EA and it works perfectly ! I smilled when i see the EA execute like i wanted !!!
Very thanks very very ......
It's on backtest cause market is closed...
But there is a problem:
Ea Open correctly positions, but buy are never closed and sell immediatelly closed when opened.
Don't you want to know if your OrderClose() has failed and if it has why it has ? why aren't you checking the return value from the OrderClose() function and reporting any errors ? you might find that both the Buy and Sell are trying to close immediately but the Buy OrderClose() fails . . .
What are Function return values ? How do I use them ?
There is no error on Journal tab.
I will place return values. Can i do that?
There is no error on Journal tab.
I will place return values. Can i do that?
Close has a different meaning . . . OrderClose() returns a bool . . .
Close has a different meaning . . . OrderClose() returns a bool . . .
Ok ok i will do that, thanks :)
I inserted:
No error writed.
I inserted:
No error writed.
You can't close the same order twice . . .
I solved the problem, loop conditions weren't correctly coded...
Thanks again.
Hi all,
i used the code given by WHRoeder, but i see with the time that EA only take only one "#define" to be a reference for the 4 differents hours.
I tried different way:
I built a arraysize with Int which are candle reference and it's the same, only one is considered no the 4 number, how can i solve it?
Ok, i inserted your code in my EA and it works perfectly ! I smilled when i see the EA execute like i wanted !!!
. . . how can i solve it?