+
1 2 2

: MT5 iCustom

  1. #1

    05.01.2017
    1
    ()
    0
    0 () 0

    MT5 iCustom

    ! , , ClusterDelta Metatrader 5?

    iCustom. MT , ClusterDelta - .

    , ClusterDelta_PremiumVolume_4.1 :

    :
    #property version   "1.00"
    #property indicator_separate_window 
    #property indicator_buffers 1 
    #property indicator_plots   1 
    //----   
    #property indicator_label1  "Volume" 
    #property indicator_type1   DRAW_LINE 
    #property indicator_color1  clrRed 
    #property indicator_style1  STYLE_SOLID 
    #property indicator_width1  1 
    //---   CD Volume
    extern string HELP_URL="http://my.clusterdelta.com/volume";
    input string Instrument="AUTO";
    input string MetaTrader_GMT="AUTO";
    input string Comment_History="--- Premium Settings ";
    input int Days_in_History=0;
    input datetime Custom_Start_time=D'2017.01.01 00:00';
    input datetime Custom_End_time=D'2017.01.01 00:00';
    input color Current_Volume=clrRed;
    input int Font_Size=8;
    //---  
    double         LineBuffer[]; 
    //---   
    int LineHandle; 
     
    int OnInit() 
      { 
       //---  
       SetIndexBuffer(0,LineBuffer,INDICATOR_DATA); 
       ResetLastError(); 
    
       //---  
       LineHandle=iCustom(NULL,0,"ClusterDelta_PremiumVolume_4.1"
                            ,HELP_URL
                            ,Instrument
                            ,MetaTrader_GMT
                            ,Comment_History
                            ,Days_in_History
                            ,Custom_Start_time
                            ,Custom_End_time
                            ,Current_Volume
                            ,Font_Size
                         );  
       
       //---                               
       Print("LineHandle = ",LineHandle,"  error = ",GetLastError()); 
     
       return(INIT_SUCCEEDED); 
      } 
    
    int OnCalculate(const int rates_total, 
                    const int prev_calculated, 
                    const datetime &time[], 
                    const double &open[], 
                    const double &high[], 
                    const double &low[], 
                    const double &close[], 
                    const long &tick_volume[], 
                    const long &volume[], 
                    const int &spread[]) 
      { 
       //---        
       int copy = CopyBuffer(LineHandle,0,0,rates_total,LineBuffer); 
       
       //---   
       Print("copy=",copy," | rates_total=",rates_total," | LineBuffer=",LineBuffer[0]); 
    
       //---      
       if(copy<=0) Print("    "); 
       
       return(rates_total); 
      }
    , , ?

  2. #2

    12.01.2019
    1
    ()
    0
    0 () 0
    . , .

+

     

 

ClusterDelta.com - . : , , , http://clusterdelta.com http://forum.clusterdelta.com , , , .


, , . , , , .


(C) 2009-2012 ClusterDelta.com. .

 

@Mail.ru