Hmmmm. Slightly scary that I got this arse end over tip. Nothing new there.fxjoe2 wrote:Hi All
While visually backtesting earlier today I saw a the yellow line appear on the opposite side of the market than what I would have expected.
I then re-read the thread as well as Paulus's initial explanation at FF.
I then scanned through version 1h and found what I believe might be a typo causing this:
Line # 2514-2516:
if (Fopen > Fclose) CreateHLine(LowLineName, iLow(NULL, PERIOD_H1, 1), STYLE_SOLID, 0,
LineColour);//Market fell
if (Fopen < Fclose) CreateHLine(LowLineName, iHigh(NULL, PERIOD_H1, 1), STYLE_SOLID, 0,
LineColour);//Market rose
I think iLow and iHigh should be swopped.
I made a copy of the code with this change and it seemed to have resolved the position of the yellow line.
I might be wrong, but thought I highlight the posibility.
FXJoe
Ok guys; either Joe is an idiot or I have confirmed yet again my idiocy status. I have read the code and compared it with the info in the post 1 pdf many times. Doesn't matter how many times I look; Joe appears to be correct.
Fix in post 1; this might give the original Balls a second chance. I shall try it again on demo on Monday.
Thanks Joe. Nice one.
