Simple script to use horizontal lines as triggers for buying and selling

MQL5 Experts Scripts

Specification

I'm looking for someone to develop a very simple script that meets the following criteria:

I want to have two horizontal lines plotted on the chart (one for buying and one for selling).

1) These lines need to be adjustable, meaning I should be able to move them on the chart according to my preference and at any time.

2) When the price touches the buy line, immediately after the touch, an alarm will sound, and it will place a market order to buy "X" contracts 30 points above the region where the line was touched. In other words, the price will touch the line, and it will automatically open a buy order 30 points above to capture the market rebound. If the order is executed, it will also set a stop loss of 300 points.

3) The same applies to the sell line. If the market is going up and touches the sell line, an alarm will sound, and I want it to place an order to sell "X" contracts 30 points below the line as soon as it is touched, with a stop loss of 300 points.

That's basically it. A very simple script for someone who is proficient in the programming language.

Responded

1
Developer 1
Rating
(10)
Projects
11
36%
Arbitration
0
Overdue
1
9%
Free
2
Developer 2
Rating
(361)
Projects
643
26%
Arbitration
92
72% / 14%
Overdue
12
2%
Working
Published: 1 code
3
Developer 3
Rating
(11)
Projects
17
59%
Arbitration
2
0% / 100%
Overdue
2
12%
Free
4
Developer 4
Rating
(23)
Projects
29
14%
Arbitration
3
0% / 67%
Overdue
3
10%
Working

Project information

Budget
30+ USD
Deadline
from 1 to 10 day(s)