사용자 정의 기호. 오류, 버그, 질문, 제안. - 페이지 22

 
Artyom Trishkin :
통관 기호보다는 영어로 작성하는 것이 좋습니다 :)
커스텀 캐릭터 말씀하시는건가요? 그리고 틱이 추가되지 않습니까?

네. CUSTOM TIC는 추가되지 않습니다. 나는 그 이유를 이해하지 못한다. 나는 시간을 확인합니다. 그게 맞았 어.

 
jaffer wilson :

네. CUSTOM TIC는 추가되지 않습니다. 나는 그 이유를 이해하지 못한다. 나는 시간을 확인합니다. 그게 맞았 어.

@fxsaber는 이러한 문제에 정통합니다. 나는 여기서 당신을 돕지 않습니다.
Slava는 모든 것을 알고 있지만 바쁜 사람이고 항상 제안 할 시간이 없습니다.
 
Artyom Trishkin :
@fxsaber는 이러한 문제에 정통합니다. 나는 여기서 당신을 돕지 않습니다.
Slava는 모든 것을 알고 있지만 바쁜 사람이고 항상 제안 할 시간이 없습니다.

첫 번째 질문은 GetLastError 및 터미널 및 전문가 로그에 대한 것입니다.

 
Slava :

첫 번째 질문은 GetLastError 및 터미널 및 전문가 로그에 대한 것입니다.

나는 이것을 계속 얻는다:

TestIndciatorTicks (EURUSD,M1)   2019.02 . 01 23 : 30 : 03 
TestIndciatorTicks (EURUSD,M1)   1 
TestIndciatorTicks (EURUSD,M1)   0 
TestIndciatorTicks (EURUSD,M1)   2019.02 . 01 23 : 30 : 04 
TestIndciatorTicks (EURUSD,M1)   1 
TestIndciatorTicks (EURUSD,M1)   0 
TestIndciatorTicks (EURUSD,M1)   2019.02 . 01 23 : 30 : 05 
TestIndciatorTicks (EURUSD,M1)   1 
TestIndciatorTicks (EURUSD,M1)   0 
TestIndciatorTicks (EURUSD,M1)   2019.02 . 01 23 : 30 : 06 
TestIndciatorTicks (EURUSD,M1)   1 
TestIndciatorTicks (EURUSD,M1)   0 
TestIndciatorTicks (EURUSD,M1)   2019.02 . 01 23 : 30 : 07 
TestIndciatorTicks (EURUSD,M1)   1 
TestIndciatorTicks (EURUSD,M1)   0 
TestIndciatorTicks (EURUSD,M1)   2019.02 . 01 23 : 30 : 08 
TestIndciatorTicks (EURUSD,M1)   1 
TestIndciatorTicks (EURUSD,M1)   0 
TestIndciatorTicks (EURUSD,M1)   2019.02 . 01 23 : 30 : 09 
TestIndciatorTicks (EURUSD,M1)   1 
TestIndciatorTicks (EURUSD,M1)   0 
TestIndciatorTicks (EURUSD,M1)   2019.02 . 01 23 : 31 : 00 
TestIndciatorTicks (EURUSD,M1)   1 
TestIndciatorTicks (EURUSD,M1)   5032 
TestIndciatorTicks (EURUSD,M1)   2019.02 . 01 23 : 31 : 01 
TestIndciatorTicks (EURUSD,M1)   1 
TestIndciatorTicks (EURUSD,M1)   0 
TestIndciatorTicks (EURUSD,M1)   2019.02 . 01 23 : 31 : 02 
TestIndciatorTicks (EURUSD,M1)   1 
TestIndciatorTicks (EURUSD,M1)   0 
TestIndciatorTicks (EURUSD,M1)   2019.02 . 01 23 : 31 : 03 
TestIndciatorTicks (EURUSD,M1)   1 
TestIndciatorTicks (EURUSD,M1)   0 
TestIndciatorTicks (EURUSD,M1)   2019.02 . 01 23 : 31 : 04 
TestIndciatorTicks (EURUSD,M1)   1 
TestIndciatorTicks (EURUSD,M1)   0 
TestIndciatorTicks (EURUSD,M1)   2019.02 . 01 23 : 31 : 05 
TestIndciatorTicks (EURUSD,M1)   1 
TestIndciatorTicks (EURUSD,M1)   0 
TestIndciatorTicks (EURUSD,M1)   2019.02 . 01 23 : 31 : 06 
TestIndciatorTicks (EURUSD,M1)   1 
TestIndciatorTicks (EURUSD,M1)   0 
TestIndciatorTicks (EURUSD,M1)   2019.02 . 01 23 : 31 : 07 
TestIndciatorTicks (EURUSD,M1)   1 
TestIndciatorTicks (EURUSD,M1)   0 
TestIndciatorTicks (EURUSD,M1)   2019.02 . 01 23 : 31 : 08 
TestIndciatorTicks (EURUSD,M1)   1 
TestIndciatorTicks (EURUSD,M1)   0 
TestIndciatorTicks (EURUSD,M1)   2019.02 . 01 23 : 31 : 09 
TestIndciatorTicks (EURUSD,M1)   1 
TestIndciatorTicks (EURUSD,M1)   0 
TestIndciatorTicks (EURUSD,M1)   2019.02 . 01 23 : 32 : 00 
TestIndciatorTicks (EURUSD,M1)   1 
TestIndciatorTicks (EURUSD,M1)   5032 

