Bir danışmanı rastgele nasıl bir araya getiririm? - sayfa 20

 

bugün bu işlevi gerçek hayatta test edeceğim

gösterge çizgileri ile FiboPivot_V2

göstergenin kısa bir adını girdiğinizden emin olun - böylece silinir

- Göstergeyi çıkarmazsanız, çizgileri tekrar ayarlayacak ve pozisyon açma tekrarlanacaktır.

fiyatı yakalamak

Dosyalar:
 

işte harika bir gösterge https://www.mql5.com/en/code/26585

fiyat yoğunluğu

danışmanıma

yataydan satın al çalışacak ve SL sayılarından

 input string    t8= "------ NAME Open ------" ;           //
input string    InpHLineBUY          = "(- ВНИЗУ -)" ;   // Name open buy (- ВНИЗУ -)
input string    InpHLineSELL         = "(- ВВЕРХУ -)" ; // Name open sell (- ВВЕРХУ -)
input bool      InpReverse01         = false ;           // Reverse Open - переворот торгового сигнала
input string    short_name           = "INDICATOR" ;     // INDICATOR_SHORTNAME Delete
input string    t9= "------ NAME Close ------" ;         //
input string    InpHLineCloseBUY     = "(- ВНИЗУ -)" ;   // Name Close buy (- ВНИЗУ -)
input string    InpHLineCloseSELL    = "(- ВВЕРХУ -)" ; // Name Close sell (- ВВЕРХУ -)
input bool      InpReverse10         = false ;           // Reverse Close - переворот торгового сигнала
input string    short_name0          = "INDICATOR" ;     // INDICATOR_SHORTNAME Delete
input bool      Inpres               = false ;           // Delete All Indicators
//+------------------------------------------------------------------+

Nesneler listesine gitmeniz ve adı kopyalamanız gerekir. herhangi bir satır veya sayı

veya bu simgeleri SATIN AL ve DURDUR'un alt kısmına ayarlayabilirsiniz - göstergeyi silmemek için

IMEI

Price density
Price density
  • www.mql5.com
Работа индикатора идёт с барами, которые видимы в окне графика.  График разбивается на зоны ("Zone") и в каждой зоне пдсчитывается количество попаданий цен. Принцип расчёта: если цена High или Low попадает в зону, считается, что в этой зоне счётчик попаданий...
 
sesleri düzelttim. açıldığında - kapandığında - denge hedefine ulaştığında.
 
input bool      InpOnlyLimit         = false ;           // Выставить отложенный ордер
input bool      InpOnlystart         = true ;           // Вкл. Buy\Sell

tüm eylemleri birlikte veya ayrı ayrı bekleyen siparişler olarak değiştirebilirsiniz

bekleyen bir emir, bir trol gibi fiyatı takip eder

 sinput string   t3= "------ Варианты ордеров ------" ;   //
input uint      maxLimits            = 1 ;               // Кол-во отложенных.ордеров в сетке в одну сторону
input int       InpPenStep           = 25 ;             // Шаг сетки, пунктов
input string    t4= "------ Trailing ордеров ------" ;   //
input bool      InpStopTrailing      = true ;           // ВКЛ.Trailing отлож.ордеров(ВЫКЛ.если больше 1 в сетке)
input ushort    InpTrailingPenStop   = 25 ;             // Trailing Stop of a Orders. "0" --> off and Trailing Step is not important
input ushort    InpTrailingPenStep   = 5 ;               // Trailing Step of a Orders
input string    t5= "------ в ту же сторону ------" ;     //
input bool      ReverseOne           = false ;           // BUYLIMIT SELLLIMIT
input bool      ReverseOny           = true ;           // BUYSTOP SELLSTOP
input string    t6= "------ на оборот ------" ;           //
input bool      ReverseOne1          = false ;           // SELLLIMIT BUYLIMIT
input bool      ReverseOny1          = false ;           // SELLSTOP BUYSTOP

burada nesne adı benim için çalıştı ve aşağıdaki resimde bekleyen bir sipariş verdi

InkedEURJPYH2_LI

daire içine alınmış nesneye henüz ulaşılmadı - mevcut fiyatın nesnenin altına düşmesini bekliyor

enstantane fotoğraf

şimdi SELLSTOP çalışırsa - yukarıda SATIŞ'ı kapatmak için adlı bir nesne belirledim

ve SELLSTOP çalışmazsa ve fiyat yükselirse, kapanış nesnesi silinecektir.

ve bekleyen sipariş fiyatı takip edecek

-------------------------------------------------- ------------------------------

Bu EA'da eksik olan şey, .

bu özelliğin geliştirilmesi gerekiyor.

 

burada bir şey sesi yanlış yere koydum

 //+------------------------------------------------------------------+
