thanks I was checking testing and showing it that there were no trades and than it was trying again and so on. finally what it did was opening just one trade without closing it ...
Its a very old indicator and its been played with. There are better pivot indicators already coded, for example here is one example on this forum and I am sure if you do a search ...
New update to the MQL5 Notebook. This is a living document and will be frequently updated over time. I rewrote the section for beginner programmers, and added starting MQL5 ...
What isn't working? I only did what you asked - corrected the errors. The code is now clean, no errors, no warnings. That's what you asked to be done. I don't know who or what ...
PLEASE, KINDLY ATTACH YOUR CODES AS .mq4 or .mq5 FILE ATTACHMENTS. THANKS