Please help me with this MQL5 code I want to write.

 

Greetings,

 

I am new to MQL5 and would like to know the code for an order management EA that does the following:

 

When a trade is above a certain profit, close the trade and place a new one.

When a trade is below a certain loss, place a new trade without closing the original trade.

On every loss level triggered the lot size of the trade must be increased by 0.1. 

 

 

I will be able to code further conditions and parameters but I am struggling to understand how the order placement is done and how scanning for orders is done in MQL5.

 

My sincere thanks for any help.  

 

make new job here https://www.mql5.com/en/job.

i think some one can help you

MQL5 jobs
  • www.mql5.com
Orders for the development of automated trading programs
 

And describe when to buy and when to sell. Also when closing a position - what type of a position should be the next one.

Reason: