________________MQL4 Training Global Tour

How to disable ITM in one direction PDF Print E-mail
Tuesday, 12 February 2008

If you would like to disable ITM in one direction you can easily increase the value to a large value that cannot be reached. For example if you set loss_cap to value equal or larger than 100 then ITM never closes trades due to large open loss. The value 100 means that the size of open loss is equal to or rather 100% of the account balance. This means that your equity is 0 now which is almost impossible. In such cases the broker usually closes your trades whether you want it or not.

 

In case of proft you can assign a value way larger than 100. For example you can assign 1000 to profit_cap. This means that ITM will close the trades only if the open profit is 10 times the account balance. The larger this value the less likely ITM is in effect.

 

It is obvious that to disable ITM in both direction you can simply remove this EA or assign large values to both loss_cap and profit_cap.

 
< Prev   Next >