Needed: Create A Simple Expert Advisor That Determines Trades Based Off A Horizontal Line

MQL4 Experts Custom graphics

Job finished

Execution time 5 hours
Feedback from customer
My EA runs flawless. When I had questions on how to work the EA in certain instances, Hossein had immediate solutions. He promised support after he had been paid, and he has kept his word.

Specification

The Trading Program starts with a horizontal line that is manually placed at any desired price level by the user. While the user is placing the horizontal line where he wants, the program should not be allowed to actively trade yet. I would like  a button on the chart that when pressed, allows the EA to start watching for potential trades. The button should visually change, by text and color, whether active trading is turned ON or OFF.


Here is how the EA should place trades, once the horizontal line has been set, and the "active trading" button pressed:

1) For a Long Position: If price closes (on time frame x), within x pips above the horizontal line, the EA will enter a long position. A stoploss will immediately be placed x pips below the horizontal line and a take profit x pips above the horizontal line.


2) For a Short Position: Just the opposite of the long position. If price closes (on time frame x), within x pips below the horizontal line, the EA will enter a short position. A stoploss will immediately be placed x pips above the horizontal line and a take profit x pips below the horizontal line.


I want the option of adding a simple moving average as a filter (or to not have it used - turned on or off in the inputs). For example, if the price closes above the horizontal trend line, within the allowable x pips distance above the line, then the EA checks to make sure that the current price is not too far from moving average x. If price has moved too far from the moving average at the time it closes above the horizontal line, then a trade is not entered. The Max distance allowed from moving average will be one of the inputs.


