Lifesys wrote:Hi Steve,
I must be "doing things wrong" as well
OOTB we had the same problem as Sonny Jim & vivaldi.
Estimated Lotsize = 0.00
Estimated StopLoss = 12616.40 Estimated Loss = 0.00
Estimated TakeProfit = 37848.40 Estimated profit is 0.00
The Stoploss is simply Bid*factor and TakeProfit = Bid*factor*3
It is clearly not calculating the FracLow correctly,
as the fractal value is obviously Zero (0).
I completely replaced the GetFractals routine using the Yellow line value -and it works - seemingly correctly for now!!Code: Select all
void GetFractals() { FracHigh =iHigh(NULL, PERIOD_H1, 1); FracLow = iLow(NULL, PERIOD_H1, 1); }
I am going to change my copy to use the Yellow line value,
iLow(NULL, PERIOD_H1, 1)
Thanks for the fun.
Hallo Lifesys,
If you are going to use the yellow line formula as a reference in order to calculate the stoploss, like you propose here, you have 2 problems :
a) The yellow line is not necessarily the most recent LowFractal. The yellow line is the lowest low of the hour, preceding the London open. This may result in bigger stoploss sizes and hence in 3 times stoploss = very big target sizes. Perhaps not realistical anymore under the circumstances.
b) In case of a short, following your proposal, you have to use "iHigh(NULL, PERIOD_H1, 1)".
See also Garyfritz's comment :
quote
He doesn't say what to do if the yellow line slopes down. I assume it's the inverse -- short bias unless you break the HIGH of the 60 mins before the London open..
endquote
The high of the 1hourcandle, just before the London open, must then be used as yellow line.
By the way : What means "OOTB" ?