Bar Indicator to send order and close order

MQL5 Experts

Specification

 

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


Files:

Responded

1
Developer 1
Rating
(253)
Projects
316
29%
Arbitration
34
26% / 65%
Overdue
10
3%
Free
2
Developer 2
Rating
(16)
Projects
35
23%
Arbitration
4
0% / 50%
Overdue
2
6%
Working
3
Developer 3
Rating
(6)
Projects
8
25%
Arbitration
2
50% / 0%
Overdue
2
25%
Free
4
Developer 4
Rating
(77)
Projects
243
74%
Arbitration
7
100% / 0%
Overdue
1
0%
Free
Published: 1 article
5
Developer 5
Rating
(163)
Projects
258
61%
Arbitration
4
50% / 25%
Overdue
10
4%
Free
6
Developer 6
Rating
(45)
Projects
46
24%
Arbitration
34
9% / 85%
Overdue
10
22%
Free
7
Developer 7
Rating
(37)
Projects
59
27%
Arbitration
26
19% / 54%
Overdue
10
17%
Working
Published: 1 code
8
Developer 8
Rating
(618)
Projects
1428
59%
Arbitration
31
81% / 0%
Overdue
10
1%
Free
9
Developer 9
Rating
(568)
Projects
641
41%
Arbitration
25
48% / 36%
Overdue
46
7%
Working
10
Developer 10
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
11
Developer 11
Rating
(72)
Projects
80
10%
Arbitration
38
8% / 58%
Overdue
6
8%
Free
12
Developer 12
Rating
(574)
Projects
945
47%
Arbitration
309
58% / 27%
Overdue
125
13%
Free
Similar orders
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
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

Project information

Budget
30+ USD