EA based on 100 bars highs and lows. MQ4

MQL5 Experts

Job finished

Execution time 3 days
Feedback from customer
Friendly, professional, thorough, helpful, good communication, work completed as specified in a timely manner. recommend
Feedback from employee
Very professional and friendly customer/trader.

Specification

Available position (AP) = 100

Buy Trigger:

If (price > 100 bars highest high) and (if no trade yet this bar)

then (buy 10% of AP) and (reduce AP by 10%) 

Buy exit:

Mid100 = (100 bars highest high + 100 bars lowest low)/2

If (price < Mid100) and (if no trade yet this bar)

then (sell 20% of open position) and (increase AP by the number of units)

If price < lowest low then exit all trades 


Sell Trigger:

If (price < 100 bars lowest low) and (if no trade yet this bar)

then (sell 10% of AP) and (reduce AP by 10%) 

Sell exit:

Mid100 = (100 bars highest high + 100 bars lowest low)/2

If (price > Mid100) and (if no trade yet this bar)

then (buy 20% of open position) and (increase AP by the number of units)

If price > highest high then exit all short trades 



Example:
Already bought 20 units, so AP is now 100 - 20 = 80. When buy triggered again, order is 0.2 x 80 = 16 units. Open position is now 20 + 16 = 36.
After some time, price falls below Mid100, so sell 20% of 36, 0.2 x 36 = 7.2 units (round to the nearest whole number, ie 7 units). Open position now 36 - 7 = 29.
Then next candle the price falls below Mid100 again, so sell 0.2 x 29 = 5.8 units (round up to 6). Open position now 29 - 6 = 23.
Then next candle price > 100 bars highest high. AP = 100 - 23 = 77 units. Buy order is 0.2 x 77 = 15.4 (15) units. Open position is now 23 + 15 = 38. AP is now 100 - 38 = 62.


Include normal error correction.

For testing, number of bars, AP number and the percentage should be variables. Mid100 should be able to be changed to highest high for short trades or lowest low for long trades. 

Responded

1
Developer 1
Rating
(34)
Projects
48
21%
Arbitration
6
83% / 17%
Overdue
8
17%
Free
2
Developer 2
Rating
(42)
Projects
62
8%
Arbitration
12
58% / 42%
Overdue
1
2%
Free
3
Developer 3
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
4
Developer 4
Rating
(169)
Projects
204
30%
Arbitration
25
40% / 44%
Overdue
12
6%
Free
5
Developer 5
Rating
(343)
Projects
362
70%
Arbitration
4
100% / 0%
Overdue
0
Loaded
6
Developer 6
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
7
Developer 7
Rating
(71)
Projects
103
20%
Arbitration
6
0% / 83%
Overdue
3
3%
Free
8
Developer 8
Rating
(195)
Projects
395
28%
Arbitration
155
20% / 52%
Overdue
112
28%
Free
9
Developer 9
Rating
(116)
Projects
137
36%
Arbitration
15
13% / 67%
Overdue
9
7%
Free
10
Developer 10
Rating
(266)
Projects
540
50%
Arbitration
55
40% / 36%
Overdue
224
41%
Free
Similar orders
Hello The EA will work on particular zone choose by the user and can mark it on any TF and with some rules can open trades and mange the trade by some unique rules. the EA need to check the difference by RSI as well and with some extra rules . developer should have good attitude and good communication (englsih) with high performence and knowledge with coding EA
I am looking forward to automate my trading strategy where I use renko bars on Tradingview. I really want to use unirenkos too, but unfortunately I couldn't figure out how to use ninjatrader on my MacBook and Tradingview does not offer unirenkos. As far as I see from your offered services you are very familiar with ninjatrader. I wanted to ask you if you could code me an Indicator for unirenkos for Tradingview so I
I am looking forward to automate my trading strategy where I use renko bars on Tradingview. I really want to use unirenkos too, but unfortunately I couldn't figure out how to use ninjatrader on my MacBook and Tradingview does not offer unirenkos. As far as I see from your offered services you are very familiar with ninjatrader. I wanted to ask you if you could code me an Indicator for unirenkos for Tradingview so I
Hello The EA will work on particular zone choose by the user and can mark it on any TF and with some rules can open trades and mange the trade by some unique rules. the EA need to check the difference by RSI as well and with some extra rules . developer should have good attitude and good communication (englsih) with high performence and knowledge with coding EA
Hello, I want to create an EA that can be able to take and optimise trade bids using the trend tracker concept I have developed. The tracker will monitor 2 lines to determine the trend of the market and afterwards take bids towards the correct direction. It will also be able to use a distance between the bids for the direction of the trend and plan a reverse bid when the price of the extreme doesn’t change again. The
Gradient boosting and L2 100 - 200 USD
I am looking for a well experienced programmer to put/implement a gradient boosting algorithm and an L2 to reduce overfitting in my ea which l already have which uses indicators . If you are experienced please adhere
Hello, I'm looking for a developer for repair calendar in EA MT4/MT5 (News Filter - https://ec.forexprostools.com ) for all windows servers. Note: EA MT4/MT5 works with calendar on PC Win 10, 11 but not on all windows servers. I have the source code and will post within the comments section for review. If you are able to do this and quality. Please apply. Thanks
Create mt4 ea 50+ USD
To convert the provided MT4 indicator script into an Expert Advisor (EA) and implement prompt functionality for user input, we need to modify the code to handle external parameters and provide a user-friendly interface. Below is the EA code that incorporates prompts for user inputs
SCALP MARTINCALE SPY TIMEFRAME 1MIN CANDLE - SHORT SIDE ONLY 1-SET RISK : A IS A VARIABLE (HOW MUCH $) 2-SET ATR(3) : SET THE TIME AT WHICH THE ATR SHOULD BE TAKEN, IF SET 933AM THEN THE ATR OF THE 1MIN CANDLE AT 933AM CANDLE WILL BE USED (ROUND AT 0.25 UP OR DOWN) *USE NEW YORK TIME 3-SET MAX NUMBER OF ENTRY : B IS A VARIABLE 4-SET RSI(14) / C IS A VARIABLE, IF RSI(14) > C = ORDERS OPEN 5-IF RSI(14) > C IS TRIGGERED
I WRITE a code i want to conect this for automatic trading through vps .and als advanced features for this code .i attached afile please watch .and give me perfect ea

Project information

Budget
30+ USD
For the developer
27 USD
Deadline
to 1 day(s)