If a long position is entered, and then any future candle closes below the horizontal trend line, but not far enough to get stopped out, then the EA closes the long position and enters a short position (as long as it's within the allowable distance of pips below the horizontal line (and near enough to the moving average - if this filter is turned on). If any future candle closes above the line and meets all the criteria, then the short position is closed and a long position entered. Of course, each of these trades would have their corresponding SL and TP automatically placed and deleted as positions are taken and reversed.  Also, I would like to be able to have the option (in inputs) to have EITHER the same position size for each successive trade OR for each successive trade to increase in position size by x amount, up to a limit. If position size exceeds margin, then no trade is to be entered. 

If (in inputs) the option of increasing trade size for each trade reversal is selected, and a position then hits the TP level, position size should reset to original beginning position size.


If price moves too far, too fast, and closes beyond the allowable distance above (or below) the horizontal line, then no trade is entered until a later candle closes within the allowable distance from the horizontal line. In other words, the price must reverse and close closer to the line for a trade to be entered.


I want the option (in inputs) for the stop loss to turn into a trailing stop loss after a trade is in the profit x pips


I want to be able to manually move the stop loss and take profit lines if needed. If the stop loss is a trailing stop loss, but then is moved manually, the EA should automatically turn off the trailing stop loss feature in "inputs" (so it doesn't try to correct the manual change). A manual change in the TP should not be changed back to the initial value set in "inputs".


I would like to be able to have the EA run only at specified times of the day (entered in inputs). I would like the times to correlate to the time on my computer, rather than the time on my chart.


I'd like to be able to customize the horizontal line color and thickness


In case of loss of connection to server happens, EA should continue active trading when reconnected. It would be nice if the EA could send my phone a text when there is a loss of connection. 


EA should completely ignore all other positions that it did not open and not interfere with other EA's.


I will want source code of final product


I need a programmer that will offer technical support if I want to make small changes, within weeks or months of final product. How much would small improvements cost? How long would I need to wait for technical support?


If done well, I have another robot that needs building. Please tell me why I should pick you. What sets you apart from the competition?


Inputs (Here are some of the inputs the EA will require)

Trading time frame: M1, M5, M15, M30, H1, H4, D1

Horizontal Line Properties: color, thickness

Allowable distance from horizontal line to enter trade: x pips

Take profit long position: x pips above horizontal line

Take profit short position: x pips below horizontal line

Stop loss long position: x pips below the horizontal line

Stop loss short position: x pips above the horizontal line

Ability for trailing stoploss: on or off

if on: trail stoploss by x pips away

Moving Average: on or off

if on: x periods

Max distance from moving average for EA to enter trade: x pips

Number of consecutive losing trades: on or off

if on: x number of losers before EA stops trading (button on chart will show that trading has stopped if this number is reached)

Constant lot size: Yes or No

If Yes: x lot size

Increase lot size after a loss: Yes or No

                                 If Yes: Starting Position size: x lot size

                                           Position size increase after each trade reversal loser: x amount

Days and times EA can trade:

Sunday: 0-23:59

Monday: 0-23:59 

Tuesday: 0-23:59

Wednesday: 0-23:59

Thursday: 0-23:59

Friday: 0-23:59


Responded

1
Developer 1
Rating
(1853)
Projects
3455
88%
Arbitration
73
40% / 15%
Overdue
265
8%
Free
2
Developer 2
Rating
(878)
Projects
1391
67%
Arbitration
117
32% / 42%
Overdue
215
15%
Working
3
Developer 3
Rating
(365)
Projects
412
36%
Arbitration
35
26% / 57%
Overdue
63
15%
Free
4
Developer 4
Rating
(58)
Projects
89
38%
Arbitration
26
4% / 77%
Overdue
39
44%
Working
5
Developer 5
Rating
(461)
Projects
902
77%
Arbitration
25
16% / 68%
Overdue
100
11%
Free
6
Developer 6
Rating
(28)
Projects
60
42%
Arbitration
1
0% / 100%
Overdue
5
8%
Free
7
Developer 7
Rating
(94)
Projects
148
59%
Arbitration
16
38% / 13%
Overdue
25
17%
Free
8
Developer 8
Rating
(105)
Projects
135
42%
Arbitration
19
16% / 53%
Overdue
20
15%
Loaded
9
Developer 9
Rating
(590)
Projects
789
71%
Arbitration
9
33% / 33%
Overdue
22
3%
Free
10
Developer 10
Rating
(90)
Projects
118
17%
Arbitration
44
23% / 39%
Overdue
20
17%
Free
11
Developer 11
Rating
(65)
Projects
87
39%
Arbitration
3
0% / 33%
Overdue
29
33%
Free
12
Developer 12
Rating
(119)
Projects
127
41%
Arbitration
3
33% / 67%
Overdue
0
Free
13
Developer 13
Rating
(73)
Projects
132
52%
Arbitration
9
44% / 33%
Overdue
64
48%
Free
14
Developer 14
Rating
(212)
Projects
246
45%
Arbitration
42
10% / 57%
Overdue
5
2%
Free
15
Developer 15
Rating
(4)
Projects
6
0%
Arbitration
2
0% / 50%
Overdue
4
67%
Free
16
Developer 16
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
17
Developer 17
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
18
Developer 18
Rating
(2422)
Projects
3042
66%
Arbitration
77
48% / 14%
Overdue
340
11%
Working
19
Developer 19
Rating
(48)
Projects
80
28%
Arbitration
8
75% / 13%
Overdue
41
51%
Free
20
Developer 20
Rating
(33)
Projects
35
40%
Arbitration
11
9% / 91%
Overdue
4
11%
Free
21
Developer 21
Rating
(66)
Projects
143
34%
Arbitration
10
10% / 60%
Overdue
26
18%
Free
22
Developer 22
Rating
(49)
Projects
134
27%
Arbitration
62
13% / 53%
Overdue
58
43%
Free
23
Developer 23
Rating
(5)
Projects
4
25%
Arbitration
2
0% / 100%
Overdue
1
25%
Free
24
Developer 24
Rating
(219)
Projects
370
42%
Arbitration
145
17% / 41%
Overdue
124
34%
Free
25
Developer 25
Rating
(1)
Projects
1
0%
Arbitration
1
0% / 100%
Overdue
0
Free
Similar orders
I want a program that will help calculate and enter the market on full margin for me. I just need to put in the price for entry, Stop loss and TP then it will calculate the lot sizes for entering the trade on full margin on Mt5
are you aware of the Monday Range Strategy? https://www.youtube.com/watch?v=7B_yBBFx6z8 5pm EST time sunday - monday 5pm est and it has to be on the H1 chart , minimum 1:2 Risk to reward and break even function after 1:1
Starting from scratch, I need a solution to develop my own crypto trading and exchange platform. This platform should compare prices across various exchanges like Coinbase, Binance, KuCoin, and Unocoin, as well as different cryptocurrencies. The solution must identify opportunities to buy on one platform and sell on another for a profit, transferring funds to my personal wallet instantly for security. The bot should
looking for help to get my ibkr automated, i have strategies already built in composer and have JSON for them, i really just need to he setup and explanation on how to maintain it and add new strategies
I am looking for someone who has experience working with the ZigZag indicator. I want to create a multi timeframe dashboard scanner based on ZigZag. I will explain more in private messages. if you feel capable & interest with that,please pm me for more details. thanks
Specify your Requirements Specification here point by point. Try to describe your requirements briefly and clearly, so that your potential developer is able to correctly assess its complexity and cost, as well as the required execution time. A bad or too generic description will result in your order being ignored, or you will spend a lot of time negotiating the details with each applicant. Remember: It is better to
I wish an indicator that can import data from the websites below: https://www.fastbull.com/speculative-sentiment?textType=1&amp ;id=-1 https://www.fxblue.com/market-data/tools/sentiment After importing the data. I want the developer to create a simple text dashboard showing at least the major pairs in Forex with the correspondent sentiment from each website. The format of the dashboard or its visual aspects do not
Hi I need a software like Mirror trade copier ( https://www.antonnel.net/mirror/ ) which directly connect to the Accounts over api with out MT4 terminal and copies trades from mater to client. I want the same and possible improvement like can be accessed over a url and dashboard for some basic metrics (optional)
Hey, I would like an indicator based on calculation with the last price, sort of fib. The lines will auto update based on actual price. I want you to create 3x this block(of line), lines positions will be diferent as the multiplier of the 3 blocks will not be the same. I want you to create a signal based on the price that will be at the same zone(inside 2 lines) in 3 blocks at same time. check the intruction.txt
I need a AI signal generating bot for forex trading. 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 whether they are buying or selling. If it is buying the arrow should be green and if it is

Project information

Budget
50 - 150 USD
For the developer
45 - 135 USD
Deadline
to 5 day(s)