Code not to trade before or after news on MT5 calender

MQL5 Asesores Expertos

Trabajo finalizado

Plazo de ejecución 67 días

Tarea técnica

Hi,


I have an EA that places orders for a number of pairs. I want to create a function within this EA that reads the MT5 calendar and if the news is red only( Priority high) on USA news  ( i.e high importance news, interest rates etc for the USA), then  it does not   allow trades even if a  buy/sell signal is triggered on the EA. I only need the code in mql5 so I can incorporate it on my EA.

Rough example of code:

-------input parameters----

 pause before or after news = 5mins;

--------------------------------------------------

.......................

bool  Cantrade()

. .........code

..............

return (true)---i.e  if no red news 5min before or after event

{

The new home sales example below   occurs at 17:00 so function should return false between 16:55 and 17:05 and true thereafter.


news example








Han respondido

1
Desarrollador 1
Evaluación
(358)
Proyectos
491
52%
Arbitraje
24
54% / 25%
Caducado
5
1%
Trabaja
2
Desarrollador 2
Evaluación
(3)
Proyectos
3
33%
Arbitraje
0
Caducado
0
Libre
3
Desarrollador 3
Evaluación
(135)
Proyectos
177
18%
Arbitraje
17
47% / 18%
Caducado
0
Trabaja
4
Desarrollador 4
Evaluación
(15)
Proyectos
23
9%
Arbitraje
7
29% / 57%
Caducado
2
9%
Libre
5
Desarrollador 5
Evaluación
(568)
Proyectos
641
41%
Arbitraje
22
55% / 32%
Caducado
47
7%
Trabaja
6
Desarrollador 6
Evaluación
(18)
Proyectos
26
27%
Arbitraje
0
Caducado
2
8%
Libre
7
Desarrollador 7
Evaluación
(356)
Proyectos
632
26%
Arbitraje
89
73% / 13%
Caducado
12
2%
Libre
8
Desarrollador 8
Evaluación
(11)
Proyectos
16
31%
Arbitraje
5
40% / 40%
Caducado
4
25%
Libre
9
Desarrollador 9
Evaluación
(72)
Proyectos
80
10%
Arbitraje
36
8% / 53%
Caducado
6
8%
Trabaja
Solicitudes similares
* Advanced level dev only, NDA required * Hi, I have a multi timeframe, multiindicator expert that requires additional features added to it. First started development 5 years ago. Upgrading with new features. To be added Entry - Add Stochastic and CCI options for trade entry to be added to existing signal options. Add config options to existing menu Bulk Exit - Master switch for close all trades based on basket
I am developing a master EA that integrates several sub-EAs. The project is complex, and the documentation is thoroughly structured, spanning 50 pages with detailed step-by-step procedures. 1st sub-EA: This EA opens trades without using indicators. Instead, it opens a new trade based on the color or status of the last candle. For instance, if the last candle was green, a new buy trade is opened. 2nd sub-EA: This EA
Good Day I would like to order a trading robot. Pairs: XAUUSD (GOLD) EUR/USD USD/JPY The robot should be trading daily with TP/SL build in, would like to have trailing and stop loss, should execute up to 5 trades (preffarable setting choice) up to 10 trades Los sizes to be choise setting, must also trade major US vews events Like:US- PPI, CPI, NFP, Sales m/m and so on Must also show/display alert when opening
Hello Guys, I need a trading bot for the MT5 to place order based on my trading strategy which is based on - >> entry based on EMA with rejection from specific levels like support and resistance area - levels and time frame i will apply into the robot manually on daily basis. also need - trailing stoploss , shift to breakeven after gaining some points. need a highly expert developer
Trade Manger EA 30+ USD
Hello Programmer! I am looking to build an EA that will place my trade and manage it. Once i have manually found my setup, I will want an EA to open the trade, set the R:R and manage it according to my specifications. please take a look at the attached to get an Idea of what I would like. I will require the source code once completed
Hello there i need someone who will create a robot that will calculate the movement between buy/sell and show where to take profit the robot should work with all currency and indices including stock
EA to send account history to web request. It should send every 5 mins or when there is an update. It then sends the json to a web request where gain, drawdown, balance, equity will be displayed
I have a full strategy based on indicator and candle based on . i would like to make it into a robot which will trade for me on a specific time and specific rules. i need a person who can do this project for me. If you have done this type of job . you are most welcome for this. Apply only if you know binary trading option and binomo trading platform well and how it works
Preciso de um EA, que faça o fecho automático de operações abertas no final da sessão e nas notícias de alto impacto. Um EA simples com apenas 1 função. Fecho das operações abertas
Enter buy trade at close of candle when bar closes above the 3 emas. Emas are 34 ema, 64 ema and 128 ema. For a buy trade the 34 ema must be above the other two emas. The 64 ema should be in the middle. The 128 ema should be below the other two emas. For a buy trade the Awesome Oscillator should be above the middle line and colored green. Exit a buy trade when price touches 64 ema. Sell trade same conditions as buy

Información sobre el proyecto

Presupuesto
30+ USD
Para el ejecutor
27 USD
Plazo límite de ejecución
de 3 a 10 día(s)