Experts: Swaper

To add comments, please log in or register
Automated-Trading
148145
Automated-Trading  

Swaper:

The Expert Advisor that gains profit from the positive swaps + multi-currency arbitrage tactics.

Many may have already tried to gain profit from the trades with positive swaps of the instruments. But opening towards the positive swaps is one thing. At the same time it is necessary to keep all this business running.

Author: Yury Reshetov

DominicoTsavo
22
DominicoTsavo  
I'm impressed! 
traderthomas
6
traderthomas  
That's martingale. 
First Lane
10
First Lane  

I think there is a bug in the following line of code :

money = money - 10 * buyvolume * OrderOpenPrice();

Here, the value of buyvolume will be 0 when this line of code is called first time. Then, inside the if condition it is assigned the value of OrderLots()

buyvolume = OrderLots();


So, next time, buyvolume has the value of previous OrderLots.

This does not seem to make sense.

First Lane
10
First Lane  

Why is the following code repeated 4 times ? It is already there at the beginning in the start() function, so no point in repeating so many times.

if(!IsTradeAllowed())
{
   prevtime = Time[1];
   return(0);
}
To add comments, please log in or register