A mt4 AND mt5 EA which Enables/Disables Auto-Trading by News Data stored in a CSV File

MQL5 エキスパート

仕事が完了した

実行時間4 日
依頼者からのフィードバック
All the best.
開発者からのフィードバック
Thank you for the interesting project.

指定

A mt4 AND mt5 EA which Enables/Disables Auto-Trading by News Data stored in a CSV File

 

Task:

Create an EA similar to the very famous IceFXNews to disable trading before news events and enable trading after news events

Both MQL4 and MQL5 versions are required.

The indicator/EA reads events from a csv file. The csv file has a strict format / data structure as attached example.

The CSV file is saved under C:\Users\username\AppData\Roaming\MetaQuotes\xxxx, so I would not need to update this csv file in each mt4/mt5 directory separately.

 

Parameters and functions:

 

Parameter

Type

Note

Calender data name

text

xxxx.csv. Format is identical as attached example csv file.

Enable news filter

True/false

General switch of news filter

GMT-Offset broker server

int

GMT-Offset broker server to csv file. For example broker server is in GMT3, csv file time and date is for GMT0, then this value should be 3-0=3

Trading currencies in this terminal

Text array

I will manually type in the traded currencies in this array like

“USD,CAD,EUR,…” so that the EA will only take care of USD,CAD and EUR relevant news events.

Only consider forex currencies.

For example, a SGD related news will not stop auto-trading in terminal, which trades only EURUSD and AUDUSD.

If this array is empty, then controll all currencies by news events

This setting controls all parameters/functions below!

Text to identify speech

Text arry

“peech,speak,speaks” means events containing any of these 3 strings is a speech-type-event. Case insensitive!

enable low impact news

True/false

General switch of actions by low impact news

Include (enable) low impact  speech

True/false

Treat speech as news

* (star) Close all relative positions before low impact news/speech

True/false

Pay attention: this switch has 2 threshold values below!

Close positions FL/FP threshold

Number

Calculate the to-be-closed-positions’ floating loose/floating profit. For example “-0.8” means only if ALL to-be-closed positions’ FL<=0.8 account currency unit, then close all relative positions.

“15” means only if SUM FP>=15, close all relative positions.

“0” means ignore this setting, close all relative positions if the * (star) parameter is “true”.

Close positions lot size threhold

number

For example, 0.5 means close relative positions lot size >= 0.5, “0” means close all relative positions if the * (star) parameter is “true”.

Close position action time before low impact news/speech

number

5 means close positions 5 minutes before news schedule.

Close positions if low impact news is bad for pending positions

True/false

The EA should record the FL/FP of news relative positions before disable auto-trading.

After auto-trading is enabled after news event, the EA compare FL/FP with the value before disable auto-trading.

If FL/FP after news is worse (more floating loose, less floating profit) than before news, then close all news relative positions.

Disable auto-trading by low impact news/speech

True/false

 

Disable auto-trading action time before low impact news/speech

number

70 means disable auto-trading 70 minutes before news schedule.

Enable trading minutes after low impact news

number

In minute.

Enable trading minutes after low impact speech

number

In minute. Since speech takes more time than news. The time will be different as above.

Repeat above points for mid impact news/speech

Repeat above points for high impact news/speech

 

EA should pop-up warning if close position is later than disable auto-trading (wrong setting, wrong logic).

 

Panel

 

EA should have an very easy panel to show following information:

1.     Next relevant event: time, subject and related currency, action.

Example:

   Position of the Text is chart right down corner.

Next event: 2021.09.15, Nonfarm Payroll Data release, USD, close currency related positions if FL<=0.8 30 minutes before event, disable auto-trading 25 minutes before event, enable auto-trading 30 minutes after event.

 

Thank you!


ファイル:

応答済み

1
開発者 1
評価
(169)
プロジェクト
204
30%
仲裁
25
40% / 44%
期限切れ
12
6%
2
開発者 2
評価
(251)
プロジェクト
402
38%
仲裁
82
41% / 20%
期限切れ
70
17%
仕事中
3
開発者 3
評価
(62)
プロジェクト
84
26%
仲裁
22
23% / 50%
期限切れ
23
27%
4
開発者 4
評価
(76)
プロジェクト
129
49%
仲裁
5
80% / 0%
期限切れ
6
5%
類似した注文
Develop a trading bot from a custom indicator The indicator gives colours for buy and sell . Bot should hold position for as long as colour persists Include money management and risk management
I would like an E A for MT4 (that will later be converted to MT5 ) that can Toggle AutoTrading on/off, on a schedule (scheduled sessions) - I want at least two on/off options (scheduled sessions) per day (with True/false to control use of function) - A true/false function for Each Day to control trading on that day - I want the option to close all trades at “off” time I would like the EA to have a Max Gain/Max Loss
Hi, this indicator work on display current period. I want to modify it with a new input variable like "timeframe" to select the desired timeframe, and be able to switch the visual timeframe without impact to the signals. Example: if I set in the new input timeframe "PERIOD_M15" and I switch my chart to M30, the indicator must always work in PERIOD_M15, and print the object to the correct price and time of the
As title. I need an EA Source Code with your strategy that helps make profit 5-10%/month, just easy currency pairs like GU/EU/Acad. If DD is low then that's great. I need your clear evidence and description. I am an experienced person so please do not send ea to read history or HFT, New or exotic methods are acceptable, non-martingale, one shot, or hedg mesh accepted, please send info, demo, or some description
I need a simple automated Expert Advisor that can trade any of deriv indices except boom and crush or us30. Must at least be able to trade a 20$ account..i need it ASAP, referrals also welcomed
Hi guys. MT4 or MT5 (prefer MT4) I need an EA writing that does not need any charts. It needs the following:- price offset in pips (gap between buy and sell) after the initial buy or sell is triggered, a gap is then set in pips able to buy and sell until desired profit is reach take profit in dollars or pips it needs a stop loss in dollars or pips complete details on application many thanks
Hello everyone, I'm looking for a profitable scalping EA, with a proven record and backtests on multiple pairs (at least from 2010). The EA doesn't need to make a huge amount of profit, but I care about safety. 1-2% monthly profit is enough. At least 5-10 pips per order. Grid, averaging, martingale are allowed, but backtests need to prove that the account doesn't blow up. Preferred pairs: GBPAUD, GBPNZD, GBPJPY
I need programmer who can complete my this coded strategy and make if full functional for me pleas find below coded and basic strategy. Sell Higher High or buy Lower Low: STRATEGY BASED ON PENDING ORDERS. ORDER: SELL STOP/BUY STOP VALUE: CURRENT MARKET CONDITIONS TRILLING STOP: ADDED TP (SELL): HIGHER HIGH SL: 1PIP TP(BUY): LOWER LOW SL:1PIP MODE: SCALPER MAX PENDING ORDERS: 3 MODIFICATIONS: TREND BASED Licensing
Hi Looking for an exisiting bot to create a Expert Advisor, that can pass prop firm Challenges (1 or 2 phases), like FTMO, MFF, TFF etc. NO martingale strategy Need to have nice entries and exits. NO big lots and low risk. Need complied with this restrictions: -Profit 10% -Max Drawdown (DD) 10% -Max Daily Loss 4% -All trades with SL -NO trades during and after high impact news -Able to use it on Funded Accounts and
I have a strategy on NQ that works on Think or Swim. I need help converting to automated system. Not a coder. Dm for details only if you have good experience in TOS

プロジェクト情報

予算
30+ USD
開発者用
27 USD