Identify trend with last 2 appropriate candles and execute order.

MQL5 Experts

Job finished

Execution time 22 hours

Specification

Hi. Need a bot for mt5.

My idea - use two big candles to identify the trend. If first big candle is down and the one after it is up, then trend is positive. If first big candle is up and the one after it is down - trend is negative.

I need the bot to identify trend this way and open order according with the trend it recognised.

Order should have a stop loss, take profit and optional trailing in points.

If order didnt stop because of sl, tp or trailing - bot needs to monitor next trend identification and be able to close current order and open new one.

If order hit by sl then start to monitor last 2 candles to restart the strategy.

If order hit trailing or tp, start to monitor last 2 candles to restart the strategy.

Only scan for last 2 closed candles, dont open order if candle is not closed and next one didnt start yet.

Only one open order at a time.

Only candle body is important, no shadows (candle open and close price).

Bot has to work on any chart (crypto or forex). Only on the timeframe its attached to. Also need magic number to run same bot on many charts.


How to tell the bot which candles are big? In settings:

Points for first candle (more than x amount but less than x amount)

Points for second candle (more than x amount but less than x amount)

Stop loss in points

Take profit in points

Trailing stop (enable or disable)

Trailing start in points

Trailing step in points

Magic number


How it works.

Bot is always scanning for last 2 candles. Only candle body matters, no shadows. If last 2 candles are closed in a set range then look at second candle. If that candle is down then open sell, if second candle is up then open buy. If order hit sl, tp or trailing then start looking at last 2 closed candles again. If order didnt hit sl, tp or trailing, always keep monitoring for possible trend changes.



Responded

1
Developer 1
Rating
Projects
711
33%
Arbitration
45
49% / 42%
Overdue
14
2%
Working
2
Developer 2
Rating
Projects
179
25%
Arbitration
24
17% / 75%
Overdue
16
9%
Free
3
Developer 3
Rating
Projects
2
0%
Arbitration
0
Overdue
1
50%
Working
4
Developer 4
Rating
Projects
90
29%
Arbitration
24
13% / 58%
Overdue
7
8%
Working
5
Developer 5
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
6
Developer 6
Rating
Projects
3408
68%
Arbitration
77
48% / 14%
Overdue
342
10%
Free
7
Developer 7
Rating
Projects
720
34%
Arbitration
35
71% / 9%
Overdue
22
3%
Free
8
Developer 8
Rating
Projects
174
44%
Arbitration
3
100% / 0%
Overdue
5
3%
Free
9
Developer 9
Rating
Projects
93
31%
Arbitration
9
22% / 56%
Overdue
5
5%
Working
10
Developer 10
Rating
(1)
Projects
2939
63%
Arbitration
124
44% / 26%
Overdue
429
15%
Working
11
Developer 11
Rating
Projects
34
53%
Arbitration
1
100% / 0%
Overdue
1
3%
Free
12
Developer 12
Rating
Projects
565
35%
Arbitration
81
31% / 44%
Overdue
204
36%
Free
13
Developer 13
Rating
Projects
12
0%
Arbitration
3
33% / 33%
Overdue
1
8%
Free
14
Developer 14
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
15
Developer 15
Rating
Projects
31
13%
Arbitration
13
0% / 77%
Overdue
9
29%
Free
16
Developer 16
Rating
Projects
377
72%
Arbitration
19
32% / 47%
Overdue
15
4%
Working
17
Developer 17
Rating
Projects
6
0%
Arbitration
4
25% / 75%
Overdue
2
33%
Free
18
Developer 18
Rating
Projects
7
29%
Arbitration
1
100% / 0%
Overdue
2
29%
Working
19
Developer 19
Rating
Projects
806
49%
Arbitration
73
19% / 52%
Overdue
140
17%
Free
20
Developer 20
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
21
Developer 21
Rating
Projects
34
35%
Arbitration
0
Overdue
2
6%
Free
22
Developer 22
Rating
Projects
289
35%
Arbitration
18
22% / 61%
Overdue
43
15%
Free
23
Developer 23
Rating
Projects
8
0%
Arbitration
2
50% / 0%
Overdue
1
13%
Working
Similar orders
I need a developer that can make my trading strategies into a working perfect EA Robot working on Mt5. Candlestick pattern confirmation through PDH, PDL, PWH, PWL, Liquidities, HTF OB
I need a trading bot specially for XAU, high profit gain. Requirements bot analyzes the market places trades closes with 2 to 3 profit per trades daily profit should be 50 to 100 dollars
We are looking for an experienced MQL5 developer to provide a stable, consistently profitable Forex Expert Advisor (EA) capable of generating 10–15% average monthly returns while maintaining the lowest possible drawdown . Our Requirements The EA must have a proven track record of consistent performance. A long-term trading history (live or verified) will be considered a significant advantage. Before final selection
I am looking for a professional MQL5/MT5 Expert Advisor developer to build a fully automated trading bot based on my custom strategy. Requirements: Strong experience in MQL5 (MetaTrader 5) Previous experience developing Forex/Gold Expert Advisors Ability to convert a trading strategy into a fully automated EA Clean, well-structured, and optimized code Good communication and willingness to provide updates during
Forex Growth 60 - 100 USD
Customer Information Name: John Smith Email: john.smith@example.com Company: ABC Trading Ltd. Platform MetaTrader 5 (MT5) Market Forex Trading Instruments EURUSD GBPUSD XAUUSD Trading Strategy The robot should trade based on a trend-following strategy: Buy: When the 50 EMA crosses above the 200 EMA and RSI is above 55. Sell: When the 50 EMA crosses below the 200 EMA and RSI is below 45. Close trades when Take Profit
Only programmers with experience with orderflow please, it's not the easiest project, I don't want to have arbitration etc. I am not expert in orderflow yet, if you have suggestion about strategy it would be very nice. Source of code required, I am searching a programmer for a longer co-operation
Please create an simple EA in mql5 based on RSI indicator with e-mail, sounds and push notification alerts, of course can't be any bugs, errors, but I think it's obvious. I am searching a programmer for longer co-operation. Thank you for your attention, Have a nice day
Hi, I am looking for an already made profitable EA. It can be an indicator but then it must be possible to make an EA from the indicator. Will need to test before payment (this can be in demo or limited time test). I will pay up to $6000. Do not apply if you want an upfront payment. I need to test for a few times first. Mostly only pips matters. I look much the risk safety, money management, risk reward, and overall
Привіт. Шукаю когось, хто б застосував мій код як бота . Я торгую індексом Aus_200 SFE (не XJO). Бот базується на MACD входу/виходу, RSI, стохастиці та vwap. Як тільки роботу приймуть, мені потрібно внести кілька коректив; однак, нічого суттєвого. Дякую
SMC Martingale Pro is an advanced MetaTrader 5 Expert Advisor designed for high-volatility markets like XAU/USD. It combines institutional Smart Money Concepts with a dynamic risk recovery system. Key Features Dual FVG Engine: Automatically identifies and renders both bullish and bearish Fair Value Gaps in real time. Multi-Timeframe Flexibility: Operates independently of the active chart timeframe to target

Project information

Budget
30+ USD