
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
Any MQL4 program correctly recognises any available bar and much more
Changes are essence of market
Hi Ais,
Good day,
Thanks again.
O.k, then why my EA is not able to place orders each time the condition occur???
Do you have an explanation why is that happening??
Please let me know.
Best wishes,
Good day
Sooner or later any program will work
I will help to solve the code
Best regards
Insert alerts in the code
Insert alerts in the code
Hi Ais,
Good day,
why do I have to insert alerts in the code??
Do you mean that alerts would help me out finding where the errors are??
I notice that the EA is skipping some bars and I still don't know why.
O.k, I may post the EA next time if I didn't reach a solution so it becomes clear.
Best wishes,
Insert again in case of questions arised
Delete alerts after final system adjustment
Insert again in case of questions arised
Hi,
You confused me now after this many posts.
I guess I can make it short for myself and everyone else.
Here is the code as shown:
I'm trying to get bar[1] and bar[2] every time they change since my EA can't recognize them. I believe you know that bar[0] is going to be bar[1] if new bar[new] show up, and thus bar[1] is going to be bar[2] and so on.
Yes High[1] becomes High[2] and High[0] becomes High[1].
Yes High[1] becomes High[2] and High[0] becomes High[1].
Hi WHRoeder,
Good day,
Thanks a lot for helping me out.
O.k, what I understand is that I need to identify the new bar based on Time[0]. In this case my code would be as the following:
is that what it supposed to be??? I'm not pro coder yet my friend :). I'm however trying my best to be pro coder so that's why I'm trying to learn new bar coding first since it is important.
Please let me know if this is the right way, and I will try it now anyways and see how things can be done.
I appreciate it.
Best wishes,