Experts: Volume trader

 

Volume trader:

A trading system based on the tick volume of bars.

Author: Vladimir Karputov

 

Dear Sir, Thankuo very nuch for your code, I am using It an it's very poewrfull , would be possible exemplain to me the logic

in order to take profit .


kindest regard, Fabio

 
Fabio Carlucci:

Dear Sir, Thankuo very nuch for your code, I am using It an it's very poewrfull , would be possible exemplain to me the logic

in order to take profit .


kindest regard, Fabio

The EA only operates when a new bar appears: It compares the tick volumes of the first and the second bar. Block for making decisions:

//---
   if(array_volume[1]>array_volume[2])
     {
      ClosePositions(POSITION_TYPE_SELL);
      OpenBuy();
     }

   if(array_volume[1]<array_volume[2])
     {
      ClosePositions(POSITION_TYPE_BUY);
      OpenSell();
     }