Tarea técnica
2015.12.31.EURUSD.DisableLong.1.12855_1.12970.txt
Not to stop EA only to set it for Short or Long for that range specified in file name.
I would like to have a source code as well
Additionally – Should be an option ,how to mark some EA, that script would not affect it.
Could be not Affected all scripts that has a comment witch starts with “NoEffect ………..“.
Or could be the Name of the EA file , like NoEffect_ExpertName.mq4
That would be useful for utilities EA , like those who sets the stop loss or manages equity ....
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Example
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Just I want to know, that we are on the same page, so let me rephrase with example some of the aspects.
example:
If script will find files in specified directory named:
2016.03.15.EURUSD.DisableLong.1.12855_1.12970.txt
Many EA in metatrader 4 (downloaded from Admirals Market) for currency pair EURUSD will trade Long and Short. (Some of them may be set only Long or Short - manualy )
On day 2016.03.15 once the price reached the range between 1.12865 and 1.12978 the all EA's for that currency pair will trade only Long, and all pending Short orders within that range will be removed.
Once the price exit that range Short and Long settings for all EA's will be restored (Like mentioned before if EA set manually only for Short in previous range it would not trade at all and later set back only for short ) .
Same goes with Long:
On day 2016.03.15 once the price reached the range between 1.12855 and 1.12970 the all EA's for that currency pair will trade only Short, and all pending Long orders within that range will be removed.Once the price exit that range Short and Long settings for all EA's will be restored.
If the rage is overlapping on that date for particular currency pair for overlapping range and Short and Long will be disabled for all EA's trading with that currency pair. Like in eg.:
On price range 1.12865-1.12970 - long and short would be turned off (basically apps running, managing open trades but do not perform any new trades)
If price moves to 1.12970-1.12978 Long trades for new orders would be restored for all EA on specified date for specified currency pair.
If price moves to 1.12855-1.12865 Short trades for new orders would be restored for all EA on specified date for specified currency pair.
Once price moves out of specified ranges, on specified date, all settings for all EA 's trading settings on specified currency pair would be restored.
( EA's running on other currency pairs should not be affected by particular change for particular currency pair )
Script at any time should not change other EA settings,- like SL , magic number, comments etc.
Script should change settings only then it is needed ( I mean not to overwrite same settings, every couple minutes, even there is no need to change )
Frequency to check file, price and settings should be adjustable ( in seconds ), default could 300 seconds (5 min)
Hope that we do understand each other and everything is evaluated.