Disliked{quote} I made the changes you requested....I am however not convinced this is working as intended. When I run this via the system tester, the lines are not moving after being initially placed. I have added 2 additional commented lines (Lines 43 and 44) , which if you uncomment and recomplie, if there are no orders present, it will delete and recreate the lines on every bar until a line gets triggered. Special thanks to mnitwana - he cleaned up the code so that the trades would trigger {file} {file}Ignored
My idea was to change line 105/106
double Y1g=Y1+(Y2-Y1)*(X1g-X1)/(X2-X1);
double Y2g=Y1+(Y2-Y1)*(X2g-X1)/(X2-X1);
to something like this
double Y1g= (Bid + DistancetoPrice); // to add Distance to price in user select), (extern double DistancetoPrice = 20);
double Y2g= (Bid - DistancetoPrice)
so that it will create the lines 20 pips above & below the the current price
Thanks
Currently by changing OBJ_TREND to OBJ_HLINE
HLINES are created but need to add Distance to price feature
A good trader follows his rules, but great trader knows when to break them