Need a advice_Can I earn money this way?

 

Hi,


With a specific set up I am getting this graphic with my EA.

I think that If I invert the signals I can get a rising curve.

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.


I tested many TP and SL relations and always get a constant descendent line.


Any idea to know for sure if I am right or wrong?



Thanks!!!!!!






 
edfiuza wrote >>

Hi,


With a specific set up I am getting this graphic with my EA.

I think that If I invert the signals I can get a rising curve.

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.


I tested many TP and SL relations and always get a constant descendent line.

Any idea to know for sure if I am right or wrong?


Thanks!!!!!!

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.

 

Idalgo,



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?



Thanks.

 
edfiuza:

Idalgo,



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?



Thanks.

What is the average loss of all your trades and what is the spread?

 

Gooly,


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.

 
edfiuza:

Gooly,


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.

hmm,

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?

calli

 

See this:



 
edfiuza wrote >>

Idalgo,



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?


Thanks.

edfiuza,

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   
   
   if(a>b)

     {
      
      ticket=OrderSend(Symbol(),OP_BUY,LotsOptimized(),Ask,3,Bid-StopLoss*Point,Ask+TakeProfit*Point,"",MAGICMA,0,Green);

      return;
     }
//---- sell conditions

   if(b>a)
   
     {
         
      ticket=OrderSend(Symbol(),OP_SELL,LotsOptimized(),Bid,3,Ask+StopLoss*Point,Bid-TakeProfit*Point,"",MAGICMA,0,Red);

      return;
     }
 

I will try,



thanks.

 
edfiuza wrote >>

I will try,


thanks.

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) :)

//---- buy conditions   
   
   if(a>b)

     {
      
      ticket=OrderSend(Symbol(),OP_BUY,LotsOptimized(),Ask,3,Bid-StopLoss*Point,Ask+TakeProfit*Point,"",MAGICMA,0,Green);

      return;
     }
//---- sell conditions

   if(b>a)
   
     {
         
      ticket=OrderSend(Symbol(),OP_SELL,LotsOptimized(),Bid,3,Ask+StopLoss*Point,Bid-TakeProfit*Point,"",MAGICMA,0,Red);

      return;
     }
 
You must be a programmer trying to become a trader? The answer is looking right at you, just look at your win/loss ratio and then look at your avg loss avg profit and walaaaaa! you got your answer. That is before even looking at your spread costs and no, inverting will not make this strategy profitable. I just the book by Edward Thorpe, mathematics of gambling, since you seem to lack the knowledge of an "edge".
Reason: