I would like to have a script which would:
1. go to directory (Eg: C:\MT\ ) (Or other - that is a choice )
2. Look for files with particular naming convention like "CurrentDate.Currency.DisableShort.Range.txt" (Examples below )
3.For all EA auto tradings with that currency would change configuration that allows only "Long" trading (Disable Short) for the specified range. (Or "Short" - Disable Long)
File name examples:
"YYYY.MM.DD.Currency.DisableShort.Range.txt"
2015.12.31.EURUSD.DisableShort.1.12865_1.12978.txt
2015.12.31.EURUSD.DisableLong.1.12855_1.12970.txt
2015.12.31.USDCHF.DisableShort.0.92865_0.97978.txt
2015.12.31.USDCHF.DisableLong.1.10010_1.52970.txt
Not to stop EA only to set it for Short or Long for that range specified in file name.
If the range overlaps ,- for particular currency, overlapping range, all EA short and long would be disabled.
Everything what is not in the range or between ranges (If not overlapping) ,- long and short allowed
If file with the date not found ,- long and short allowed
Script or application should not stop the EA, so EA would continue to work with open positions.
For disabled short range, would not to allow "sell stop", "sell limit" within that range.
For disabled long range, would not to allow "buy stop" buy limit" within that range.
Script or application should have a setting how often to check for the file and if the file changed,- reconfigure settings ( default could be 5 min )
Would run on MT4 (Admiral Markets platform version)
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.DisableShort.1.12865_1.12978.txt
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.
비슷한 주문
I need a professional MQL5 developer to build a fully automated Expert Advisor (EA) named " Hassanien Daily Breakout ". The EA is based on daily price levels and specific execution times. Technical Specifications: Time Settings (Iraq Time - GMT+3): Execution Time: 10:00 AM. Full Clean-up Time: 10:50 PM (Close all open positions and delete pending orders). Entry Logic: Case 1 (Pending Orders): At 10:00 AM
Hi basically I'm wanting an already made EA scalper that's constantly in and out of trades on the M1 time frame that has good risk management. It knows what it's doing. Most of its trades are profitable and that can start with $100. I am willing to pay up to $1500 for the right scalping bot. If you please have one and you're very confident in it, please allow me to use a live version to see how it does and if I'm
Need an trailing SL manager which can work with my all open trades (trades may be multiple), Put a fix SL based on entry price and then trail my strictly in my favoured direction, Initial SL shud be confiurable via a small dashboard
Create a forex robot especially for sculping using the 3 ema strategy which consists of the following moving average levels of the 15 ma ,30 ema , 60 ema and 90 which enter potentially on a retest into the ema and targets opposite direction after the retest .Potentially bringing into account that the number of retested emas controlls the number of entreis which for eg. retest of the 15 ema single 0.01 trade is
Need to improve logic in existing coding for Range breakout/breakin EA 1) for timing range like 1am-10am Asian Range with max entry per session like London 1-2 times max entry 10-4pm & US session timings 1-2 entry 4pm - 8pm or 2) candle high low range eg 4pm to 4:30pm - entry logic eg mark 30min candle high low range as given in attached picture with buffer if required to show entry , SL & TP in trade/backtest mode
Make a Robot for mt5 using supertrend indicator for entry in trade with period 2 and multiplier 1.1 using Heiken Ashi candle also with martingle of 2 with maximum step for martingle is 15 step until profit reaches double of total loss. Select time frame 1 minute.Always close the previous trade if in loss then take next trade with martingle of 2 of previous lot in loss. All parameter have the option to change it
Robot que combine 2 indicadores en la ejecución automatica: 1 el Gann High Low y el Donchian Channel (DC) ACTIVO: XAU/USD EN UNA HORA PARA EL DC: período DC = 55 velas displacement/shift = 1 Mas Detalles en este video : https://youtu.be/3jI3cZY89T4?si=YEZAkMvWiq9O8-u9
Hello, I need an Expert Advisor for both MT4 and MT5 based on a recovery/grid trading strategy. Strategy Logic: User manually opens either a Buy or Sell market order. Once the first trade is opened, the EA automatically places an opposite pending order at a user-defined distance. If the pending order gets triggered, the EA places another opposite pending order at the original order price. This cycle continues
📌 Project Overview: I need a full Smart Trade Management System for MetaTrader 4/5. This is a complete trading ecosystem, not a simple EA. 📌 Core Features: Smart Money Management (risk-based lot calculation) Advanced Trading Toolbox (TradingView-style drawing tools) Central Master Dashboard (risk, filters, account control) Multi-account monitoring (MT4/MT5 synchronization) Real-time monitoring (spread, equity
We are seeking an experienced MQL5 developer to build the Guardian EA, a focused circuit-breaker module for MetaTrader 5. Objective Protect capital during adverse moves by temporarily exiting positions at a defined drawdown threshold, while virtually tracking those positions as open. Re-establish the positions only when market conditions stabilize (via ADX) and drawdown recovers to a lower threshold. The goal is full