Need help on EA based on HistorysOrder of Last Close Order

 

I am currently working on EA in following:

 if the last closed order is a loss position, and then the next order will be a reverse position.

Ex: if the last closed order is a Sell position and it hit the SL or Close by Ea, then the next position will be a Buy Position only even it match other sell trading condition. So there wont be any sell position until buy position condition is formed.

 
Sokphal:

I am currently working on EA in following:

 if the last closed order is a loss position, and then the next order will be a reverse position.

Ex: if the last closed order is a Sell position and it hit the SL or Close by Ea, then the next position will be a Buy Position only even it match other sell trading condition. So there wont be any sell position until buy position condition is formed.

 

Show your code that you have and somebody may be able to help you
 
Sokphal: I am currently working on EA
No question asked. No response needed.
 

Hello !

Please show me the source file I can help you

Reason: