Bug info:
Perhaps I have found a problem in the operation of the AVP (Average Position Price) indicator in conjunction with other indicators through a condition OR.
I created a simple bot that opens and closes trades using the “Combined Ratings” indicator.
Here it is: Gainium app
As expected, the bot closes trades using the indicator and their profitability is usually a minimum of 3.01%, and sometimes 64.72% and higher (with x10 leverage).
Since there are equity peaks on the chart, i.e. sometimes trades were closed too late, I decided to add another indicator for closing a position - AVP (Average Position Price) with the condition “greater than 2%”.
By adding such an indicator via the OR condition, I expect that some trades will still close at the minimum 3.01%, and some a little higher, but not more than 20% (with x10 leverage).
But after running the backtest, I get a result in which all successful trades with a positive PnL are closed at 20%, i.e. as if this indicator works not via the OR condition, but via the AND condition.
Here is this bot with problem: Gainium app
Your deals without AVP were closed only by move sl and sl. Indicator close event doesn’t meet your min TP. The problem was in SL values overridden by AVP. That was fixed, you can try it out.
But probably not completely… In the new bot, deals are closed as before either by the AVP indicator or by SL. Another indicator for closing a position, which is enabled via the OR condition, does not work.
Please check your original results. Deals are not closed by indicator close signal, because deals TP not fit, they closed either by move sl or by sl value. So there is no way backtest with AVP indicator will start to close the deals
Your minimum take profit is 0.75. That allows the combined ratings to close the deal if it has passed that level. The AVP is configure > 10. That is as soon as the deal reaches 10% without being closed by the combined ratings, it gets closed by AVP.
Trades are opened and closed by the “Combined Ratings” indicator.
Some of the trades (the block is highlighted in red on the screen) are closed by SL -15% (with leverage).
Some of the trades (the block is highlighted in blue on the screen) are closed by SL with a near-zero result thanks to the “Move Stop Loss” function.
Some of the trades are closed by the indicator (the block is highlighted in green on the screen).
Everything works fine.
As I expect.
However, on the equity chart (yellow line) I see price peaks, but the position was not closed, because there was no signal (I highlighted these areas in purple).
To partially solve this problem and maximize profit, I try to add another indicator to close the deal: “Average position price (AVP)”. Now to close the deal I expect EITHER the signal of the first indicator OR the signal of the second indicator.
Here are the bot settings after adding the new AVP indicator with the OR condition: