[ARCHIVE] 포럼을 어지럽히 지 않도록 초보자 질문. 프로, 놓치지 마세요. 너 없이는 아무데도 - 3. - 페이지 218

 
Shniperson :

안녕하세요! 많은 양의 코드와 작업을 수행하는 Expert Advisors는 약간 느려진다는 사실.

Min은 트랜잭션 추적을 위해 로봇에 큰 블록을 가지고 있습니다... 이 블록이 별도의 권고로 제거되고 첫 번째 권고에서 제거되면 광산은 동시에 2명의 고문을 갖게 됩니다... 더 빨리 작동합니까? 이것? 즉, 거래에 대한 결정을 내리는 것이 더 빠를 것인가.. 따라서 손절매를 이전하는 결정이 더 빨리 내려질 것인가?

손절매를 추적하기로 한 결정이 아니라 브로커 의 주문 실행 속도가 문제라고 생각합니다. 결정을 내리는 것과 그것을 실현하는 것은 별개입니다.
 
Suliena :

정말 감사합니다! 지역 설정에서 목록 구분 기호를 조정해야 한다는 것이 밝혀졌습니다!!!

나는 지금 2 일 동안 코드에 대해 머리를 긁고 있습니다!

지역 설정을 만지지 마십시오! Excel에는 구분 기호 설정이 있습니다.
 
말해주세요! MACD 변수의 차이를 포인트로 작성하는 방법은 무엇입니까? 예를 들어:
 if ( MACDCurrent-MACDSignal)> 5 * Point    // ??
 

비표준 TF로 변환기를 알려주세요. 그렇지 않으면 검색이 작동하지 않습니다! 고맙습니다!

 
borilunad :

비표준 TF로 변환기를 알려주세요. 그렇지 않으면 검색이 작동하지 않습니다! 고맙습니다!

 Period_Converter.mq4
 //|                 Copyright © 2005-2007, MetaQuotes Software Corp. |
 //|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2007, MetaQuotes Software Corp."
#property link       "http://www.metaquotes.net"
#property show_inputs
#include <WinUser32.mqh>

extern int ExtPeriodMultiplier= 5 ; // new period multiplier factor
int         ExtHandle=- 1 ;
//+------------------------------------------------------------------+
//| script program start function                                    |
//+------------------------------------------------------------------+
int start()
  {
   int     i, start_pos, i_time, time0, last_fpos, periodseconds;
   double d_open, d_low, d_high, d_close, d_volume, last_volume;
   int     hwnd= 0 ,cnt= 0 ;
//---- History header
   int      version = 400 ;
   string c_copyright;
   string c_symbol= Symbol ();
   int     i_period= Period ()*ExtPeriodMultiplier;
   int     i_digits= Digits ;
   int     i_unused[ 13 ];
//----  
   ExtHandle= FileOpenHistory (c_symbol+i_period+ ".hst" , FILE_BIN | FILE_WRITE );
   if (ExtHandle < 0 ) return (- 1 );
//---- write history file header
   c_copyright= "(C)opyright 2003, MetaQuotes Software Corp." ;
   FileWriteInteger (ExtHandle, version , LONG_VALUE);
   FileWriteString (ExtHandle, c_copyright, 64 );
   FileWriteString (ExtHandle, c_symbol, 12 );
   FileWriteInteger (ExtHandle, i_period, LONG_VALUE);
   FileWriteInteger (ExtHandle, i_digits, LONG_VALUE);
   FileWriteInteger (ExtHandle, 0 , LONG_VALUE);       //timesign
   FileWriteInteger (ExtHandle, 0 , LONG_VALUE);       //last_sync
   FileWriteArray (ExtHandle, i_unused, 0 , 13 );
//---- write history file
   periodseconds=i_period* 60 ;
   start_pos= Bars - 1 ;
   d_open=Open[start_pos];
   d_low=Low[start_pos];
   d_high=High[start_pos];
   d_volume=Volume[start_pos];
   //---- normalize open time
   i_time=Time[start_pos]/periodseconds;
   i_time*=periodseconds;
   for (i=start_pos- 1 ;i>= 0 ; i--)
     {
      time0=Time[i];
       //---- history may be updated
       if (i== 0 )
        {
         //---- modify index if history was updated
         if ( RefreshRates ())
            i= iBarShift ( NULL , 0 ,time0);
        }
       //----
       if (time0>=i_time+periodseconds || i== 0 )
        {
         if (i== 0 && time0<i_time+periodseconds)
           {
            d_volume+=Volume[ 0 ];
             if (Low[ 0 ]<d_low)   d_low=Low[ 0 ];
             if (High[ 0 ]>d_high) d_high=High[ 0 ];
            d_close=Close[ 0 ];
           }
         last_fpos= FileTell (ExtHandle);
         last_volume=Volume[i];
         FileWriteInteger (ExtHandle, i_time, LONG_VALUE);
         FileWriteDouble (ExtHandle, d_open, DOUBLE_VALUE);
         FileWriteDouble (ExtHandle, d_low, DOUBLE_VALUE);
         FileWriteDouble (ExtHandle, d_high, DOUBLE_VALUE);
         FileWriteDouble (ExtHandle, d_close, DOUBLE_VALUE);
         FileWriteDouble (ExtHandle, d_volume, DOUBLE_VALUE);
         FileFlush (ExtHandle);
         cnt++;
         if (time0>=i_time+periodseconds)
           {
            i_time=time0/periodseconds;
            i_time*=periodseconds;
            d_open=Open[i];
            d_low=Low[i];
            d_high=High[i];
            d_close=Close[i];
            d_volume=last_volume;
           }
        }
       else
        {
         d_volume+=Volume[i];
         if (Low[i]<d_low)   d_low=Low[i];
         if (High[i]>d_high) d_high=High[i];
         d_close=Close[i];
        }
     } 
   FileFlush (ExtHandle);
   Print (cnt, " record(s) written" );
//---- collect incoming ticks
   int last_time=LocalTime()- 5 ;
   while ( IsStopped ()==false)
     {
       int cur_time=LocalTime();
       //---- check for new rates
       if ( RefreshRates ())
        {
         time0=Time[ 0 ];
         FileSeek (ExtHandle,last_fpos, SEEK_SET );
         //---- is there current bar?
         if (time0<i_time+periodseconds)
           {
            d_volume+=Volume[ 0 ]-last_volume;
            last_volume=Volume[ 0 ]; 
             if (Low[ 0 ]<d_low) d_low=Low[ 0 ];
             if (High[ 0 ]>d_high) d_high=High[ 0 ];
            d_close=Close[ 0 ];
           }
         else
           {
             //---- no, there is new bar
            d_volume+=Volume[ 1 ]-last_volume;
             if (Low[ 1 ]<d_low) d_low=Low[ 1 ];
             if (High[ 1 ]>d_high) d_high=High[ 1 ];
             //---- write previous bar remains
             FileWriteInteger (ExtHandle, i_time, LONG_VALUE);
             FileWriteDouble (ExtHandle, d_open, DOUBLE_VALUE);
             FileWriteDouble (ExtHandle, d_low, DOUBLE_VALUE);
             FileWriteDouble (ExtHandle, d_high, DOUBLE_VALUE);
             FileWriteDouble (ExtHandle, d_close, DOUBLE_VALUE);
             FileWriteDouble (ExtHandle, d_volume, DOUBLE_VALUE);
            last_fpos= FileTell (ExtHandle);
             //----
            i_time=time0/periodseconds;
            i_time*=periodseconds;
            d_open=Open[ 0 ];
            d_low=Low[ 0 ];
            d_high=High[ 0 ];
            d_close=Close[ 0 ];
            d_volume=Volume[ 0 ];
            last_volume=d_volume;
           }
         //----
         FileWriteInteger (ExtHandle, i_time, LONG_VALUE);
         FileWriteDouble (ExtHandle, d_open, DOUBLE_VALUE);
         FileWriteDouble (ExtHandle, d_low, DOUBLE_VALUE);
         FileWriteDouble (ExtHandle, d_high, DOUBLE_VALUE);
         FileWriteDouble (ExtHandle, d_close, DOUBLE_VALUE);
         FileWriteDouble (ExtHandle, d_volume, DOUBLE_VALUE);
         FileFlush (ExtHandle);
         //----
         if (hwnd== 0 )
           {
            hwnd= WindowHandle ( Symbol (),i_period);
             if (hwnd!= 0 ) Print ( "Chart window detected" );
           }
         //---- refresh window not frequently than 1 time in 2 seconds
         if (hwnd!= 0 && cur_time-last_time>= 2 )
           {
            PostMessageA(hwnd,WM_COMMAND, 33324 , 0 );
            last_time=cur_time;
           }
        }
       Sleep ( 50 ); 
     }      
//----
   return ( 0 );
  }
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
void deinit()
  {
   if (ExtHandle>= 0 ) { FileClose (ExtHandle); ExtHandle=- 1 ; }
  }
