i'm having trouble accessing the highs and lows of this indicator (the default one in MT4). i noticed that the navigator window only showed 1 value from this indicator, so i wrote the following code:
it's supposed to move the stoploss 5 pips below the zigzag's low. help would be appreciated.
Inserted Code
ZigZag2 = iCustom(NULL,0,"ZigZag",3,5,0,0,0); ZigZag1 = iCustom(NULL,0,"ZigZag",3,5,0,0,1); if (ZigZag2 > ZigZag1) Order = OrderModify(OrderTicket(), OrderOpenPrice(), ZigZag2 - 50*Point, 0, 0, 0);
it's supposed to move the stoploss 5 pips below the zigzag's low. help would be appreciated.