auto open a position if no positions are open

 

Can u give me the code? plss

the script must check if no open position are present and will open a 0.01 (sell or buy it's the same) position with no sl or tp, if true.

thank you

 
if(OrdersTotal()==0) OrderSend(Parameters);
Thats a basic solution; if you plan to use it live then read up on error handling.
 
johnny80:

Can u give me the code? plss

No slaves here. Either learn to code or pay someone.
Reason: