
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
The Fibo calculation is not wrong, its just a bug.
Change the lines in OnTick() for TakeProfit to add GetFibo
from
StopLoss=(int)((size_corridor/100.0*GetFibo(Fibo_StopLoss))/m_symbol.Point());// ???
TakeProfit=(int)(((size_corridor/100.0*Fibo_TakeProfit)-size_corridor)/m_symbol.Point());// ???
to
StopLoss=(int)((size_corridor/100.0*GetFibo(Fibo_StopLoss))/m_symbol.Point());// ???
TakeProfit=(int)(((size_corridor/100.0*GetFibo(Fibo_TakeProfit))-size_corridor)/m_symbol.Point());// ???
Nice Code :-)
The Fibo calculation is not wrong, its just a bug.
Change the lines in OnTick() for TakeProfit to add GetFibo
from
StopLoss=( int)((size_corridor/ 100.0*GetFibo(Fibo_StopLoss))/m_symbol. Point()); // ???
TakeProfit=( int)(((size_corridor/ 100.0*Fibo_TakeProfit)-size_corridor)/m_symbol. Point ());// ???
to
StopLoss=( int)((size_corridor/ 100.0*GetFibo(Fibo_StopLoss))/m_symbol. Point()); // ???
TakeProfit=( int)(((size_corridor/ 100.0*GetFibo(Fibo_TakeProfit))-size_corridor)/m_symbol. Point()); // ???
Nice Code :-)
What is it?
I am getting these errors when loading this EA
'INIT_FAILED' - expression not boolean ZigZag EA.mq5 Line 427 Comment 20
'INIT_FAILED' - expression not boolean ZigZag EA.mq5 Line 433 Comment 17
Also don't see the Fibo fix stated above..
can you add the Fibo fix and fix these errors and upload again?
I am getting these errors when loading this EA
'INIT_FAILED' - expression not boolean ZigZag EA.mq5 Line 427 Comment 20
'INIT_FAILED' - expression not boolean ZigZag EA.mq5 Line 433 Comment 17
Also don't see the Fibo fix stated above..
can you add the Fibo fix and fix these errors and upload again?
Please download version 1.003 from the Russian part of the forum: https://www.mql5.com/ru/code/21452
Please download version 1.003 from the Russian part of the forum: https://www.mql5.com/ru/code/21452
This line of code is still not fixed:
The Fibo_TakeProfit is an enum, and supposed to be translated into a percentage value by the function GetFibo(), which is missing here.
Fixed line should read like this:
This line of code is still not fixed:
The Fibo_TakeProfit is an enum, and supposed to be translated into a percentage value by the function GetFibo(), which is missing here.
Fixed line should read like this:
Thanks.
But you can always fix the code yourself or download version 1.005 from the Russian part of the forum: https://www.mql5.com/ru/code/21452
Thanks.
But you can always fix the code yourself or download version 1.005 from the Russian part of the forum: https://www.mql5.com/ru/code/21452
Of course. Thanks for your work. Of course, thanks for your work.
In version 1.005, I also added insurance: checking the current price and the price of a pending order.
The inputs ExtDepth, ExtDeviation, ExtBackstep are not evaluated. This line should be changed:
to
Furthermore, the start/stop time inputs are not evaluated, except for a validity check in OnInit(). So the user has no control over trading time although the inputs suggest otherwise.
The inputs ExtDepth, ExtDeviation, ExtBackstep are not evaluated. This line should be changed:
to
Furthermore, the start/stop time inputs are not evaluated, except for a validity check in OnInit(). So the user has no control over trading time although the inputs suggest otherwise.
1.006 Now the time settings work
And work:
In addition, you can set the time inside the day and the time with the transition to another day (Russian part of the forum: https://www.mql5.com/ru/code/21452).