Gary especially wanted the hidden stop loss to work properly but he spotted a few other things as well. These are the notes he sent me about the edits he made:
Code: Select all
edits to get 'PipsHiddenFromCriminal' working:
DrawPendingPriceLines()
added: 'if (OrderType() == OP_SELL || OrderType() == OP_SELLSTOP || OrderType() == OP_SELLLIMIT)' to TpPrefix section
added function: ModifyHiddenSlTpLines(int ticket, double stop, double take)
edited 'ModifyOrder()' function
----
edits to eliminate 'OrderModify error 1':
CalculateStopLoss() & CalculateTakeProfit()
added: 'stop = NormalizeDouble(price - (StopLoss / factor),_Digits);' and 'take = NormalizeDouble(price - (TakeProfit / factor),_Digits);'
added function: OrderModifyCheck(int ticket, double price, double sl, double tp)
edited 'ModifyOrder()' function
----
added function DrawPhlLines()
added to OnInit():
//draw peak hl lines
DrawPhlLines();
added to OnDeinit():
//remove phl_lines
for(int i = ObjectsTotal() - 1; i >= 0; i--)
if (StringFind(ObjectName(i),"phl_",0) > -1)
ObjectDelete(ObjectName(i));