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
Dear mladen
If I want to know the last closed order type and if it made profit in an EA, can the following function do the job:
Best,
Dear mladen
If I want to know the last closed order type and if it made profit in an EA, can the following function do the job:
Best,
No, it is not (simply because the closed orders are not ordered by closing time - at least that is what the manual tells us : no guarantee that the orders are ordered by closing time). It has to be done something like this :
Dear mladen
Many thanks for your perfect answer.
Best,
Dear friends,
Can you updated attached indicators for latest build mt4 please?
Especially, "123PatternsV6" is freezes mt4 and not working!
Dear friends,
Can you updated attached indicators for latest build mt4 please?
Especially, "123PatternsV6" is freezes mt4 and not working!
I think 123 needs zigzag indicator for to work with out freezing terminal.
Zigzag indicator is already available in mt4.
Zigzag indicator is already available in mt4.
Hi.
lately I started to program MQL4 to gain experience so I can be able to code my own ideas to test them out beforehand.
Now im struggeling with the timing of the painting.
Lets say i have an if statment for some stochastics and want to wait until the MA goes above or below price before painting, how can i do that?
What i tried and the only thing that came to my mind:
the 1+1 just to fill the while loop, what i am trying to do is to wait to paint the arrow until the high of the price is below the MA, but yet i dont want this to be and statement since the cross happend i just want to wait util i paint .
however this was not sucsessful, hence i ask the professional coders in the community
Hi.
lately I started to program MQL4 to gain experience so I can be able to code my own ideas to test them out beforehand.
Now im struggeling with the timing of the painting.
Lets say i have an if statment for some stochastics and want to wait until the MA goes above or below price before painting, how can i do that?
What i tried and the only thing that came to my mind:
the 1+1 just to fill the while loop, what i am trying to do is to wait to paint the arrow until the high of the price is below the MA, but yet i dont want this to be and statement since the cross happend i just want to wait util i paint .
however this was not sucsessful, hence i ask the professional coders in the community
Try like this :
Try like this :
This will give me the "signal only when the crossover occure over the MA, I want it under the MA, but i also want the signal if i have an crossover above the MA and a few bars later the price moves below the MA.
Thats what i tried with the while loop, so the code would loop until the argument turns false and proceeed to paint the signal.
I Made a schematic drawing, maybe you will understand better.
Thank you for your reply anyway