확인해주십시오.

 
jaffer wilson :

나는 이것을 계속 얻는다:

확인해주십시오.

오류 5032는 어디에서 왔습니까?

틱 삭제 후 사용자 지정 기록 삭제는 어디에 있습니까?

틱 추가 확인은 어디에 있습니까? OnInit에 틱을 추가한 후 몇 개의 히스토리 막대가 생성되었습니까?

CustomTicksAdd가 CustomTicksReplace가 아닌 OnInit에서 사용되는 이유는 무엇입니까?


추신. 틱은 MarketWatch에서 올바르게 수신되지만 기록 차트에는 적용되지 않습니다. 우리는 이해한다.

 
Slava :

추신. 틱은 MarketWatch에서 올바르게 수신되지만 기록 차트에는 적용되지 않습니다. 우리는 이해한다.

따라서 번호가 매겨진 버그의이 지점에서 적절하게.

 

Slava :

추신. 틱은 MarketWatch에서 올바르게 수신되지만 기록 차트에는 적용되지 않습니다. 우리는 이해한다.

현재 날짜가 아니므로 적용하지 마십시오. 사실 반년 전

 
Slava :

현재 날짜가 아니므로 적용하지 마십시오. 사실 반년 전

나는 추가 검사와 함께 프로그램을 시도했습니다. 여전히 같은 문제가 있습니다.

 #property   indicator_chart_window
#property   indicator_buffers    1
#property   indicator_plots    1
#include   < Symbol .mqh>
input    datetime start_date = D'2019.10.7 00:00:00 ' ;
input    int Chops = 10 ;
int data_filled = 0 ;
string symbol_custom = StringFormat ( "% s_% dsec" , _Symbol , Chops);
long chart_id = 0 ;
datetime start;
void    OnInit ()
  {
   ResetLastError ();
// CustomSymbolDelete (symbol_custom);
   start = start_date- 60 ;
   Print ( "Ticks History Deleted:" , CustomTicksDelete (symbol_custom, 0 , LONG_MAX ));
   data_filled = 0 ;

   const SYMBOL SYMB(symbol_custom);
   SYMB.CloneProperties( _Symbol );
   SYMB.On();
   MqlTick ticks_add [];
   int len = CopyTicksRange ( _Symbol , ticks_add, COPY_TICKS_INFO , ulong (start_date) * 1000 , ulong ( TimeCurrent ()) * 1000 );
   Print ( "Ticks:" , len);
   start = start - (len * 60 );
   Print ( "Start Date:" , start);
   for ( int i = 0 ; i <len &&! IsStopped (); i ++)
     {
       if (data_filled% Chops == 0 )
        {
         start = start + 60 ;
         start = datetime ( TimeToString (start, TIME_DATE ) + "" + TimeToString (start, TIME_MINUTES ) + ": 00" );
        }
       else
        {
         start ++;
        }
      ticks_add [i] .time = start;
      ticks_add [i] .time_msc = long (ticks_add [i] .time) * 1000 ;
      data_filled ++;
     }
   if (SYMB.CloneTicks(ticks_add)< 1 )
     {
       Print ( "Ticks cannot be replaced : " , GetLastError ());
       if ( CustomTicksAdd (symbol_custom, ticks_add)< 1 )
        {
         Print ( "Ticks Cannot be added : " , GetLastError ());
        }
     }

   chart_id = ChartOpen (symbol_custom, _Period );
   Print ( GetLastError ());
   ResetLastError ();
  }
void    OnDeinit ( const    int r)
  {
   if (chart_id!= 0 )
     {
       ChartClose (chart_id);
     }
   return ;
  }
// + ----------------------------------------------- ------------------- +
// + --------------------------- --------------------------------------- +
// | Custom indicator iteration function |
// + ----------------------------------------------- ------------------- +
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 [])
  {
   if (rates_total <= 0 )
       return    0 ;
   MqlTick ticks [ 1 ];
   CopyTicks ( _Symbol , ticks, COPY_TICKS_INFO , ulong ( TimeCurrent ()) * 1000 , 1 );
   if (data_filled% Chops == 0 )
     {
      start = start + 60 ;
      start = datetime ( TimeToString (start, TIME_DATE ) + "" + TimeToString (start, TIME_MINUTES ) + ": 00" );
     }
   else
     {
      start ++;
     }
   Print (start, "  " ,rates_total);
   ticks [ 0 ] .time = start;
   ticks [ 0 ] .time_msc = long (start) * 1000 ;
   data_filled ++;

   if ( CustomTicksAdd (symbol_custom, ticks)< 1 )
     {
       Print ( "Tick not added : " , GetLastError ());
     }
   return (rates_total);
  }
