Experts: Multi Arbitration 1.1xx

 

Multi Arbitration 1.1xx:

Buy a security (open BUY positions) at a lower price, sell (open SELL positions) at a higher price.

Multi Arbitration 1.1xx

Author: Vladimir Karputov

 

I am testing your Expert Advisor. how does the lot change?

 
Lev Razumov:

I am testing your Expert Advisor. can you tell me how the lot changes?


This Expert Advisor trades with a constant lot - the minimum for each symbol:

//---
   int limit=m_account.LimitOrders();
   if(!RefreshRates(m_symbol_one) || !RefreshRates(m_symbol_two))
      return;
   if(count_buys_one+count_sells_one+count_buys_two+count_sells_two<limit-15)
     {
      if(m_symbol_one.Ask()<price_lowest_buy_one) // trend down
         m_trade.Buy(m_symbol_one.LotsMin(),m_symbol_one.Name());
      else if(m_symbol_one.Bid()>price_highest_sell_one) // trend up
      m_trade.Sell(m_symbol_one.LotsMin(),m_symbol_one.Name());
      else if(count_buys_one==0 && count_sells_one==0)
         m_trade.Buy(m_symbol_one.LotsMin(),m_symbol_one.Name());

      if(m_symbol_two.Ask()<price_lowest_buy_two) // trend down
         m_trade.Buy(m_symbol_two.LotsMin(),m_symbol_two.Name());
      else if(m_symbol_two.Bid()>price_highest_sell_two) // trend up
      m_trade.Sell(m_symbol_two.LotsMin(),m_symbol_two.Name());
      else if(count_buys_two==0 && count_sells_two==0)
         m_trade.Buy(m_symbol_two.LotsMin(),m_symbol_two.Name());
     }
   else
     {
      if(m_account.Profit()>0.0)
         CloseAllPositions();
     }

//---
 
joão norberto :

Can you increase the ticket packages?

Sorry, I don't understand (and the translator doesn't help). Please use standard terms in your question.

 
How can I increase the batches (packages) of the entries?

because it is set 0.001


 
joão norberto :
How can I increase the batches (packages) of the entries?

because it is set 0.001


Please: enter the name of the parameter. I don't understand you.

 
Как я могу увеличить партии (пакеты) записей?
потому что это установлено 0,001.
 
много они могут изменить?
как изменить?
 
joão norberto :
Как я могу увеличить партии (пакеты) записей?
потому что это установлено 0,001.
joão norberto:
много они могут изменить?
как изменить?

I don't understand. Here are the input parameters:

CAccountInfo   m_account;                    // account info wrapper
//--- input parameters
input ENUM_TIMEFRAMES InpTimeFrame=PERIOD_M15;// Time frame
input uchar    InpSymbolTwo      = 1;        // from "0" to 19
input double   InpProfitFoClose  = 300;      // Profit Fo Close
input ulong    m_magic           = 130108500;// magic number
ulong          m_slippage        = 30;       // slippage
string         ExtArrSymbols[20]=
  {
   "EURUSD","GBPUSD","USDCHF","USDJPY","USDCAD",
   "AUDUSD","AUDNZD","AUDCAD","AUDCHF","AUDJPY",
   "CHFJPY","EURGBP","EURAUD","EURCHF","EURJPY",
   "EURNZD","EURCAD","GBPCHF","GBPJPY","CADCHF"
  };

The input parameters are not close to 0.001

 

Hi, I can't get the EA to work with live trading. I am getting "incorrect parameters" error code 32767. How can I get it to work with live trading?


Thank you in advance!

 
SaltySpade :

Hi, I can't get the EA to work with live trading. I am getting "incorrect parameters" error code 32767. How can I get it to work with live trading?


Thank you in advance!

There is no such mistake.

Please provide more information: Do you get an error immediately when launching the EA? Or do you get an error while working? Please attach log files from two tabs: from the "Experts" tab and from the "Journal" tab.