오류, 버그, 질문 - 페이지 970

 
Lizar :

이전에는 IsStopped ()가 루핑을 처리하는 데 도움이 되었습니다. 얼마 동안 "영구 루프"는 IsStopped()에 의해 치료되지 않았으며 실제로 작업을 복원하려면 터미널 프로세스 를 종료해야 합니다. 유형 표시기는 문제 없이 차트에서 제거되지만 차트는 중단됩니다.

재미를 위해 특수 루프 표시기를 사용해 볼 수 있습니다. 그런데 그런 경우 예상대로 OnDeinit()는 작동하지 않습니다.

뛰는 것조차 무섭다
 
zfs :
뛰는 것조차 무섭다
그리고 첨부 파일에 있는 내용을 실행할 필요가 없습니다. 확인하고 싶으신 분들을 위한 정보입니다. 그러나 계산이 많은 지표를 사용하면이 순간이 영향을 줄 수 있습니다. 확인해야 합니다.
 

예를 들어 알림을 보내도록 Android 클라이언트에서 MetaTrader 클라이언트로 요청(메시지 보내기)하는 방법

이 연결을 만들기 위해 마음에 떠오르는 유일한 옵션은 사용하지 않은 기호에 대해 보류 중인 주문을 하는 것입니다. 그러면 고문은 이미 그것을 찾아 필요한 정보가 포함된 메시지를 보내고 보류 중인 주문을 삭제합니다 .

 

안녕하세요!

04/19/13 일자 어셈블리에서 디버거는 MqlRate의 내용을 중괄호로 표시하기 시작했습니다. 어떤 MQ 인간 감사합니다! 그러한 데이터 스윙을 공개할 계획이 있습니까? 나무처럼 말이에요. 이것을 클래스로도 확장할 수 있습니다.

고맙습니다!

예를 들어:

