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

MQL5 Experts Scripts

Job finished

Execution time 1 day

Specification

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)


Responded

1
Developer 1
Rating
(617)
Projects
1427
59%
Arbitration
31
81% / 0%
Overdue
10
1%
Free
2
Developer 2
Rating
(132)
Projects
178
39%
Arbitration
4
25% / 50%
Overdue
14
8%
Free
3
Developer 3
Rating
(38)
Projects
50
10%
Arbitration
1
0% / 0%
Overdue
8
16%
Free
4
Developer 4
Rating
(15)
Projects
23
9%
Arbitration
7
29% / 57%
Overdue
2
9%
Free
5
Developer 5
Rating
(568)
Projects
641
41%
Arbitration
25
48% / 36%
Overdue
46
7%
Working
6
Developer 6
Rating
(33)
Projects
35
40%
Arbitration
11
9% / 91%
Overdue
4
11%
Free
Published: 4 codes
7
Developer 7
Rating
(69)
Projects
146
34%
Arbitration
13
8% / 62%
Overdue
26
18%
Free
Published: 6 codes

Project information

Budget
30 - 40 USD
Deadline
from 1 to 2 day(s)