Expert Advisor based on Price Action with Risk Management features

MQL5 专家 C++ 外汇 股票

工作已完成

执行时间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
等级
(356)
项目
632
26%
仲裁
89
73% / 13%
逾期
12
2%
空闲
3
开发者 3
等级
(199)
项目
287
52%
仲裁
0
逾期
1
0%
空闲
4
开发者 4
等级
(542)
项目
1321
59%
仲裁
28
82% / 0%
逾期
10
1%
空闲
5
开发者 5
等级
(23)
项目
45
20%
仲裁
24
29% / 42%
逾期
12
27%
工作中
6
开发者 6
等级
(58)
项目
76
33%
仲裁
9
78% / 11%
逾期
7
9%
空闲
7
开发者 7
等级
(262)
项目
536
50%
仲裁
54
41% / 37%
逾期
224
42%
工作中
8
开发者 8
等级
(96)
项目
143
76%
仲裁
0
逾期
2
1%
空闲
9
开发者 9
等级
(559)
项目
927
48%
仲裁
301
59% / 25%
逾期
124
13%
已载入
10
开发者 10
等级
(11)
项目
21
52%
仲裁
1
100% / 0%
逾期
1
5%
空闲
11
开发者 11
等级
(66)
项目
143
34%
仲裁
11
9% / 55%
逾期
26
18%
工作中
12
开发者 12
等级
(87)
项目
114
26%
仲裁
7
29% / 57%
逾期
5
4%
空闲
相似订单
I need a simple automated Expert Advisor that can trade any of deriv indices except boom and crush or us30. Must at least be able to trade a 20$ account..i need it ASAP, referrals also welcomed
I am looking developer who can code pocket option data and insert in to costume candle Heikin in trading view. I want to trade otc as such its up to developer to get pocket option data stream and then make costume candle Heikin inside of trading view. Their will be a drop down menu in setting that will use to pick the otc pair. Developer must have way to chat on mobile app also. We will use
I need an EA in based of this indicator. It have buffers. The owner told me it..., So I need an expert who can do this I will attached the file right now
HI, I'm looking for an experienced person who can add buy/sell indications and Alerts on existing Pinescript along with little modification of the script and the script should connect to MT5 platform using pineconnector MT5 platform should excute trade instantly as based on the alerts/indications on tradingview script
HI, I'm looking for an experienced person who can add buy/sell indications/Alerts on existing Pinescript code along with little modification of the script and the script should connect to MT5 platform using pineconnector MT5 platform should execute trade instantly as based on the alerts/indications on tradingview script
EA 30 - 75 USD
I would like my robot to open up to 2000 trades. It should be 90-97% accurate at all times. It should trade currency pairs, Indexes and Gold. It must analyze the chart automatically and it must be easy to be set up. It must not lose any money. Profitable all the way. I would like someone who is highly experienced to do the job. NB!! MOBILE ROBOT. It must have automated TP and SL. all trades should be trigger anytime
I want the trade to trigger anytime it sees the opportunity on all time frames, sl tp should be automated and all trades should be trigger anytime on cpi news and etc
Historical 1 min data 30 - 1000 USD
I need 1min historical canfle data based on Tradingviwe UI from Oanda broker. for gold, bitcoin, ……). Data should from tradingviwe UI and also base on OANDA. Tradingviwe only show 20000 candle but i need far further data Who can help me
I need you to convert my tradingview pinescript to mt4, I have just $10 for it now, But i am going to give you more work later on cause i still have more work i am going to need you to work on for me, and i will be paying with crypto, Thank You
Hi, Use MQL5 connect to only one binance websocket API: binance.com/stream?streams=btcusdt@aggTrade and get the returned data successfully(you no need process returned data). MUST use this MQL library to connect binnace: https://www.mql5.com/en/articles/8196 Source code need Related binance websocket document: https://binance-docs.github.io/apidocs/spot/en/#websocket-market-streams Thanks

项目信息

预算
30 - 100 USD
开发人员
27 - 90 USD
截止日期
 10 天