Am I wrong? Or this negative results are the spreads?
I need to be sure because I will have to pay to do the modifications at my EA.
Any idea to know for sure if I am right or wrong?
Actually, replies to your questions are inside your own comment. Spread is the key word here.
Inverting signals is very simple, if just look at the code. You can do this yourself, I am sure. No need to pay.
I don't know MQL4.
I tried inverting all OP_SELL and OP_BUY but now don't open any trade.
Is there any other parameter to change?
What is the average loss of all your trades and what is the spread?
The average of profit trades is 12 USD and loss trades is 22 USD.
The spread is 2 pips (EURUSD).
The trades are opened by indicator but closed only by TP or SL.
2 pips spread is hard to compare with 22$ and 12$. Can you dconvert 2 pips into $:
USD_Spread = MathAbs(Bid-Ask)*MarketInfo(Symbol(),MODE_TICKVALUE)/Point; // to be save
Anyway how many trades are closed by TP and how many by SL.
I asume n-SL > n-TP could be this your problem?
You should find a fragment in your EA code which defines buy/sell conditions. In my example, a>b is a condition to buy, b>a is a condition to sell. If you put conditions one instead of another, your system will be inverted.
//---- buy conditions
//---- sell conditions
I will try,
There is also another way to solve the problem. You can replace the whole OrderSend function (change places). At any rate, this is rather simple. (Don't use the code from my example, just replace fragments of your own EA code - just in case of) :)