Expert Advisor based on Price Action with Risk Management features

MQL5 전문가 C++ Forex Stocks

작업 종료됨

실행 시간 3 일

명시

The idea for this trading system is as follows:

This is and "always in the market" type of system. Meaning that there is always an opened trade. Hence, market entries are performed whenever a new bar is created and there are no current opened trades.

The direction of the trade will depend on the previous bar direction and trades are closed whenever a bar closes in the opposite direction.

Trends, therefore, are determined by the previous bar direction and they continue until there is a new bar that closes in the opposite direction.

Trading Signals

Trading Signal:

For the 1st Trade or if the trend changes direction, the last bar direction is the signal.

If the previous bar was a green candle (closed upwards), it is a buy signal.

If it was a red candle (closed downwards), it is a sell signal. If it was an open=close, no new trade is performed.

Exits

The exits are performed if the candle changes color/direction relatively to the previous bar. Or if SL/TP are hit if they are activated- they should be optional inputs.

Lot sizing

Volume can be determined as: Fixed lots, from inputs. Or, as a risked percentage of the current balance.

How to measure risk

Lot Sizing Risk is based on the previous bar as follows:

For Buy orders: Risk = Open(current bar) - Low( previous bar)

For Sell Orders: Risk = High (previous bar) -Open (current bar)

Corner Cases:

For Buy signal: When Open (current bar) is lower than Low (previous bar), Risk = High (previous bar) - Low (previous bar)

For Sell signal: When Open (current bar) is higher than High (previous bar), Risk = High (previous bar) - Low (previous bar)

Therefore, having calculated the "risk" value, lot size shoud be calculated as:

lot = (risked% * current balance)/ Risk

The "Risked %" should be defined on the inputs if "Fixed lot" is false. Example:

Fixed Lots = False

Fixed Lot Size = 0.01

Risk = 0.01 (for 1% risk.)

Regarding SL and TP

SL, if activated from the inputs, should be set depending on the order type:

For Buy Orders: At the previous bar low - Current Spread.

For Sell Orders: At the previous bar High + Current Spread.

Corner cases:

For Buy signal: When Open (current bar) is lower than Low (previous bar), SL should be set on SL = Current Ask Price - (High (previous bar) - Low (previous bar)) - Current Spread.

For Sell signal: When Open (current bar) is higher than High (previous bar), SL = Current Bid Price + (High (previous bar) - Low (previous bar)) + Current Spread.

As For the Take Profit:

The Take Profit should be enabled or disabled from the inputs. And in case it is enabled, it should be set as a "double" multiple of the "Risk" called RR (as for Risk Reward) according to the previous detailed formula for risk.

Example: TP = true RR = 2 Which in this case, it would be 2 * Risk.

Symbol Considerations:

The Risk Management calculations should consider the Balance currency and the base and quote curriencies.

For example, if the Account currency is USD, it should calculate the risk accordingly whether the FX pair is EURUSD or USDJPY.

Also, if the Account currency is EUR, it should calculate the risk properly for the pair EURUSD or BTCEUR. Other non-forex pairs: NAS100, USA.30, NQ100, SPX500, US30 . These should be calculated in USD. For example, for BTC or EUR based account. For the rest, as a default, they should be considered as in USD.

I'm open to suggestions from the developer.

응답함

