Bar Indicator to send order and close order

MQL5 Эксперты

Техническое задание

 

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


Файлы:

Откликнулись

1
Разработчик 1
Оценка
(253)
Проекты
316
29%
Арбитраж
34
26% / 65%
Просрочено
10
3%
Свободен
2
Разработчик 2
Оценка
(16)
Проекты
35
23%
Арбитраж
4
0% / 50%
Просрочено
2
6%
Работает
3
Разработчик 3
Оценка
(6)
Проекты
8
25%
Арбитраж
2
50% / 0%
Просрочено
2
25%
Свободен
4
Разработчик 4
Оценка
(77)
Проекты
243
74%
Арбитраж
7
100% / 0%
Просрочено
1
0%
Свободен
Опубликовал: 1 статью
5
Разработчик 5
Оценка
(163)
Проекты
258
61%
Арбитраж
4
50% / 25%
Просрочено
10
4%
Свободен
6
Разработчик 6
Оценка
(45)
Проекты
46
24%
Арбитраж
34
9% / 85%
Просрочено
10
22%
Свободен
7
Разработчик 7
Оценка
(37)
Проекты
59
27%
Арбитраж
26
19% / 54%
Просрочено
10
17%
Работает
Опубликовал: 1 пример
8
Разработчик 8
Оценка
(618)
Проекты
1428
59%
Арбитраж
31
81% / 0%
Просрочено
10
1%
Свободен
9
Разработчик 9
Оценка
(568)
Проекты
641
41%
Арбитраж
25
48% / 36%
Просрочено
46
7%
Работает
10
Разработчик 10
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
11
Разработчик 11
Оценка
(72)
Проекты
80
10%
Арбитраж
38
8% / 58%
Просрочено
6
8%
Свободен
12
Разработчик 12
Оценка
(574)
Проекты
945
47%
Арбитраж
309
58% / 27%
Просрочено
125
13%
Свободен
Похожие заказы
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

Информация о проекте

Бюджет
30+ USD