//| start function                                                   |
//+------------------------------------------------------------------+
void CloseAllProfit0()
  {
//---
   for ( int i= PositionsTotal ()- 1 ; i>= 0 ; i--) // returns the number of current positions
       if (Extposition.SelectByIndex(i)) // selects the position by index for further access to its properties
        {
         if (( PositionGetDouble ( POSITION_PROFIT )/ PositionGetDouble ( POSITION_VOLUME )/
             SymbolInfoDouble ( Symbol (), SYMBOL_TRADE_TICK_VALUE ))/n>InTakeProfit)
            ClosePosition(Extposition. Symbol ()); // close a position by the specified symbo
         if (UseSound)
             PlaySound ( "ok.wav" );
        }
  }
//+------------------------------------------------------------------+
//| start function                                                   |
//+------------------------------------------------------------------+
void CloseAllLoss0()
  {
//---
   for ( int i= PositionsTotal ()- 1 ; i>= 0 ; i--) // returns the number of current positions
       if (Extposition.SelectByIndex(i)) // selects the position by index for further access to its properties
        {
         if (( PositionGetDouble ( POSITION_PROFIT )/ PositionGetDouble ( POSITION_VOLUME )/
             SymbolInfoDouble ( Symbol (), SYMBOL_TRADE_TICK_VALUE ))/n<-InStopLoss)
            ClosePosition(Extposition. Symbol ());   // close a position by the specified symbo
         if (UseSound)
             PlaySound ( "ok.wav" );
        }
  }
//+------------------------------------------------------------------+

dosyayı düzelt ve ekle

kim söyleyebilir? nereye koyacağım

         if (UseSound)
             PlaySound ( "ok.wav" );

nerede bulundu

buraya

 //+------------------------------------------------------------------+
//| Close selected position                                          |
//+------------------------------------------------------------------+
void ClosePosition( const string symbol)
  {
   if (InitTrade(symbol))
      ExtTrade.PositionClose(Extposition.Ticket()); // close a position by the specified symbo
   if (UseSound)
       PlaySound ( "ok.wav" );
  }
//+------------------------------------------------------------------+
Dosyalar:
 
Aleksandr Klapatyuk :

tüm eylemleri birlikte veya ayrı ayrı bekleyen siparişler olarak değiştirebilirsiniz

bekleyen bir emir, bir trol gibi fiyatı takip eder

burada nesnenin adı benim için çalıştı ve aşağıdaki resimde bekleyen bir sipariş verdi

daire içine alınmış nesneye henüz ulaşılmadı - mevcut fiyatın nesnenin altına düşmesini bekliyor

şimdi SELLSTOP çalışırsa - yukarıda SATIŞ'ı kapatmak için bir nesne belirledim

ve SELLSTOP çalışmazsa ve fiyat yükselirse, kapanış nesnesi silinecektir.

ve bekleyen sipariş fiyatı takip edecek

-------------------------------------------------- ------------------------------

Bu EA'da eksik olan şey, .

bu özelliğin geliştirilmesi gerekiyor.

pozisyona girdi - bizi ne bekliyor?

enstantane fotoğraf

SATIŞI kapatmak için nesneyi - adıyla taşıdı

anlık görüntü2

ayrıca nesneyi şu adla taşıdı -

burada bu işi otomatik olarak trol etmeniz gerekiyor.

böylece nesneyi hareket ettiren ben olmayacağım - ancak danışman nesneyi adıyla taşıdı

anlık görüntü3

daha da aşağı hareket etti - 118.811'deki nesne SATIŞ kapanır

aşağıda

daha fazla hareket etti

anlık görüntü7

Göstermek istiyorum ve her şey nasıl değil - zaten onu yoğun bir yere taşıdım

anlık görüntü8

yazarken - adıyla nesnede kapalı

anlık görüntü9

anlık görüntü10


 

https://www.mql5.com/ru/forum/233860/page43#comment_13219147

Çok teşekkürler! Vladimir Karputov Size ve sevdiklerinize sağlık!

işlevinizi danışmana ekledi

 input string    t8= "------ NAME Open ------" ;           //
input string    InpHLineBUY          = "(- ВНИЗУ -)" ;   // Name open buy (- ВНИЗУ -)
input string    InpHLineSELL         = "(- ВВЕРХУ -)" ; // Name open sell (- ВВЕРХУ -)
input bool      InpReverse01         = false ;           // Reverse Open - переворот торгового сигнала
input string    short_name           = "INDICATOR" ;     // INDICATOR_SHORTNAME Delete
input string    t9= "------ NAME Close ------" ;         //
input string    InpHLineCloseBUY     = "(- ВНИЗУ -)" ;   // Name Close buy (- ВНИЗУ -)
input string    InpHLineCloseSELL    = "(- ВВЕРХУ -)" ; // Name Close sell (- ВВЕРХУ -)
input bool      InpReverse10         = false ;           // Reverse Close - переворот торгового сигнала
input string    short_name0          = "INDICATOR" ;     // INDICATOR_SHORTNAME Delete
input bool      Inpres               = false ;           // Delete All Indicators
input string    t10= "------ Trailing Obj:Line ------" ; //
input string    InpObjDownName       = "(- ВНИЗУ -)" ;   // Obj: Follows the price up (Horizontal Line)
input string    InpObjUpName         = "(- ВВЕРХУ -)" ; // Obj: Follows the price down (Horizontal Line)
input ushort    InpObjTrailingStop   = 15 ;             // Obj: Trailing Stop (distance from price to object, in pips)
input ushort    InpObjTrailingStep   = 5 ;               // Obj: Trailing Step, in pips (1.00045-1.00055=1 pips)
//+------------------------------------------------------------------+
Вечер выходного дня
Вечер выходного дня
  • 2019.09.14
  • www.mql5.com