//+------------------------------------------------------------------+
TF나 심볼을 만들 때 오프라인 차트처럼 연결합니다. 저것들. 파일 -> 오프라인 열기...
 
avatara :
TF나 심볼을 만들 때 오프라인 차트처럼 연결합니다. 저것들. 파일 -> 오프라인 열기...


감사해요! 하지만 고문을 실행할 수 있는 변환기를 찾고 있습니다!

어떤 주제에서 이에 대한 토론과 CodeBase의 내용이 있었던 걸로 기억합니다.

 

후행 및 손익분기점을 연결하여 손실을 방지하고 코드 조각으로 가져오는 방법은 무엇입니까?

코드 조각을 어딘가에 붙이고 싶었습니다. 네, 네, 이것은 "그의 전략에 따라"

 
borilunad :


감사해요! 하지만 고문을 실행할 수 있는 변환기를 찾고 있습니다!

어떤 주제에서 이에 대한 토론과 CodeBase에 있는 내용이 있었던 것을 기억합니다.

후에.

적의 일정이 표시된 창이 나타날 때. 스크립트는 소스에서 제대로 삐걱거릴 것입니다....

칠면조와 올빼미를 그에게 발사하십시오 (창문 / 일정 블린에서!) - 모든 것이 작동합니다!

;)

 
여러분, "고문"이나 스크립트를 알려주실 수 있습니까 .. 현재(오픈) 거래에 얼마나 많은 포인트와 손실/이익의 돈과 잔액이 있는지 .. 그렇지 않으면 찾을 수 없습니다. 뭔가 나 자신.
 
avatara :

후에.

적의 일정이 표시된 창이 나타날 때. 스크립트는 소스에서 제대로 삐걱거릴 것입니다....

칠면조와 올빼미를 그에게 발사하십시오 (창문 / 일정 블린에서!) - 모든 것이 작동합니다!

;)


감사합니다!

찾아서 코드에 필요한 줄을 추가하고 포함하고, 오프라인에서 제거하고, 주석을 달았습니다. 내일 거래를 해보자.

테스터에서 매개변수를 확인할 수 없는 것은 유감입니다. 데모에서 더 오래 앉아 있어야 합니다.

잘 자!