Bar Indicator to send order and close order

MQL5 Uzmanlar

İş Gereklilikleri

 

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


Dosyalar:

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(253)
Projeler
316
29%
Arabuluculuk
34
26% / 65%
Süresi dolmuş
10
3%
Serbest
2
Geliştirici 2
Derecelendirme
(16)
Projeler
35
23%
Arabuluculuk
4
0% / 50%
Süresi dolmuş
2
6%
Çalışıyor
3
Geliştirici 3
Derecelendirme
(6)
Projeler
8
25%
Arabuluculuk
2
50% / 0%
Süresi dolmuş
2
25%
Serbest
4
Geliştirici 4
Derecelendirme
(77)
Projeler
243
74%
Arabuluculuk
7
100% / 0%
Süresi dolmuş
1
0%
Serbest
Yayınlandı: 1 makale
5
Geliştirici 5
Derecelendirme
(163)
Projeler
258
61%
Arabuluculuk
4
50% / 25%
Süresi dolmuş
10
4%
Serbest
6
Geliştirici 6
Derecelendirme
(45)
Projeler
46
24%
Arabuluculuk
34
9% / 85%
Süresi dolmuş
10
22%
Serbest
7
Geliştirici 7
Derecelendirme
(37)
Projeler
59
27%
Arabuluculuk
26
19% / 54%
Süresi dolmuş
10
17%
Çalışıyor
Yayınlandı: 1 kod
8
Geliştirici 8
Derecelendirme
(618)
Projeler
1428
59%
Arabuluculuk
31
81% / 0%
Süresi dolmuş
10
1%
Serbest
9
Geliştirici 9
Derecelendirme
(568)
Projeler
641
41%
Arabuluculuk
25
48% / 36%
Süresi dolmuş
46
7%
Çalışıyor
10
Geliştirici 10
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
11
Geliştirici 11
Derecelendirme
(72)
Projeler
80
10%
Arabuluculuk
38
8% / 58%
Süresi dolmuş
6
8%
Serbest
12
Geliştirici 12
Derecelendirme
(574)
Projeler
945
47%
Arabuluculuk
309
58% / 27%
Süresi dolmuş
125
13%
Serbest
Benzer siparişler
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

Proje bilgisi

Bütçe
30+ USD