[경고, 주제 닫힘!] 포럼을 어지럽히지 않도록 모든 초보자 질문. 프로, 놓치지 마세요. 당신 없이는 어디에도 없습니다. - 페이지 250

 
AndBar >> :
Zdravstvyjte, vopros k znatokam. Est lu fynktsuya v mql4 kotoraya Provryala bu ne zanyat lu torgovuj potok ( ochered na otsulky orderov ) v termunale, a to ya proryayu cherz globalnue peremennue v kotorue zanoshy danue neokzanyat lu pot 자라니 스파스보.

IsTradeContextBusy()

다음은 상태 확인 기능입니다. https://docs.mql4.com/ru/check

추신: 저는 전문가가 아닙니다. :(

 

금상사에게 : spasubo.


U esche 질문:


Pru testurovanuu, razresheno testerom zaburat sovetnuky dannue uz kakovo nubyd fajla?, (hochy prorut na profutnost odny multuvalyutnyuyu strateguyu)


자라니 스파스보.

 
AndBar писал(а) >>

금상사에게 : spasubo.

U esche 질문:

Pru testurovanuu, razresheno testerom zaburat sovetnuky dannue uz kakovo nubyd fajla?, (hochy prorut na profutnost odny multuvalyutnyuyu strateguyu)

자라니 스파스보.

EA는 다른 도구와 기간에 직접 액세스할 수 있습니다. 파일을 사용할 필요는 없습니다. 그것을 통해 모든 것을 할 수 있지만 (파일).

 
Vinin >> :

EA는 다른 도구와 기간에 직접 액세스할 수 있습니다. 파일을 사용할 필요는 없습니다. 그것을 통해 모든 것을 할 수 있지만 (파일).

Bolshoe spasubo, poprobyem chto uz etogo polychutsya.

 

도움말 산업 SMA를 그리지 않습니다!!!

 //+------------------------------------------------------------------+
//|                                                maalert  sma.mq4 |
//|                      Copyright © 2009, MetaQuotes Software Corp. |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2009, MetaQuotes Software Corp."
#property link       "http://www.metaquotes.net"

#property indicator_chart_window
#property indicator_buffers 8
#property indicator_color1 Red
#property indicator_color2 Red

extern int PeriodMA = 55 ;
extern int METHOD_MA = MODE_SMA ;
extern int X = 1 ;
extern int Limit = 5440 ;
extern string     SoundFileName = "alert.wav" ;
extern bool       ActiveSignal = true ;
extern bool       ActiveAlert = true ;

double maH ;
double maL ;
//+------------------------------------------------------------------+
int init ( )
   {
//---- indicators
   SetIndexStyle ( 0 , DRAW_LINE ) ;
   SetIndexBuffer ( 0 , maH ) ;
   SetIndexStyle ( 1 , DRAW_LINE ) ;
   SetIndexBuffer ( 1 , maL ) ;
   SetIndexLabel ( 0 , "MA" ) ;
//----
   return ( 0 ) ;
   }
//+------------------------------------------------------------------+
int start ( )
   {
//--------------------------------------------------------------
   maL         = iMA ( Symbol ( ) , Period ( ) , PeriodMA * X , 0 , METHOD_MA , PRICE_LOW ,    0 ) ;
   maH         = iMA ( Symbol ( ) , Period ( ) , PeriodMA * X , 0 , METHOD_MA , PRICE_HIGH , 0 ) ;
 //--------------------------------------------------------------
   if ( Bid > maH )
   {
   Alert ( "eu Buy" ) ;
   if ( SoundFileName ! = "" )
         PlaySound ( SoundFileName ) ; } // Звуковой сигнал}
   //----
   
   
   if ( Bid < maL )
   {
   Alert ( "eu Buy" ) ;
   if ( SoundFileName ! = "" )
         PlaySound ( SoundFileName ) ; } // Звуковой сигнал}
   //----
   return ( 0 ) ;
   }
//+------------------------------------------------------------------+
무엇을 놓쳤습니까? 고맙습니다.
 
costy_ писал(а) >>

도움말 산업 SMA를 그리지 않습니다!!!

무엇을 놓쳤습니까? 고맙습니다.

그리고 당신은 그림을 그리기 위해 아무것도 하지 않았습니다.

 
Roger >> :

그리고 당신은 그림을 그리기 위해 아무것도 하지 않았습니다.

그래서, 정확히 무엇...

SetIndexDrawBegin(0,0);
,,,
 
costy_ >> :

도움말 산업 SMA를 그리지 않습니다!!!

무엇을 놓쳤습니까? 고맙습니다.

Posmotru kak zanosyatsya danue v 바이퍼 dlya rusovanuya lunuu v bydj kakom prostom unduke, u vse voprosu otpadyt


프루메라의 경우:


double ExtMapBuffer1[];
double ExtMapBuffer2[];
-------------------- 


ExtMapBuffer1[i]
  = iMA ( Symbol ( ) , Period ( ) , PeriodMA * X , 0 , METHOD_MA , PRICE_LOW ,    0 ) ;
ExtMapBuffer2[i]
 = iMA ( Symbol ( ) , Period ( ) , PeriodMA * X , 0 , METHOD_MA , PRICE_HIGH , 0 ) ;

ny u eto vse delo oformu v tsukl

 
AndBar >> :

Posmotru kak zanosyatsya danue v 바이퍼 dlya rusovanuya lunuu v bydj kakom prostom unduke, u vse voprosu otpadyt


프루메라의 경우:


고맙습니다!

 //+------------------------------------------------------------------+
//|                                                maalert  sma.mq4 |
//|                      Copyright © 2009, MetaQuotes Software Corp. |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2009, MetaQuotes Software Corp."
#property link       "http://www.metaquotes.net"

#property indicator_chart_window
#property indicator_buffers 8
#property indicator_color1 Red
#property indicator_color2 Red

extern int PeriodMA = 55 ;
extern int METHOD_MA = MODE_SMA ;
extern int X = 1 ;
extern int Limit = 5440 ;
extern string     SoundFileName = "alert.wav" ;
extern bool       ActiveSignal = true ;
extern bool       ActiveAlert = true ;

double maH [ ] ;
double maL [ ] ;
int i ;
//+------------------------------------------------------------------+
int init ( )
   {
//---- indicators
   SetIndexStyle ( 0 , DRAW_LINE ) ;
   SetIndexBuffer ( 0 , maH [ i ] ) ;
   SetIndexStyle ( 1 , DRAW_LINE ) ;
   SetIndexBuffer ( 1 , maL [ i ] ) ;
   SetIndexLabel ( 0 , "MA" ) ;
//----
   return ( 0 ) ;
   }
//+------------------------------------------------------------------+
int start ( )
   {
//--------------------------------------------------------------
   maL [ i ]          = iMA ( Symbol ( ) , Period ( ) , PeriodMA * X , 0 , METHOD_MA , PRICE_LOW ,    0 ) ;
   maH [ i ]          = iMA ( Symbol ( ) , Period ( ) , PeriodMA * X , 0 , METHOD_MA , PRICE_HIGH , 0 ) ;
 //--------------------------------------------------------------
   if ( Bid > maH [ i ] )
   {
   Alert ( "eu Buy" ) ;
   if ( SoundFileName ! = "" )
         PlaySound ( SoundFileName ) ; } // Звуковой сигнал}
   //----
   
   
   if ( Bid < maL [ i ] )
   {
   Alert ( "eu Buy" ) ;
   if ( SoundFileName ! = "" )
         PlaySound ( SoundFileName ) ; } // Звуковой сигнал}
   //----
   return ( 0 ) ;
   }
//+------------------------------------------------------------------+

그것은해야하지만 아니 :(
 

메인 라인과 신호 라인 의 역 교차점에서 출력을 올바르게 프로그래밍하는 방법은 무엇입니까? 그렇지 않으면 신호가 짧은 시간에 수신되고 .. 상태가 되어야 하는 곳에서 주문이 마감되지 않습니다 ..

이 질문은 오랫동안 나를 괴롭히고 있습니다! 돕다!

다음은 종료 조건입니다.

main_1 = iCustom ( NULL , 0 , "i_Trend" , 0 , 0 ) ; // главная линия на 0м баре
main_2 = iCustom ( NULL , 0 , "i_Trend" , 0 , 1 ) ; // главная линия на 1м баре
signal_1 = iCustom ( NULL , 0 , "i_Trend" , 1 , 0 ) ; // сигнальная линия на 0м баре
signal_2 = iCustom ( NULL , 0 , "i_Trend" , 1 , 1 ) ; // сигнальная линия на 1м баре
//----
   for ( int i = 0 ; i < OrdersTotal ( ) ; i + + )
     {
      if ( OrderSelect ( i , SELECT_BY_POS , MODE_TRADES ) = = false )        break ;
      if ( OrderMagicNumber ( ) ! = MAGICMA | | OrderSymbol ( ) ! = Symbol ( ) ) continue ;
      //---- check order type 
      if ( OrderType ( ) = = OP_BUY )
        {
         if ( main_1 < signal_1 & & ! ( main_2 < signal_2 ) ) OrderClose ( OrderTicket ( ) , OrderLots ( ) , Bid , 3 , White ) ;
         break ;
        }
      if ( OrderType ( ) = = OP_SELL )
        {
         if ( main_1 > signal_1 & & ! ( main_2 > signal_2 ) ) OrderClose ( OrderTicket ( ) , OrderLots ( ) , Ask , 3 , White ) ;
         break ;
        }