where ima0 – the current value of IMA indicator, ima1 – is the previous value of the IMA indicator.
The management of opened position is based on the trailing stop, specified in the value of the take parameter.
The loss trade is closed, according the specified drop parameter.
The lot size is changed with the minimal step up to the value, specified in max_lots parameter.
If this value is equal to 0, the lot can be from the minimal up the maximal allowed for the symbol.
- Open long position, when k>= 0,5;
- Open short position, when k<= -0,5.
The management of opened position is based on the trailing stop, specified in the value of the take parameter.
The loss trade is closed, according the specified drop parameter.
The lot size is changed with the minimal step up to the value, specified in max_lots parameter.
If this value is equal to 0, the lot can be from the minimal up the maximal allowed for the symbol.