There is an interesting trading idea. Help me find errors in the code (mql4). - page 12

 

GAZR is still in the lead on the fund

 

Yes it did... it's good - and where are the profits so crazy... my old one used to minus almost everything, this one's been plusing since 5pm... seems to be catching better in the morning... Profits, then repeated drawdowns... and then back to the plus again...))

Trading account: 3128338 (USD, 1:100, MetaQuotes-Demo, demo)
Broker: MetaQuotes Software Corp.
Date: 2016.03.10 18:23
Trading positions
Symbol Time Type Volume Price S / L T / P Market price Swap Profit Commentary
AUDCAD2016.03.09 20:00:03buy0.180.993480.986800.995820.989880.86-48.84
AUDUSD2016.03.10 17:00:00buy0.090.744600.743030.752940.746080.0013.32exp_cci
CHFJPY2016.03.10 17:00:02buy0.06114.820114.922115.975115.1220.0015.92exp_cci
EURGBP2016.03.10 17:00:03buy0.080.776960.774710.785780.778490.0017.47exp_cci
EURJPY2016.03.10 17:00:03buy0.05126.107125.995127.637126.4200.0013.75exp_cci
EURUSD2016.03.10 17:00:04buy0.051.104381.106591.118271.111100.0033.60exp_cci
GBPCAD2016.03.10 17:00:04sell0.041.889191.897701.873311.894200.00-15.10exp_cci
USDHKD2016.03.10 13:00:11sell0.047.763967.768717.761537.765840.00-0.97exp_cci
USDSEK2016.03.10 17:00:01sell0.018.445348.429058.351558.397750.005.67exp_cci
USDZAR2016.03.10 17:00:05sell0.0115.2848615.3713015.0508915.312050.00-1.78exp_cci

0.86 33.04

 
Сергей Криушин:

Yes it did... it's good - and where are the profits so crazy... my old one used to minus almost everything, this one's been plusing since 5pm... seems to be catching better in the morning... profits, then repeated drawdowns... and then back to the plus again...))

Trading account: 3128338 (USD, 1:100, MetaQuotes-Demo, demo)
Broker: MetaQuotes Software Corp.
Date: 2016.03.10 18:23
Trading positions
Symbol Time Type Volume Price S / L T / P Market price Swap Profit Commentary
AUDCAD2016.03.09 20:00:03buy0.180.993480.986800.995820.989880.86-48.84
AUDUSD2016.03.10 17:00:00buy0.090.744600.743030.752940.746080.0013.32exp_cci
CHFJPY2016.03.10 17:00:02buy0.06114.820114.922115.975115.1220.0015.92exp_cci
EURGBP2016.03.10 17:00:03buy0.080.776960.774710.785780.778490.0017.47exp_cci
EURJPY2016.03.10 17:00:03buy0.05126.107125.995127.637126.4200.0013.75exp_cci
EURUSD2016.03.10 17:00:04buy0.051.104381.106591.118271.111100.0033.60exp_cci
GBPCAD2016.03.10 17:00:04sell0.041.889191.897701.873311.894200.00-15.10exp_cci
USDHKD2016.03.10 13:00:11sell0.047.763967.768717.761537.765840.00-0.97exp_cci
USDSEK2016.03.10 17:00:01sell0.018.445348.429058.351558.397750.005.67exp_cci
USDZAR2016.03.10 17:00:05sell0.0115.2848615.3713015.0508915.312050.00-1.78exp_cci

0.86 33.04

What timeframe did you run it on? I'm running on H1
 

Made a sorting in the information advisor by profit.

Files:
InfoProfit.mq4  34 kb
InfoProfit.mq5  33 kb
 

I am running on H1 but the rest are differently on M15 mostly... something about the measurements is not very impressive, I have about the same... I haven't measured MT4 yet, it's all foggy - a lot of open - I can't seem to get into a rut... I got this picture somehow...


 

MT5 metoquotes large numbers it's Owls for some reason opened at once with lot =100 and went into deficit, and the SL is close, because I see the calculation from the depo - and took with a reserve... ))) need to study the options - raised the calculated limit to 110 tomorrow? CCI= 90, CCI_F=21 I read somewhere that a bit longer period is preferable on the daily... kTP=1.6 kSL=4

USDCHF chart, M30, 2016.03.10 20:42 UTC, MetaQuotes Software Corp.

 
Sergey Gritsay:

Made a sorting in the information advisor by profit.

Wonderful tables - just golden - all that's left to do is sum up the profit and loss and close either on the right profit or loss - so to speak, total profit or moose at the right time...))
 
Сергей Криушин:
Wonderful tables - just golden - all that's left to do is to sum up profit and loss and close either on the right profit or loss - so to speak, total profit or moose at the right time...))
Bumped into a similar video of the same author, only the trend indicator is different, I should think about it.
индикатор CCI
индикатор CCI
  • 2014.10.10
  • www.youtube.com
Изучаем индикатор CCI www.fxclub.org Ведущий семинара: Макаров Александр - аналитик филиала Форекс Клуб в г. Екатеринбург Блог автора: http://amkrv.livejourn...
 

Like this, but not like this, I'm not good at programming...

//+------------------------------------------------------------------+
void GetProfit(string symbol,double &loss,double&profit,double &net_profit,double &sum_net_profit)
  {
   loss=0;
   profit=0;
   net_profit=0;
   sum_net_profit=0;

//--- установим начальную и конечную дату для запроса истории сделок 
   datetime from_date=0;          // с самого начала 
   datetime to_date=TimeCurrent();// по текущий момент 
//--- запросим историрю сделок в указанном интервале 
   HistorySelect(from_date,to_date); 
//--- общее количество в списке сделок 
   int deals=HistoryDealsTotal(); 

   if(HistorySelect(0,TimeCurrent()))
     {
      int deals=HistoryDealsTotal();
      for(int i=0;i<deals;i++)
        {
         ulong deal_ticket=HistoryDealGetTicket(i);
         if(HistoryDealGetString(deal_ticket,DEAL_SYMBOL)!=symbol)continue;
         if(HistoryDealGetInteger(deal_ticket,DEAL_ENTRY)!=DEAL_ENTRY_OUT)continue;
         double pr = HistoryDealGetDouble(deal_ticket,DEAL_PROFIT);
         double sum_pr = HistoryDealGetDouble(deal_ticket,DEAL_PROFIT)!=DEAL_ENTRY_INOUT)continue;
         
         if(pr>0)profit+=pr;
         if(pr<0)loss+=pr;
         net_profit+=pr;
         sum_net_profit=sum_pr;
        }
     }
  }
 
Сергей Криушин:

Like this, but not like this, I'm not good at programming...

I'll add the general profits