Bar Indicator to send order and close order

MQL5 Asesores Expertos

Tarea técnica

 

Requirements:

1.      Send buy order when N continuous bar is UP (N in input variable)

2.      Send Sell Order when N continuous bar is DOWN (N is input variable)

3.      Above check will only happen when bar change to new BAR . ie if Time frame is H1 (in input variable)  and  N =5 then code need to check “H1[2],H1[1] AND if both bar are going up then buy order same if both bar is down then SELL ORDER

4.      While sending order take 1% of lot size of total balance always put stop loss and take profit . apply take profit very minimal 5$ on .01 lot size -OPTION 1 SET USING FLAG

5.      Further to check if order need to close in between: check below condition and close the order.

a.      If first 5 Bar (H1)is UP then apply Buy order but once 3(Dynamic) continuous (H1 Or 30M dynamic timeframe global variable) order is down then close the order.

b.      Same wat if first 5 ber is down then apply sell order but once 3 (Dynamic) continuous (H1 Or 30M dynamic timeframe global variable) order is up then close the order.

 

 

 

need input variable to choose dynamic time stamp for send order.

input variable for number of bar to check continuous bar up or down

need input variable to choose dynamic time stamp for check close order.

input variables for number of bar check continuous bar up or down to close order

 

function to check if bar is complete bar ( this should be called based on flag so if needed then apply else don’t apply

A screenshot of a graph

Description automatically generated


Archivos adjuntos:

Han respondido

1
Desarrollador 1
Evaluación
(253)
Proyectos
316
29%
Arbitraje
34
26% / 65%
Caducado
10
3%
Libre
2
Desarrollador 2
Evaluación
(16)
Proyectos
35
23%
Arbitraje
4
0% / 50%
Caducado
2
6%
Trabaja
3
Desarrollador 3
Evaluación
(6)
Proyectos
8
25%
Arbitraje
2
50% / 0%
Caducado
2
25%
Libre
4
Desarrollador 4
Evaluación
(77)
Proyectos
243
74%
Arbitraje
7
100% / 0%
Caducado
1
0%
Libre
Ha publicado: 1 artículo
5
Desarrollador 5
Evaluación
(163)
Proyectos
258
61%
Arbitraje
4
50% / 25%
Caducado
10
4%
Libre
6
Desarrollador 6
Evaluación
(45)
Proyectos
46
24%
Arbitraje
34
9% / 85%
Caducado
10
22%
Libre
7
Desarrollador 7
Evaluación
(37)
Proyectos
59
27%
Arbitraje
26
19% / 54%
Caducado
10
17%
Trabaja
Ha publicado: 1 ejemplo
8
Desarrollador 8
Evaluación
(618)
Proyectos
1428
59%
Arbitraje
31
81% / 0%
Caducado
10
1%
Libre
9
Desarrollador 9
Evaluación
(568)
Proyectos
641
41%
Arbitraje
25
48% / 36%
Caducado
46
7%
Trabaja
10
Desarrollador 10
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
11
Desarrollador 11
Evaluación
(72)
Proyectos
80
10%
Arbitraje
38
8% / 58%
Caducado
6
8%
Libre
12
Desarrollador 12
Evaluación
(574)
Proyectos
945
47%
Arbitraje
309
58% / 27%
Caducado
125
13%
Libre
Solicitudes similares
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
I will pay 3000+ USD (negotiable) for an EA for existing MT5 that generates a minimum of 15-20% or higher a month consistently (provide source code after final deal) Looking for a highly profitable EA Please send demo version directly subject (Buying profitable EA Budget up to $ 3000 USD), past results and optimal settings so I can test, if it performs in a strategy tester i will also need option to forward test it
EA fx 30+ USD
Hello, I need an already developed EA similar to the one trading XAUUSD, with consistent entries and good risk management. Before we proceed, I would like to verify its performance. Please provide a live or demo account login along with the investor (read-only) password so I can monitor the trading results. I am looking for stable performance, controlled drawdown, and consistent profit on gold (XAUUSD). Once I
The strategy records the highest and lowest prices within a specified duration (default 15 minutes) after the New York market opens, forming the opening range. Post-Formation Breakout: When the price breaks above or below the opening range after its formation, it may indicate the direction of the day’s price movement. Trend Confirmation: The strategy uses two EMAs (default 20-period and 50-period) as trend filters to
Tengo una estrategia basada en divergencia para el oro sobre todo en tf m1 Basado en divergencia con stoch .. confirmando la entrada con ciertos parameteos de entrada Es mejor conversarlo para dar mejor los detalles Cuando entrar, porque o todas las divergencias se debe tomar para entrar en compras o ventas He adjuntado un ejemplo La confrmacion más exacta es el cruce de esos parámetros de stoch edebajo de level de
BUY ALERT 1. Supertrend turns Bullish 2. On this candle , or during the last time Supertrend was Bearish, price was < or = MA1 3. On this candle , or during the last time Supertrend was Bearish , BBStops is Bearish 4. STEP MA1 and STEP MA 2 are both Bullish SELL ALERT 1. Supertrend turns Bearish 2. On this candle , or during the last time Supertrend was Bullish, price was
Rsi divergence 30+ USD
You need to create an EA that executes buy and sell based on the signals of an rsi divergence indicator in trading view. The indicator is not in MT5 and must be added separately. pine script availabel

Información sobre el proyecto

Presupuesto
30+ USD