Send pending order based on opening price of the day

MQL5 스크립트

작업 종료됨

실행 시간 3 일

명시

I need a script to automate something i do everyday:

A.     The trading strategy is based on the opening price:

B.     Each morning i’ll decide either to sell or buy ( i control this in excel)


 

the input  should be like this:

symbol:

 

type:

buy limit;sell limit

volume

1 or more

delta

chosen by me

price

open price +- delta

 

C.     Its just one order and it must be activated at the moment there is an opening price.

Example market opens at 65.100

 

symbol:

 Winz16

type:

Sell limit

volume

3

delta

50

price

65.150

 

symbol:

 Winz16

type:

Buy limit

volume

1

delta

80

price

65.420

 

buy: open - delta

sell: open + delta  

is it possible to send the order before the market opens? i mean, does mt5 accept an order before market  opens? is it possible to program this?

응답함

1
개발자 1
등급
(885)
프로젝트
1410
67%
중재
123
32% / 41%
기한 초과
218
15%
무료
게재됨: 1 코드
2
개발자 2
등급
(76)
프로젝트
136
45%
중재
11
27% / 64%
기한 초과
26
19%
무료
게재됨: 5 코드

프로젝트 정보

예산
10 - 25 USD
기한
에서 1  4 일