В этой теме исключительно на выходных принимаются заявки на "быстро забацать MQL5 советника...
Dosyalar:
 

Yardımcı programlardan birinde iki

https://www.mql5.com/ru/code/26353

Vladimir Karputov :

İki nesneyi hareket ettirir - yatay çizgiler


https://c.mql5.com/3/291/Trailing_Objects.mq5

 input string    t0= "------ Obj:Line ------" ;           //
input string    InpObjDownName0         = "BUY" ;       // Obj: Follows the price down (Horizontal Line)
input ENUM_TRADE_COMMAND InpTradeCommand=close_sells; // Obj:  command: ВВЕРХУ
input string    InpObjUpName0           = "SELL" ;       // Obj: Follows the price up (Horizontal Line)
input ENUM_TRADE_COMMAND InpTradeCommand0=close_buys; // Obj:  command: ВНИЗУ
input string    t1= "------ Trailing Obj:Line ------" ;   //
input string    InpObjUpName            = "BUY" ;       // Obj: Follows the price down (Horizontal Line)
input string    InpObjDownName          = "SELL" ;       // Obj: Follows the price up (Horizontal Line)
input ushort    InpObjTrailingFrequency = 10 ;           // Obj: Trailing, in seconds (< "10" -> only on a new bar)
input ushort    InpObjTrailingStop      = 15 ;           // Obj: Trailing Stop (distance from price to object, in pips)
input ushort    InpObjTrailingStep      = 5 ;           // Obj: Trailing Step, in pips (1.00045-1.00055=1 pips)
//---
Trade command
Trade command
  • www.mql5.com
Советник во входных параметрах имеет шесть команд: Close All Buy's - закрыть все позиции BUY по текущему символу, magic number позиций не учитывается Close All Sell's - закрыть все позиции SELL по текущему символу, magic number позиций не учитывается Close All Buy's and Sell's - закрыть все позиции BUY и SELL по текущему символу, magic number...
Dosyalar:
 
Aleksandr Klapatyuk :

Yardımcı programlardan birinde iki

https://www.mql5.com/ru/code/26353

Vladimir Karputov :

İki nesneyi hareket ettirir - yatay çizgiler


https://c.mql5.com/3/291/Trailing_Objects.mq5

Kullanılabilecek başka bir şey ekledim - herhangi bir yönde açıp kapatabileceğiniz dört yatay çizgi - trol.

yatay çizgi trol içindir. ve böylece bir isme sahip herhangi bir Nesne mümkündür.

 input string    t0= "------ Obj:Line Open ------" ;       //
input string    InpObjDownName0         = "TOP" ;       // Obj: Follows the price down (Horizontal Line)
input ENUM_TRADE_COMMAND InpTradeCommand=open_sell;   // Obj:  command: ВВЕРХУ
input string    InpObjUpName0           = "LOWER" ;     // Obj: Follows the price up (Horizontal Line)
input ENUM_TRADE_COMMAND InpTradeCommand0=open_buy;   // Obj:  command: ВНИЗУ
input string    t1= "------ Obj:Line Close ------" ;     //
input string    InpObjDownName02        = "TOP DELL" ;   // Obj: Follows the price down (Horizontal Line)
input ENUM_TRADE_COMMAND InpTradeCommand2=close_sells; // Obj:  command: ВВЕРХУ
input string    InpObjUpName02          = "LOWER DELL" ; // Obj: Follows the price up (Horizontal Line)
input ENUM_TRADE_COMMAND InpTradeCommand02=close_buys; // Obj:  command: ВНИЗУ
input string    t2= "------ Trailing Obj:Line ------" ;   //
input string    InpObjUpName            = "TOP DELL" ;   // Obj: Follows the price down (Horizontal Line)
input string    InpObjDownName          = "LOWER DELL" ; // Obj: Follows the price up (Horizontal Line)
input ushort    InpObjTrailingFrequency = 10 ;           // Obj: Trailing, in seconds (< "10" -> only on a new bar)
input ushort    InpObjTrailingStop      = 15 ;           // Obj: Trailing Stop (distance from price to object, in pips)
input ushort    InpObjTrailingStep      = 5 ;           // Obj: Trailing Step, in pips (1.00045-1.00055=1 pips)
//---
Dosyalar:
 
Aleksandr Klapatyuk :

Kullanılabilecek başka bir şey ekledim - herhangi bir yönde açıp kapatabileceğiniz dört yatay çizgi - trol.

yatay çizgi trol içindir. ve böylece bir isme sahip herhangi bir Nesne mümkündür.

güncelleme - sonraki sayfa
Neden: