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

MQL5 Experts Scripts

Trabalho concluído

Tempo de execução 1 dia

Termos de Referência

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)


Respondido

1
Desenvolvedor 1
Classificação
(617)
Projetos
1427
59%
Arbitragem
31
81% / 0%
Expirado
10
1%
Livre
2
Desenvolvedor 2
Classificação
(132)
Projetos
178
39%
Arbitragem
4
25% / 50%
Expirado
14
8%
Livre
3
Desenvolvedor 3
Classificação
(38)
Projetos
50
10%
Arbitragem
1
0% / 0%
Expirado
8
16%
Livre
4
Desenvolvedor 4
Classificação
(15)
Projetos
23
9%
Arbitragem
7
29% / 57%
Expirado
2
9%
Livre
5
Desenvolvedor 5
Classificação
(568)
Projetos
641
41%
Arbitragem
25
48% / 36%
Expirado
46
7%
Trabalhando
6
Desenvolvedor 6
Classificação
(33)
Projetos
35
40%
Arbitragem
11
9% / 91%
Expirado
4
11%
Livre
Publicou: 4 códigos
7
Desenvolvedor 7
Classificação
(69)
Projetos
146
34%
Arbitragem
13
8% / 62%
Expirado
26
18%
Livre
Publicou: 6 códigos

Informações sobre o projeto

Orçamento
30 - 40 USD
Prazo
de 1 para 2 dias