1
개발자 1
등급
(65)
프로젝트
71
30%
중재
8
0% / 88%
기한 초과
5
7%
무료
2
개발자 2
등급
(361)
프로젝트
643
26%
중재
92
72% / 14%
기한 초과
12
2%
작업중
게재됨: 1 코드
3
개발자 3
등급
(208)
프로젝트
297
54%
중재
0
기한 초과
1
0%
무료
게재됨: 6 코드
4
개발자 4
등급
(618)
프로젝트
1428
59%
중재
31
81% / 0%
기한 초과
10
1%
무료
5
개발자 5
등급
(23)
프로젝트
45
20%
중재
25
28% / 48%
기한 초과
12
27%
무료
6
개발자 6
등급
(58)
프로젝트
76
33%
중재
9
78% / 11%
기한 초과
7
9%
무료
게재됨: 2 코드
7
개발자 7
등급
(270)
프로젝트
552
49%
중재
57
40% / 37%
기한 초과
228
41%
작업중
8
개발자 8
등급
(96)
프로젝트
143
76%
중재
0
기한 초과
2
1%
무료
9
개발자 9
등급
(574)
프로젝트
945
47%
중재
309
58% / 27%
기한 초과
125
13%
무료
10
개발자 10
등급
(11)
프로젝트
21
52%
중재
1
100% / 0%
기한 초과
1
5%
무료
11
개발자 11
등급
(69)
프로젝트
146
34%
중재
13
8% / 62%
기한 초과
26
18%
무료
게재됨: 6 코드
12
개발자 12
등급
(87)
프로젝트
114
26%
중재
7
29% / 57%
기한 초과
5
4%
무료
비슷한 주문
1. Project Objective We require the design, development, deployment, and go-live of a fully functional synthetic token CFD on MetaTrader 5. The instrument (JOJOUSD) must: Be visible to all clients Be fully tradable (long & short) Be priced dynamically in real time Display live charts and candles Calculate floating and closed P/L correctly in USD Behave exactly like a native MT5 CFD The solution must be implemented
Gold robot Ga1 30 - 200 USD
mport pandas as pd import numpy as np def detecter_tendance(data): # Code pour détecter la tendance pass def identifier_niveaux(data): # Code pour identifier les niveaux de support et de résistance pass def calculer_stop_loss(tendance, support, resistance): # Code pour calculer les stop loss pass def calculer_profils(tendance, support, resistance): # Code pour calculer les profils mport pandas as pd
I am seeking an experienced MQL5 developer to build a professional-grade Expert Advisor (EA) for XAUUSD. The strategy targets price action at psychological levels with a dual-unit (Banker/Runner) exit. Key Features Required: Percentage-Based Logic: All triggers, entries, SL, and TP must be calculated as a percentage of the current price Dual-Order Execution: Every entry must split into two separate tickets: Unit A
European Central Bank (ECB) Interest Rate Decision The European Central Bank left interest rates unchanged at its first policy meeting of 2026, in line with expectations. source: https://www.mql5.com/en/economic-calendar/european-union/ecb-interest-rate-decision '407332776' : added order #481999464 sell 0.01 BTCUSDm at market
I am looking for a professional developer to build a custom trading analysis software for me. This tool is NOT an automated trading bot (EA); it is an analysis dashboard to help me identify high-probability setups based on my strategy. Key Requirements: Multi-Timeframe Analysis: The software should scan 4 different timeframes (M15, M30, H1, H4, D1, WK1, MTH1) and alert me when my conditions are met. Indicator
Core Requirements: Two selectable timeframes - dropdown inputs to choose from M1, M5, M15, H1, H4, D1, W1, MN1 Timeframe 1 = Chart's own timeframe (if chart is M5, TF1 should be M5) Timeframe 2 = Higher timeframe for confluence All Ichimoku components displayed for both timeframes: Tenkan-sen Kijun-sen Senkou Span A Senkou Span B Chikou Span Cloud (bullish and bearish) Technical Settings: All buffers accessible for
Hello everyone, I am looking for a highly experienced MQL5 developer to build a fully automated Expert Advisor (EA) based strictly on Smart Money Concepts (SMC) 🔍 Core Strategy Requirements (SMC Only) The EA must be based on Advanced Smart Money Concepts , including: ✅ Market Structure (BOS & CHOCH) ✅ Liquidity concepts (equal highs/lows, stop hunts)✅ Trap Blocks / Fake Order Blocks detection ✅ Valid Order
I need a AI signal generating bot for forex trading that use the latest ai technology to track real time forex market, analyse and give signals. The bot should operate such that when i put it in a chart it will analyse the market, after several minutes it will display whether the trade is buying or selling. It should display the one minute, five minute,15minute, 30 minute, one hour, 4 hours and daily time frame
Hello I want to convert my tradingview indicators into Ninja trader can anyone help me with it it is urgent and I will like to discuss more about it to you if you can help me Kindly do well to bid on it
📌 JOB DESCRIPTION – FULLY AUTOMATED TRADING SYSTEM I am looking for an experienced developer to build a fully automated end-to-end trading system for MetaTrader 5. This is not an indicator-based bot and not a discretionary or black-box AI system. The system must follow a strict, deterministic rule-based trading framework that is already defined. 🎯 PROJECT GOAL Build a system where: A backend continuously evaluates

프로젝트 정보

예산
30 - 100 USD
기한
 10 일