A Script based on High, Low and Close manual input prices

MQL5 전문가 스크립트

작업 종료됨

실행 시간 1 일

명시

I want to contract the development of a script, where

I wanna manually insert the following parameters (I predict for the candle (0))

And after set a hot-key to run the script:



Definitions

 

H = (High) =          input

L = (Low) =           input

C = (Close) =         input

decimals = 3         (input)

tolerance = 0.001    (input)

toleranceTP = 0.0005 (input)

ForceBull = 2        (input)

ForceBear = -1       (input)

LotSize = 0.10       (input)


 

Script Start()

 

if (Open[0]) < (Close[0])    

AND (ForceBar > ForceBull)

AND (Open[0] < HMin)

1.: OpenBuy (1 per candle), TP[TPH]

AND (Close[0] > LMax)

2.: OpenBuy Limit [LMax], TP[C]

AND (Open[0] > LMax)

3.: OpenSell Limit [HMin], TP[TPL]

 

 

if ((Open[0]) > (Close[0]))

AND (ForceBar < ForceBear)

AND (Open[0] > LMax) 

1:. OpenSell (1 per candle), TP[TPL]

AND ((Open[0] < HMin) OR (Close[0] < HMin))

2:. OpenSell Limit [HMin], TP[C]

AND ((Open[0] < HMin) OR (Open[0] > LMax))

3:. OpenBuy Limit [LMax], TP[TPH]



Where: 

HMax = NormalizeDouble(H , decimals) + tolerance; 

HMin = NormalizeDouble(H , decimals) - tolerance; 

LMax = NormalizeDouble(L , decimals) + tolerance; 

LMin = NormalizeDouble(L , decimals) - tolerance; 



TPH = HMin - toleranceTP

TPL = LMax + toleranceTP


ForceBar = iForce(NULL, PERIOD_CURRENT, 1, MODE_EMA, PRICE_CLOSE, 0)


응답함

1
개발자 1
등급
(618)
프로젝트
1428
59%
중재
31
81% / 0%
기한 초과
10
1%
무료
2
개발자 2
등급
(132)
프로젝트
178
39%
중재
4
25% / 50%
기한 초과
14
8%
무료
3
개발자 3
등급
(38)
프로젝트
50
10%
중재
1
0% / 0%
기한 초과
8
16%
무료
4
개발자 4
등급
(15)
프로젝트
23
9%
중재
7
29% / 57%
기한 초과
2
9%
무료
5
개발자 5
등급
(568)
프로젝트
641
41%
중재
25
48% / 36%
기한 초과
46
7%
작업중
6
개발자 6
등급
(33)
프로젝트
35
40%
중재
11
9% / 91%
기한 초과
4
11%
무료
게재됨: 4 코드
7
개발자 7
등급
(69)
프로젝트
146
34%
중재
13
8% / 62%
기한 초과
26
18%
무료
게재됨: 6 코드

프로젝트 정보

예산
30 - 40 USD
기한
에서 1  2 일