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
등급
(356)
프로젝트
632
26%
중재
89
73% / 13%
기한 초과
12
2%
무료
3
개발자 3
등급
(199)
프로젝트
287
52%
중재
0
기한 초과
1
0%
무료
4
개발자 4
등급
(558)
프로젝트
1344
59%
중재
28
82% / 0%
기한 초과
10
1%
무료
5
개발자 5
등급
(23)
프로젝트
45
20%
중재
24
29% / 46%
기한 초과
12
27%
무료
6
개발자 6
등급
(58)
프로젝트
76
33%
중재
9
78% / 11%
기한 초과
7
9%
무료
7
개발자 7
등급
(267)
프로젝트
542
50%
중재
55
40% / 36%
기한 초과
225
42%
작업중
8
개발자 8
등급
(96)
프로젝트
143
76%
중재
0
기한 초과
2
1%
무료
9
개발자 9
등급
(564)
프로젝트
933
47%
중재
302
59% / 25%
기한 초과
125
13%
로드됨
10
개발자 10
등급
(11)
프로젝트
21
52%
중재
1
100% / 0%
기한 초과
1
5%
무료
11
개발자 11
등급
(66)
프로젝트
143
34%
중재
10
10% / 60%
기한 초과
26
18%
무료
12
개발자 12
등급
(87)
프로젝트
114
26%
중재
7
29% / 57%
기한 초과
5
4%
무료
비슷한 주문
hello there I need a copy trade for mt4 can ANYONE help me with and let discuss on how to go about it kindly send me message to signify and let discuss mind you i need this urgently let connect to discuss and conclude
I want to create a robot to open and close trades for me based on my moving averages cross overs . I normally trade on my phone so i would like to set it on my phone 1st
Hello there, am in need of an expert pinescript programmer who can work on an existing code to add some indicators and features. Please bid if you understand pinescript well and can work on existing code
TIME FRAME: 15 MIN LOT SIZE: 0.01 CANDLE START TIME: 2:00 CANDLE END TIME: 2:14 ENTRY BUFFER: 1 SL BUFFER: 1 TARGET $: 10 MARTINGALE % : 200 (All the above data should be adjustable) Details: 1. We have to mention candle start time and end time (ie: 4.00 to 4.59). If the candle breaks the high of the given time it should go for buy. If it breaks the low of the given time it should go for sell. 2
We are seeking an experienced MQL4 developer to create a forecasting indicator with a prediction accuracy above 80%. The indicator must be capable of learning from historical market data starting from the year 2000 to the present. Additionally, it should offer an option to analyze and learn from all available candlesticks on the current timeframe, allowing it to adapt to real-time market conditions. Key Requirements
I need help with creating a website traders chatroom, it must show traders online,offline,inactive. the chatroom top section must show four clocks with different times and time scale like this.. the chatroom must have a history data of up to 10days, then longer history must be deleted automatically. if you have better chatroom please say your recommendations
I am looking for an experienced MQL5 developer to help me finalize and optimize an Expert Advisor (EA) for the FTMO challenge. I have already built a significant portion of the code, but it requires further refinement and optimization to ensure it functions according to the trading strategy I intend to use. I am happy to share all the resources, including the current code, reference materials, and detailed
dreams good and have a great Cash out from your smart phone , tuyoywuiy glamorous flood see full idk idk slow so dolls stupid sis workouts who's spark koalas oral waits also doggo idk
BUY AND SELL 30+ USD
Create an Expert Advisor that collaborates between these indicators ETR, MEv2 and STLv3 with these features 1. SL and TP 2. TIME FILTER 3. ETR, MEv2 and STLv3 PARAMETERS BUY ENTRY STEP 1. FIRST candle OPEN above Symphonie Trend Line STEP 2. Check Symphonie Extreme must indicate color BLUE STEP 3. Check Symphonie Emotion must indicate color BLUE STEP 4. Open trade with money management STEP 5. Trade open MUST BE 1
Excellent trade 30 - 40 USD
I need a developer that will modify an EA that is made using 4 indicators, example, volume, average true range,RSI and MFI, this EA is user input and input adjustable, any programmer that can do this job should Apply and lets proceed

프로젝트 정보

예산
30 - 100 USD
개발자에게
27 - 90 USD
기한
 10 일