Auftrag beendet
Spezifikation
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)