CAbstractFilter{ meSS:CStrategySettings{ meEntrancePeriod:PERIOD_M15 meHistoryDepth:100 meSymbol:"EURUSD" meHistoryRates:[100] meRangeLimit:0.2 meHiLo:0.006 meHiLoMax:0.02 meTimeStart00" 06:00" meTimeStart" 종료 07:… }

더 좋습니다:

CA 추상 필터:

+ { meSS:C전략 설정

+ { meEntrancePeriod:PERIOD_M15

meHistoryDepth:100

meSymbol:"EURUSD"

meHistory요금:[100]

meRangeLimit:0.2}

등, Windows 탐색기의 디렉토리 트리 구조 유형에 따라

고맙습니다!

 

다시 안녕!

커서로 이동하는 단계는 디버거에서 매우 유용합니다. 언젠가는 나타나길 바랍니다. 가능한 일정에 대한 의견에 미리 감사드립니다.

고맙습니다!

 

표준 라이브러리를 사용할 때 누가 그런 갈퀴를 밟았습니까?

RF       0        19 : 42 : 38         Trades   '1001326' : exchange sell 1.00 ED- 6.13 at market placed for execution
RJ       0        19 : 42 : 38         Trades   '1001326' : deal # 204868 sell 1.00 ED- 6.13 at 1.3058 done (based on order # 2946444 )
OQ       0        20 : 30 : 54         Trades   '1001326' : exchange buy 1.00 ED- 6.13 at market
DJ       0        20 : 30 : 55         Trades   '1001326' : exchange buy 1.00 ED- 6.13 at market placed for execution
FF       0        20 : 30 : 55         Trades   '1001326' : exchange buy 1.00 ED- 6.13 at market
DO       0        20 : 30 : 55         Trades   '1001326' : deal # 204952 buy 1.00 ED- 6.13 at 1.3054 done (based on order # 2946510 )
FK       0        20 : 30 : 55         Trades   '1001326' : exchange buy 1.00 ED- 6.13 at market placed for execution
HG       0        20 : 30 : 55         Trades   '1001326' : deal # 204953 buy 1.00 ED- 6.13 at 1.3054 done (based on order # 2946511 )
LO       0        20 : 30 : 55         Trades   '1001326' : exchange sell 1.00 ED- 6.13 at market
NS       0        20 : 30 : 55         Trades   '1001326' : exchange sell 1.00 ED- 6.13 at market placed for execution
NK       0        20 : 30 : 55         Trades   '1001326' : exchange sell 1.00 ED- 6.13 at market
LN       0        20 : 30 : 55         Trades   '1001326' : deal # 204954 sell 1.00 ED- 6.13 at 1.3052 done (based on order # 2946512 )
OR       0        20 : 30 : 56         Trades   '1001326' : exchange sell 1.00 ED- 6.13 at market placed for execution
EG       0        20 : 30 : 56         Trades   '1001326' : deal # 204955 sell 1.00 ED- 6.13 at 1.3052 done (based on order # 2946513 )
ME       0        20 : 30 : 56         Trades   '1001326' : exchange buy 1.00 ED- 6.13 at market
IN       0        20 : 30 : 56         Trades   '1001326' : exchange buy 1.00 ED- 6.13 at market placed for execution
OI       0        20 : 30 : 56         Trades   '1001326' : exchange buy 1.00 ED- 6.13 at market
JS       0        20 : 30 : 56         Trades   '1001326' : deal # 204956 buy 1.00 ED- 6.13 at 1.3055 done (based on order # 2946514 )
GO       0        20 : 30 : 56         Trades   '1001326' : exchange buy 1.00 ED- 6.13 at market placed for execution
NJ       0        20 : 30 : 56         Trades   '1001326' : deal # 204957 buy 1.00 ED- 6.13 at 1.3055 done (based on order # 2946515 )
JD       0        20 : 30 : 57         Trades   '1001326' : exchange sell 1.00 ED- 6.13 at market
PO       0        20 : 30 : 57         Trades   '1001326' : exchange sell 1.00 ED- 6.13 at market placed for execution
HP       0        20 : 30 : 57         Trades   '1001326' : exchange sell 1.00 ED- 6.13 at market
JJ       0        20 : 30 : 57         Trades   '1001326' : deal # 204958 sell 1.00 ED- 6.13 at 1.3052 done (based on order # 2946516 )
DM       0        20 : 30 : 57         Trades   '1001326' : exchange sell 1.00 ED- 6.13 at market placed for execution
RS       0        20 : 30 : 57         Trades   '1001326' : deal # 204959 sell 1.00 ED- 6.13 at 1.3052 done (based on order # 2946517 )
JI       0        20 : 30 : 57         Trades   '1001326' : exchange buy 1.00 ED- 6.13 at market
GS       0        20 : 30 : 58         Trades   '1001326' : exchange buy 1.00 ED- 6.13 at market placed for execution
IM       0        20 : 30 : 58         Trades   '1001326' : exchange buy 1.00 ED- 6.13 at market
OF       0        20 : 30 : 58         Trades   '1001326' : deal # 204960 buy 1.00 ED- 6.13 at 1.3055 done (based on order # 2946518 )
ID       0        20 : 30 : 58         Trades   '1001326' : exchange buy 1.00 ED- 6.13 at market placed for execution
KN       0        20 : 30 : 58         Trades   '1001326' : deal # 204961 buy 1.00 ED- 6.13 at 1.3055 done (based on order # 2946519 )
OP       0        20 : 30 : 58         Trades   '1001326' : exchange sell 1.00 ED- 6.13 at market
QJ       0        20 : 30 : 58         Trades   '1001326' : exchange sell 1.00 ED- 6.13 at market placed for execution
QL       0        20 : 30 : 58         Trades   '1001326' : exchange sell 1.00 ED- 6.13 at market
KG       0        20 : 30 : 58         Trades   '1001326' : deal # 204962 sell 1.00 ED- 6.13 at 1.3052 done (based on order # 2946520 )
NI       0        20 : 30 : 59         Trades   '1001326' : exchange sell 1.00 ED- 6.13 at market placed for execution
DO       0        20 : 30 : 59         Trades   '1001326' : deal # 204963 sell 1.00 ED- 6.13 at 1.3052 done (based on order # 2946521 )
PM       0        20 : 30 : 59         Trades   '1001326' : exchange buy 1.00 ED- 6.13 at market
DG       0        20 : 30 : 59         Trades   '1001326' : exchange buy 1.00 ED- 6.13 at market placed for execution
NQ       0        20 : 30 : 59         Trades   '1001326' : exchange buy 1.00 ED- 6.13 at market
GJ       0        20 : 30 : 59         Trades   '1001326' : deal # 204964 buy 1.00 ED- 6.13 at 1.3055 done (based on order # 2946522 )
FH       0        20 : 30 : 59         Trades   '1001326' : exchange buy 1.00 ED- 6.13 at market placed for execution
KR       0        20 : 30 : 59         Trades   '1001326' : deal # 204965 buy 1.00 ED- 6.13 at 1.3055 done (based on order # 2946523 )
OL       0        20 : 31 : 00         Trades   '1001326' : exchange sell 1.00 ED- 6.13 at market
IF       0        20 : 31 : 00         Trades   '1001326' : exchange sell 1.00 ED- 6.13 at market placed for execution
QH       0        20 : 31 : 00         Trades   '1001326' : exchange sell 1.00 ED- 6.13 at market
CS       0        20 : 31 : 00         Trades   '1001326' : deal # 204966 sell 1.00 ED- 6.13 at 1.3052 done (based on order # 2946524 )
ME       0        20 : 31 : 00         Trades   '1001326' : exchange sell 1.00 ED- 6.13 at market placed for execution
KK       0        20 : 31 : 00         Trades   '1001326' : deal # 204967 sell 1.00 ED- 6.13 at 1.3052 done (based on order # 2946525 )
PP       0        20 : 31 : 01         Trades   '1001326' : exchange buy 1.00 ED- 6.13 at market
DK       0        20 : 31 : 01         Trades   '1001326' : exchange buy 1.00 ED- 6.13 at market placed for execution
FE       0        20 : 31 : 01         Trades   '1001326' : exchange buy 1.00 ED- 6.13 at market
ON       0        20 : 31 : 01         Trades   '1001326' : deal # 204968 buy 1.00 ED- 6.13 at 1.3055 done (based on order # 2946526 )
FL       0        20 : 31 : 01         Trades   '1001326' : exchange buy 1.00 ED- 6.13 at market placed for execution
KF       0        20 : 31 : 01         Trades   '1001326' : deal # 204969 buy 1.00 ED- 6.13 at 1.3055 done (based on order # 2946527 )
LH       0        20 : 31 : 01         Trades   '1001326' : exchange sell 1.00 ED- 6.13 at market
KR       0        20 : 31 : 02         Trades   '1001326' : exchange sell 1.00 ED- 6.13 at market placed for execution
KD       0        20 : 31 : 02         Trades   '1001326' : exchange sell 1.00 ED- 6.13 at market
HO       0        20 : 31 : 02         Trades   '1001326' : deal # 204970 sell 1.00 ED- 6.13 at 1.3052 done (based on order # 2946528 )
OQ       0        20 : 31 : 02         Trades   '1001326' : exchange sell 1.00 ED- 6.13 at market placed for execution
PD       0        20 : 31 : 02         Trades   '1001326' : deal # 204971 sell 1.00 ED- 6.13 at 1.3052 done (based on order # 2946529 )
MD       0        20 : 31 : 02         Trades   '1001326' : exchange buy 1.00 ED- 6.13 at market
IO       0        20 : 31 : 02         Trades   '1001326' : exchange buy 1.00 ED- 6.13 at market placed for execution
OH       0        20 : 31 : 02         Trades   '1001326' : exchange buy 1.00 ED- 6.13 at market
JR       0        20 : 31 : 02         Trades   '1001326' : deal # 204972 buy 1.00 ED- 6.13 at 1.3055 done (based on order # 2946530 )
GP       0        20 : 31 : 02         Trades   '1001326' : exchange buy 1.00 ED- 6.13 at market placed for execution
MM       0        20 : 31 : 03         Trades   '1001326' : deal # 204973 buy 1.00 ED- 6.13 at 1.3055 done (based on order # 2946531 )
JE       0        20 : 31 : 03         Trades   '1001326' : exchange sell 1.00 ED- 6.13 at market
PN       0        20 : 31 : 03         Trades   '1001326' : exchange sell 1.00 ED- 6.13 at market placed for execution
HQ       0        20 : 31 : 03         Trades   '1001326' : exchange sell 1.00 ED- 6.13 at market
RK       0        20 : 31 : 03         Trades   '1001326' : deal # 204974 sell 1.00 ED- 6.13 at 1.3052 done (based on order # 2946532 )
DL       0        20 : 31 : 03         Trades   '1001326' : exchange sell 1.00 ED- 6.13 at market placed for execution
GP       0        20 : 31 : 03         Trades   '1001326' : deal # 204975 sell 1.00 ED- 6.13 at 1.3051 done (based on order # 2946533 )
CH       0        20 : 31 : 04         Trades   '1001326' : exchange buy 1.00 ED- 6.13 at market
OD       0        20 : 31 : 04         Trades   '1001326' : exchange buy 1.00 ED- 6.13 at market placed for execution
NN       0        20 : 31 : 04         Trades   '1001326' : deal # 204976 buy 1.00 ED- 6.13 at 1.3055 done (based on order # 2946534 )

Expert Advisor가 먼저 포지션 유형을 확인하는 것을 확인하지만 하나의 SELL 포지션을 청산하려고 했습니다.

 if ( PositionSelect ( _Symbol ) && PositionGetInteger ( POSITION_TYPE )== POSITION_TYPE_SELL )
        {
         trade.PositionClose( _Symbol );

        }

그 결과 지원서가 빨리 채워지는 지경에 이르기까지 포지션 반전을 많이 받았다.

300ms 슬립으로 반복되는 전문가 코드

결과는 100 루블입니다.

Как использовать торговые классы Стандартной библиотеки при написании советника
Как использовать торговые классы Стандартной библиотеки при написании советника
  • 2010.11.10
  • Samuel
  • www.mql5.com
В статье рассказывается о том, как использовать основной функционал торговых классов Стандартной библиотеки при написании советников, в которых применяется открытие, закрытие и модификация позиции, проверка свободной маржи перед размещением торговых ордеров, размещение и удаление отложенных ордеров. Показано, как использовать торговые классы для получения свойств ордеров и сделок.
 
olyakish :

누가 그런 갈퀴를 밟았습니까?

갈퀴는 MT5 비동기의 본질을 반영하기 때문에 라이브러리에 없습니다.

이전 주문 실행에 대한 응답을 받을 때까지 새 주문을 차단하지 않았기 때문에 갈퀴가 코드에 있습니다.

MT5에서는 MT4에서와 같이 보낸 주문에 대해 Trade Context Busy와 유사한 것을 구성해야 합니다.

즉, 이전 주문의 실행에 대한 보고서를 볼 때까지 유사한 주문을 보내려는 새로운 시도를 해서는 됩니다.

catch 실행은 OnTrade 또는 OnTradeTransaction 에 있어야 합니다.

행운을 빕니다. ;)

 

나는 완전하다고 느낀다.

지표의 변수에 값을 할당합니다.

 #property indicator_separate_window

...

int x; //

int OnInit ()

{

}

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 (prev_calculated== 0 ){

//при 1-м запуске присваиваю значение

x=у;//у!= 7558445

}

else

{

Print (x); //здесь x уже =7558445.

}

}

그리고 내가 뭘 잘못하고 있니?

 
하지만 지금은 코드가 변경되지 않았지만 괜찮습니다. 방금 터미널을 다시 시작했습니다. 그리고 이 버그는 앞서 이야기한 히스토그램이 사라지는 것과 관련이 있다가 나타났다가 사라진다. 그것보다 발생할 수 있습니까?
 
sergeev :

갈퀴는 MT5 비동기의 본질을 반영하기 때문에 라이브러리에 없습니다.

이전 주문 실행에 대한 응답을 받을 때까지 새 주문을 차단하지 않았기 때문에 갈퀴가 코드에 있습니다.

MT5에서는 MT4에서와 같이 보낸 주문에 대해 Trade Context Busy와 유사한 것을 구성해야 합니다.

즉, 이전 주문의 실행에 대한 보고서를 볼 때까지 유사한 주문을 보내려는 새로운 시도를 해서는 됩니다.

catch 실행은 OnTrade 또는 OnTradeTransaction에 있어야 합니다.

행운을 빕니다. ;)

예, 이미 추가 분석을해야한다고 생각했습니다. 내 추측을 확인해주셔서 감사합니다