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

MQL5 전문가 스크립트

명시

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.

응답함

1
개발자 1
등급
(10)
프로젝트
11
36%
중재
0
기한 초과
1
9%
무료
2
개발자 2
등급
(361)
프로젝트
643
26%
중재
92
72% / 14%
기한 초과
12
2%
작업중
게재됨: 1 코드
3
개발자 3
등급
(11)
프로젝트
17
59%
중재
2
0% / 100%
기한 초과
2
12%
무료
4
개발자 4
등급
(23)
프로젝트
29
14%
중재
3
0% / 67%
기한 초과
3
10%
작업중

프로젝트 정보

예산
30+ USD
기한
에서 1  10 일