• 概述
  • 评论
  • 评论 (4)
  • 新特性

Account QuickReport 4

A library for creating a brief trading report in a separate window.

Three report generation modes are supported:

  • For all trades. 
  • For trades of the current instrument.  
  • For trades on all instruments except the current one.

The library is useful for fast assessment of the trading effectiveness of Expert Advisors, can be easily connected.

Example of connection to the script:

#property strict
#property script_show_inputs
extern int   mode=1; //report mode
                     //1 - for the current symbol, <1 - all, >1 - all excluding current
#import "accountQuickReport.ex4"
void quickReport(int);
#import
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
//---
   quickReport(mode);
   if(_LastError!=0) Print(__FUNCTION__,__LINE__,"_LastError=",_LastError);
  }
//+------------------------------------------------------------------+

Example of connection to the Expert Advisor:

#property strict
#import "accountQuickReport.ex4"
void quickReport(int rep_mode);
#import
//+------------------------------------------------------------------+
//| ChartEvent function                                              |
//+------------------------------------------------------------------+
void OnChartEvent(const int id,const long &lparam,const double &dparam,const string &sparam)
  {
//...
//alternately pressing Ctrl and 1,2,3 causes trade report in a separate window 
//1-for the current symbol, 2-all, 3-excluding current
   static long lparam_pre=-1;
   if(id==CHARTEVENT_KEYDOWN)
     {
      if(lparam_pre==17)
        {
         if(lparam==49) quickReport(1);
         else
            if(lparam==50) quickReport(0);
         else
            if(lparam==51) quickReport(2);
        }
      lparam_pre=lparam;
     }
//...
  }
//+------------------------------------------------------------------+
无评论
版本 1.10 - 2015.09.15
Fixed errors, expanded functionality.