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 robot that will grow small accounts to bigger amounts like this one in this link, https://youtu.be/d38pMbJihew?si=3NeIOVyrlwDr4X_o. Please click the link and watch how this EA grow small accounts. Then create a robot like that. I will test it on demo first then if it does what i want, i will take it. Please it must be simply to use. It must set targets, for example, once it reaches $500 profit, it must
Your XAUUSD Buy Stop / Sell Stop Grid EA Strategy 1. Initial order placement Buy Stop orders — 5 orders Place 5 Buy Stop pending orders above the current market price. Each order is spaced 1.00 XAUUSD price unit apart. Initial lot sizes range from 0.01 to 0.05 lots . Sell Stop orders — 5 orders Place 5 Sell Stop pending orders below the current market price. Each order is spaced 1.00 XAUUSD price unit apart. Initial
I am looking for an experienced and highly competent MQL5 developer to create a bespoke, fully automated Forex Expert Advisor for Meta Trader 5 for my Apple iMac. The EA will incorporate a proprietary trading strategy involving multiple position management, dynamic trade execution, advanced profit management and sophisticated risk controls. Key technical requirements: Automated trade execution and management
Hello developers and quantitative traders, I am looking to purchase a license for an EXISTING, professionally developed MT5 quantitative portfolio Expert Advisor with a long-term, independently verifiable trading history. Purchase budget: $5,000–$15,000 USD Additional annual maintenance fee: $1,000 USD I am willing to establish a long-term commercial relationship with the developer. IMPORTANT: I am NOT looking for
Hello. I have some custom chartbooks/studies that run on ACSIL C++ in Sierra Charts trading platform. I need them put into pinescript to be able to be used in trading view and look similar to the charts we are giving you. also need it to be able to work on ninja trader NinjaScript (C#)/java, and MQL4 and MQL5 for metatrader 4 and 5. You would have to assist with testing. Let me know if you can help with this task
Project: XAUUSD Gold Trading Robot for MetaTrader 5 I want to develop a fully automated Expert Advisor (EA) for MetaTrader 5, designed exclusively for Gold (XAUUSD) and compatible with the Exness broker. Trading Strategy: Liquidity + CHOCH + Retest Identify important buy-side and sell-side liquidity zones using previous highs and lows, equal highs/lows, and confirmed swing points. Wait for a clear liquidity sweep
I am looking to acquire an EXISTING and PROVEN MetaTrader 5 Expert Advisor. I am NOT looking for someone to develop a random new strategy from scratch. The objective is to find a robust EA with an existing track record, verify its performance and robustness, and purchase the MQL5 source code together with clearly defined commercial rights. MAIN REQUIREMENTS The EA should meet most or all of the following
Hello, I am a serious buyer interested in acquiring an existing, stable and profitable Expert Advisor (EA) specifically designed to: 👉 mainly (XAUUSD) or any other exchange rate This is a full purchase order. ⚠️ I'm not interested in creating a new EA from scratch. Only ready-to-use, proven systems with a real track record of performance. ✅ EA Requirements (Stringent) 📌 Symbol and Strategy ✔️ Trade Gold Only
Here is a professional, detailed requirements specification draft for your MQL5 freelance order based on your prompt: Strategy Objective: Develop an automated Expert Advisor (EA) featuring a 1:3 Risk-to-Reward ratio optimized for a small starting budget. Core Trading Logic: Execute automatic Buy and Sell trades using high-probability entry signals. Target a strict 90% theoretical win-rate structure through
i want to fix my gold martingale bot MT5. RSI 14 ENTRY 30 BUY 70 SELL Lot 0.02 0.04 0.07 TP 150 for all SL 90 30 30 once total daily profit is 200$ stop trading stop trading once 2 consecutives total losses stop trading if spread exceeded 30 and between hour 15 & 17 PM Move SL to breakeven point once the profit exceeded 50 from from breakeven thanks