Open Buy when bar closes lower, Open Sell when bar closes higher

MQL4 Asesores Expertos

Trabajo finalizado

Plazo de ejecución 4 días
Comentario del Cliente
The programmer communicated very well, asked questions and worked with me to make sure he understood what I wanted; and delivered the EA in a professional, courteous and timely manner. Thank you.
Comentario del Ejecutor
A good customer who helped with the job and nicely answered my questions. Gently cooperated with the process. Happy trading buddy.

Tarea técnica

Need a simple EA to Open a Buy order at the start of a new bar if the previous bar closes down.  Open a Sell order if the previous bar closes up.


I'd like to automate a simple counter-trend EA to do the following.

1.  Open a Buy order IF the Previous bar Opens above X.XXXX (price set via input) and Previous bar closes lower.

2.  Open a Sell Order IF the Previous bar Opens below X.XXXX (Price set via input) and Previous bar closes higher.

I'll manager close orders manually.

There is only two Inputs:

Price Level: 1.10900 (example)

Lots: .20 (example)


The order would execute on the first tick of each new bar.  Multiple order could be open.   I'll only be running this on one chart, so no magic number is required for me, unless programming requires it.

Example using above Input samples.

If the previous candle opened at 1.1120 (which is above the Price Level input), and the candle closes at 1.1105 (which would be a down candle), a BUY order for .20 lots would be open.   If the candle would have closed at 1.1125 (an up candle), then no action is taken.  Only buys on down candles.

If the previous candle opened at 1.1070 (which is below the Price Level input), and the candle closes at 1.1095 (an up candle), a SELL order for .20 lots would be opened.  If the candle would have closed at 1.1060 (a down candle), no action would be taken. Only sells on up candles.


It would need to check for currently open orders and only allow trades in the same direction as any open orders.  Only buy when there are 0 orders, or there are currently open buy positions.  Same for sell orders, only sell when no open orders, or currently open sell positions.


I think that covers it clearly, but if you need clarification, please let me know.

Needs to operate on 5 decimal broker.  Open code for editing.





Han respondido

1
Desarrollador 1
Evaluación
(627)
Proyectos
989
47%
Arbitraje
33
36% / 36%
Caducado
98
10%
Trabaja
Ha publicado: 6 ejemplos
2
Desarrollador 2
Evaluación
(772)
Proyectos
1039
44%
Arbitraje
50
8% / 50%
Caducado
116
11%
Libre
3
Desarrollador 3
Evaluación
(4)
Proyectos
6
33%
Arbitraje
3
0% / 100%
Caducado
0
Libre
4
Desarrollador 4
Evaluación
(2317)
Proyectos
2916
63%
Arbitraje
124
44% / 25%
Caducado
429
15%
Trabaja
5
Desarrollador 5
Evaluación
(4)
Proyectos
5
0%
Arbitraje
2
0% / 100%
Caducado
0
Libre
6
Desarrollador 6
Evaluación
(71)
Proyectos
103
20%
Arbitraje
6
0% / 83%
Caducado
3
3%
Libre
Solicitudes similares
SMC ORDER BLOCK 30 - 60 USD
I want already build FULLY AUTOMATED order block MT5 XAUUSD HTF H4 ENTRY LTF M15 - Show result on live account. m15 ob entry in the direction of h4 ob bias the developper to provide source code in the end
I need an MT5 Expert Advisor built as a high-precision volumizer for Forex. Its core purpose is to generate controlled trading volume for rebates, while still maintaining low-risk account growth. I am not looking for aggressive profit chasing. I am looking for a stable, intelligent EA that can produce volume in a disciplined way without damaging the account. The ideal system should trade major currency pairs, avoid
1. IF price forms: - Higher highs + higher lows → TREND = BUY - Lower highs + lower lows → TREND = SELL ELSE → NO TRADE 2. IF: - Trend = BUY - Price retraces to support zone - Bullish engulfing candle forms - TDI green crosses above red (optional) THEN: - Execute BUY 3. IF: - Trend = SELL - Price retraces to resistance - Bearish engulfing forms - TDI confirms THEN: - Execute SELL 4. Risk per trade = 1% of account Lot
I need a high frequency trading robot for gold in one or 5 minute timeframe the robot should have spread filter where it should only open trades below a set spread should have news filter to allow trading during fundal news or not the robot should have input in number of minutes to close all open trades and remove pending orders before fundamental news as part of news filter. It should also have the number of minutes
Hello! I want to programm EA that uses volume profile indicator, but I am not sure if this is possible. Only experienced programmers please, I will not select a programmer who did only few jobs. Before starting I need to make sure you understand everything and that this is for sure technically possible
Hello, I am looking for a professional trading system including: 1- Trading Bot (Expert Advisor): - Good profit performance - High security and strong risk management - Works efficiently during high market volatility (news and strong movements) - Works on all pairs (Forex + Gold) 2- Signal Indicator: - Provides clear Buy and Sell signals - Includes Take Profit and Stop Loss - No repaint (signals must not change or
Hi, I’m looking for a top-tier, profit-optimized EA that has the potential to scale trading returns significantly. My goal is to maximize growth over time. Can you help develop a bespoke EA that could potentially scale to high six or seven figures
Max amount grid 30+ USD
max amount grid step for magic number do keep deleting .only when it is in negative floating .but when it is profit allow to go over the max and replays to grid step
Apply with a screen of your work . Symbol Specific Logic . Live Chart Optimization Check the Core logic . [back tests as well] Change points to pips . Create buffer for the zone

Información sobre el proyecto

Presupuesto
30+ USD
Plazo límite de ejecución
de 1 a 2 día(s)