I'm just a beginner trying to build up very simple EAs. At the moment I'm able to build the just using standard indicators for enter or exit conditions.
Actually I'm testing a very stupid EA just for practice where the buy enter rule is something like:
and buy exit rule is
Viceversa the sell enter rule is
and sell exit is:
I'm not expecting that this works for making money but I'm looking for someone who could explain how to write this additional condition:
if the candle at time  makes me exit from the market (e.g. close<open for buy exit) and at the same time this condition satisfies an enter in the market (e.g enter sell), do not enter:
never enter if on previous candle there was an exit from the market.
Thank you for your help
Ok, thank you. I'm sorry.
I'll try to solve and post questions just for specific doubts non my attempts
To get more understanding:
In Mql4 there are a lot of examples of different ea's: https://book.mql4.com/appendix/examples
Look on youtube: Seacrch " MQL4 Programming" , " jimdandy " does a lot of videos to learn MQL4.
For what you want a few ways to do it:
1/Read account History , Checking the last trades close Time.
2/Create a Static,
Good Luck with learning MQL4.
Thank you both for your suggestions and for providing such useful links.
To add comments, please log in or register