[UYARI, KONU KAPALI!] Forumu kirletmemek için herhangi bir acemi sorusu. Profesyonel, kaçırmayın. Sensiz hiçbir yerde. - sayfa 250

 
AndBar >> :
Zdravstvyjte, vopros k znatokam. Est lu fynktsuya v mql4 kotoraya provenyala bu ne zanyat lu torgovuj potok ( okralı na otsulky orderov ) v termunale, bir to ya proveryayu cherz globalnue peremennue v kotorue zanoshy danue ne zanyat lu potok. Zaranee spasubo.

IsTradeContextMeşgul()

İşte durum kontrol fonksiyonları. https://docs.mql4.com/ru/check

PS Ben bir uzman değilim. :(

 

Goldtrader'a: spasubo.


U eshche sorular:


Pru testurovanuu, razresheno testerom zaburat sovetnuky dannue uz kakovo nubyd fajla?,


Zaranee spasubo.

 
AndBar писал(а) >>

Goldtrader'a: spasubo.

U eshche sorular:

Pru testurovanuu, razresheno testerom zaburat sovetnuky dannue uz kakovo nubyd fajla?,

Zaranee spasubo.

EA, diğer araçlara ve zaman dilimlerine doğrudan erişebilir. Dosya kullanmak gerekli değildir. Her şeyi onunla yapabilmenize rağmen (dosya).

 
Vinin >> :

EA, diğer araçlara ve zaman dilimlerine doğrudan erişebilir. Dosya kullanmak gerekli değildir. Her şeyi onunla yapabilmenize rağmen (dosya).

Bolshoe spasubo, poprobyem chto uz etogo polychutsya.

 

Yardım SMA çizmez!!!

 //+------------------------------------------------------------------+
//|                                                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 ) ;
   }
//+------------------------------------------------------------------+
neyi özledin? Teşekkür ederim.
 
costy_ писал(а) >>

Yardım SMA çizmez!!!

neyi özledin? Teşekkür ederim.

Ve çizmek için hiçbir şey yapmadın.

 
Roger >> :

Ve çizmek için hiçbir şey yapmadın.

Peki, tam olarak ne...

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

Yardım SMA çizmez!!!

neyi özledin? Teşekkür ederim.

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


Prumera için:


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 byfer dlya rusovanuya lunuu v bydj kakom prostom unduke, u vse voprosu otpadyt


Prumera için:


Teşekkür ederim!

 //+------------------------------------------------------------------+
//|                                                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 ) ;
   }
//+------------------------------------------------------------------+

olmalı ama hayır :(
 

Ana ve sinyal hatlarının ters kesişiminde çıkış nasıl düzgün şekilde programlanır? aksi taktirde kısa sürelerde sinyaller alınır..ve siparişler olması gereken yerde kapatılmaz..

Bu soru uzun zamandır beni rahatsız ediyor! YARDIM!

İşte çıkış koşulu:

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 ;
        }