어드바이저를 무작위로 모으는 방법 - 페이지 20

 

오늘 나는 실생활에서 이 기능을 테스트할 것이다

표시선에 의해 FiboPivot_V2

표시기의 짧은 이름을 입력해야 삭제됩니다.

- 인디케이터를 제거하지 않으면 라인이 다시 설정되어 포지션 오픈이 반복됩니다.

가격을 잡아

파일:
 

여기에 훌륭한 지표가 있습니다 https://www.mql5.com/en/code/26585

가격 밀도

내 고문에게

수평에서 구매하고 숫자 SL에서 구매하십시오.

 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
//+------------------------------------------------------------------+

개체 목록으로 이동하여 이름을 복사해야 합니다. 모든 라인 또는 숫자

또는 이 아이콘을 BUY 및 STOP 하단에 설정하여 표시기를 삭제하지 않도록 할 수 있습니다.

IMEI

Price density
Price density
  • www.mql5.com
Работа индикатора идёт с барами, которые видимы в окне графика.  График разбивается на зоны ("Zone") и в каждой зоне пдсчитывается количество попаданий цен. Принцип расчёта: если цена High или Low попадает в зону, считается, что в этой зоне счётчик попаданий...
 
소리를 수정했습니다. 열릴 때 - 닫힐 때 - 균형의 목표에 도달할 때.
 
input bool      InpOnlyLimit         = false ;           // Выставить отложенный ордер
input bool      InpOnlystart         = true ;           // Вкл. Buy\Sell

모든 작업을 공동 또는 개별적으로 보류 중인 주문 으로 변경할 수 있습니다.

보류 주문은 트롤처럼 가격을 따릅니다.

 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

여기 개체의 이름이 저를 위해 일했고 아래 그림에서 보류 중인 주문 을 했습니다.

잉크EURJPYH2_LI

동그라미로 표시된 개체는 아직 도달하지 않았습니다. 현재 가격이 개체 아래로 떨어질 때까지 기다리고 있습니다.

스냅 사진

이제 SELLSTOP이 작동하면 - 위에서 SELL 을 닫도록 명명된 개체를 설정했습니다.

SELLSTOP이 작동하지 않고 가격이 더 올라가면 마감 개체가 삭제됩니다.

보류 중인 주문 은 가격을 따릅니다.

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

이 EA에 없는 것은 .

이 기능을 개선해야 합니다.

 

여기 뭔가 잘못된 위치에 소리를 넣어

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

파일 수정 및 첨부

누가 말할 수 있습니까? 어디에 넣어

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

어디에서 발견

여기

 //+------------------------------------------------------------------+
//| 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" );
  }
//+------------------------------------------------------------------+
파일:
 
Aleksandr Klapatyuk :

모든 작업을 공동 또는 개별적으로 보류 중인 주문 으로 변경할 수 있습니다.

보류 주문은 트롤처럼 가격을 따릅니다.

여기 개체 이름이 나를 위해 일했고 아래 그림에서 보류 중인 주문 을 했습니다.

동그라미로 표시된 개체는 아직 도달하지 않았습니다. 현재 가격이 개체 아래로 떨어질 때까지 기다리고 있습니다.

이제 SELLSTOP이 작동하면 - 위에서 SELL 을 닫도록 명명된 개체를 설정했습니다.

SELLSTOP이 작동하지 않고 가격이 더 올라가면 마감 개체가 삭제됩니다.

보류 중인 주문 은 가격을 따릅니다.

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

이 EA에 없는 것은 이라는 객체를 뒤따르는 것입니다.

이 기능을 개선해야 합니다.

위치에 들어갔다 - 무엇이 우리를 기다리고 있습니까?

스냅 사진

이름으로 개체를 이동 - SELL을 닫습니다.

스냅샷2

또한 이름으로 개체를 이동했습니다.

여기에서 이 비즈니스를 자동으로 추적해야 합니다.

그래서 나는 물건을 옮기지 않았지만 고문은 그 이름으로 물건을 옮겼다.

스냅샷3

더 낮은 위치로 이동 - 118.811 SELL 의 개체가 닫힙니다.

아래에

더 많이 움직였다

스냅샷7

나는 보여주고 싶지만 모든 것이 방법이 아닙니다. 이미 밀도가 높은 곳으로 옮겼습니다.

스냅샷8

입력하는 동안 - 이름이 있는 개체에서 닫힘

스냅샷9

스냅샷10


 

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

정말 감사합니다! Vladimir Karputov 당신과 당신의 사랑하는 사람들에게 건강!

당신의 기능을 어드바이저에 추가했습니다

 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 советника...
파일:
 

유틸리티 중 하나에 2개

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

블라디미르 카르푸토프 :

두 개체 이동 - 수평선


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...
파일:
 
Aleksandr Klapatyuk :

유틸리티 중 하나에 2개

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

블라디미르 카르푸토프 :

두 개체 이동 - 수평선


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

나는 사용할 수있는 다른 것을 추가했습니다 - 4 개의 수평선으로 어떤 방향으로든 열고 닫을 수 있습니다 - 음, 트롤.

수평선은 트롤을 위한 것입니다. 따라서 이름이 있는 모든 개체가 가능합니다.

 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)
//---
파일:
 
Aleksandr Klapatyuk :

나는 사용할 수있는 다른 것을 추가했습니다 - 4 개의 수평선으로 어떤 방향으로든 열고 닫을 수 있습니다 - 음, 트롤.

수평선은 트롤을 위한 것입니다. 따라서 이름이 있는 모든 개체가 가능합니다.

업데이트 - 다음 페이지