Forum

EA with Buystop order send

Dear all, I hve made my own EA. My idea is to check last 9 bars abd if their bodies is above EMA than it should open order when highest high of those 9 bars +3 pips is reached. When i do a test of strategy (for 3 year period) the result is that there is one pending order sent and it isn't executed

Last Order type and closing type

Hello! I need help with my expert advisor. I want to detect wether previos trade was stoped out by stop loss and what was the opening type (BUY or SELL) of previous order. I need this becaus i don't want to open new trade immidiatly after previous trade was stoped by sl. thanx