Forum

Arrows incorrectly diplayed in top of indicator window

Dear all, I have kind of weird issue. I'm trying to display arrows on MACD indicator to display buy or sell signal. Basically, I've updated an MACD indicator code, and in the result, my arrows are displayed in the top of the separate window. So the lines and histogram are so small, as in the

Reduce (partial close) a position using a SL or TP

Dear all, I started working on an EA the other day and I'm blocked at a certain point. I want to do a partial closing on a position using an SL or a TP, but I can't figure out how to do this. For instance, I open a 5 lots position: int ticket=OrderSend(Symbol(),OP_SELL,5.0,Bid,0,0,0,"First