Forum

Drawing a Line on Chart

Hi all I have managed to produce a code to draw two horizontal lines on a chart at the highest and lowest candle. This is what I want but only want to check the candles between 10am and 11am. this needs to reset the next day at 9:30. Please could someone help with this. thanks in advance void OnTick

Closing a single position in a hedging account if it has profit

im am really struggling with this code I have got it to place buy orders and it opens the correctnumber of trades. Then I want to close a single ticket if that ticket number has a profit of 1.20.Please helpVery much appreciated #include <Math\Stat\Normal.mqh> #include <Trade\PositionInfo.mqh>