//+------------------------------------------------------------------+

TestIndciatorTicks (EURUSD,M1)  Ticks History Deleted: 0
TestIndciatorTicks (EURUSD,M1)  Ticks: 34877
TestIndciatorTicks (EURUSD,M1)  Start Date: 2019.09 . 19 18 : 42 : 00
TestIndciatorTicks (EURUSD,M1)  Ticks cannot be replaced : 0
TestIndciatorTicks (EURUSD,M1)  Ticks Cannot be added : 5310
TestIndciatorTicks (EURUSD,M1)   5310
TestIndciatorTicks (EURUSD,M1)   2019.09 . 01 23 : 50 : 07    7468145
TestIndciatorTicks (EURUSD,M1)   2019.09 . 01 23 : 50 : 08    7468145
TestIndciatorTicks (EURUSD,M1)   2019.09 . 01 23 : 50 : 09    7468145
TestIndciatorTicks (EURUSD,M1)   2019.09 . 01 23 : 51 : 00    7468145
TestIndciatorTicks (EURUSD,M1)   2019.09 . 01 23 : 51 : 01    7468145
TestIndciatorTicks (EURUSD,M1)   2019.09 . 01 23 : 51 : 02    7468146
TestIndciatorTicks (EURUSD,M1)   2019.09 . 01 23 : 51 : 03    7468146
TestIndciatorTicks (EURUSD,M1)   2019.09 . 01 23 : 51 : 04    7468146
TestIndciatorTicks (EURUSD,M1)   2019.09 . 01 23 : 51 : 05    7468146
TestIndciatorTicks (EURUSD,M1)   2019.09 . 01 23 : 51 : 06    7468146
TestIndciatorTicks (EURUSD,M1)   2019.09 . 01 23 : 51 : 07    7468146
TestIndciatorTicks (EURUSD,M1)   2019.09 . 01 23 : 51 : 08    7468146
TestIndciatorTicks (EURUSD,M1)   2019.09 . 01 23 : 51 : 09    7468146
TestIndciatorTicks (EURUSD,M1)   2019.09 . 01 23 : 52 : 00    7468146
TestIndciatorTicks (EURUSD,M1)   2019.09 . 01 23 : 52 : 01    7468146
TestIndciatorTicks (EURUSD,M1)   2019.09 . 01 23 : 52 : 02    7468146
TestIndciatorTicks (EURUSD,M1)   2019.09 . 01 23 : 52 : 03    7468146
TestIndciatorTicks (EURUSD,M1)   2019.09 . 01 23 : 52 : 04    7468146
TestIndciatorTicks (EURUSD,M1)   2019.09 . 01 23 : 52 : 05    7468146
TestIndciatorTicks (EURUSD,M1)   2019.09 . 01 23 : 52 : 06    7468146
TestIndciatorTicks (EURUSD,M1)   2019.09 . 01 23 : 52 : 07    7468146
TestIndciatorTicks (EURUSD,M1)   2019.09 . 01 23 : 52 : 08    7468146
TestIndciatorTicks (EURUSD,M1)   2019.09 . 01 23 : 52 : 09    7468146

어떻게 해야 하는지 알려주세요.

 

현재로서는 오늘이 아닌(어제, 어제, 작년 등) 요일의 눈금으로 사용자 지정 악기의 막대를 형성할 수 없습니다.

하지만. 수정했습니다.

CustomTicksReplace를 사용할 때(CustomTicksAdd가 아님! CustomTicksAdd를 사용하여 틱을 대량 추가하지 않음) 이전에 오늘에 대한 틱이 없었다면 추가된 틱의 마지막 날이 "현재"가 됩니다.

다음 빌드를 기다리십시오. 그런 다음 실험과 토론을 계속할 것입니다.

 
Slava :

현재로서는 오늘이 아닌(어제, 어제, 작년 등) 요일의 눈금으로 사용자 지정 악기의 막대를 형성할 수 없습니다.

하지만. 수정했습니다.

CustomTicksReplace를 사용할 때(CustomTicksAdd가 아님! CustomTicksAdd를 사용하여 틱을 대량 추가하지 않음) 이전에 오늘에 대한 틱이 없었다면 추가된 틱의 마지막 날이 "현재"가 됩니다.

다음 빌드를 기다리십시오. 그런 다음 실험과 토론을 계속할 것입니다.

고마워, 슬라바. 기다릴게.