What do you mean incorrectly converted? Did you use a tool to attempt to convert it or did you ask a freelancer to convert it?
The code isn't wrong, but you have no initializer or object cleanup. I fixed it.
Edit: I added the traditional zigzag as a dynamic buffer so it draws with the objects in the strategy tester
What do you mean incorrectly converted? Did you use a tool to attempt to convert it or did you ask a freelancer to convert it?
The code isn't wrong, but you have no initializer or object cleanup. I fixed it
Sorry sir, I have some wrong indicator code but I converted EA code to Indicator code.
Thank you for fixed it...👍
I don't use zigzag Indicator but I wanted detect this BOS .
I need detect this history/Previous/shift bar .
What do you mean incorrectly converted? Did you use a tool to attempt to convert it or did you ask a freelancer to convert it?
The code isn't wrong, but you have no initializer or object cleanup. I fixed it.
Edit: I added the traditional zigzag as a dynamic buffer so it draws with the objects in the strategy tester
You edited the message, and I downloaded both mq5 files. Thank you for fixing it! 👍👍
I didn't mind as it was easy to make it work. It's true that the zigzag indicator wasn't needed for this logic, but it always complements market structure logic (visually)
You optimized the 'for' loop.
No need ZigZag Indicator....
I added this "shiftOffset" code 👇
if(close[i] < swing_L && close[i + shiftOffset] < swing_L) Because I wanted to detect this BOS after closed candle..
It worked very well..
Thank you 👍
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I converted Expert Advisor Code to Indicator code in MQL5
Expert Advisor Code :-
Indicator Code :-
Is this correct code ?