Forum

Take Profit using Closing Price plus ATR

Need help with this idea for a take profit function. the idea is as follows: When entry is made the take profit level should be entry price+atr but it doesnt close the position unless the closing price of a candle is greater than or equal to the entry price+atr. No SL, necessary just the take profit

MA cross with shifted lines, modifying ordersend

I've written an EA based on an alligator strategy that uses shifted lines (8,13,21). The OrderSend function opens and closes on the 1st bar after the cross of the actual lines. Is there a way to modify this so that it orders on the bar that the shift is based on? For example, the pink box is where