İş Gereklilikleri
I would like someone to create a piece of code for me, a daily range qualifier that I will be able to add to an EA, other code I will create later. I am new to MQL4 and am learning but am already overwhelmed.
I would like to limit my future EA to only look for entries after 50pips of daily range have been completed since daily open. The idea is that this will keep the EA from operating in the Asian sessions where lower volatility is common and other days/periods where there is simply not much volatility in the market.
I need code to:
a) calculate daily range since start of day (GMT/Server time)
b) print this daily range in the lower corner of the main window in real time
c) reset the daily range counter to zero at the start of the next day
d) Set-up the DailyRange level to external so that it can be easily modified higher or lower for more/less volatile pairs.
e) be optimised so that once DailyRange level > 50 then it doesn’t have to run this process again, simply move to the next condition, until the start of the next day
f) build a preliminary If/then condition to test it works without error as an EA, eg demonstrates it triggers 1x trade only with SL and TP if Daily Range=>50 AND if Stoch signal line >60 execute a long trade OR If Stoch signal line < 40 execute a short trade - just an example...
g) with comment code to show me how to integrate this condition with other conditions I hope to code myself in the future… or at least try.
I use ADR 1.MQ4 to display ADR and Daily Range on my chart so it could be a super-simple job of co-opting some of the code included, which I cannot do yet.