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

 

이제 수동 거래 에 편리합니다.

 //+------------------------------------------------------------------+
input string    t0= "------ Parameters --------" ;         //
input datetime HoursFrom               = D'1970.01.01' ; // Время старта Эксперта
input datetime HoursTo                 = D'2030.12.31' ; // Время закрытия всех позиций
input double    TargetProfit            = 200000.00 ;     // Целевая прибыль
input double    InpVolumeLotOrRisk      = 0.01 ;           // The value for "Money management"
input double    InStopLoss              = 250.0 ;         // Stop Loss
input double    InTakeProfit            = 460.0 ;         // Take Profit
input string    t1= "------ Obj:Line Open ------" ;         //
input string    InpObjDownName0         = "TOP" ;         // Obj: TOP (Horizontal Line) ВВЕРХУ
input ENUM_TRADE_COMMAND InpTradeCommand=open_sell;     // Obj:  command:
input string    InpObjUpName0           = "LOWER" ;       // Obj: LOWER (Horizontal Line) ВНИЗУ
input ENUM_TRADE_COMMAND InpTradeCommand0=open_buy;     // Obj:  command:
input string    t2= "------ Obj:Line Close ------" ;       //
input string    InpObjDownName02        = "TOP DELL" ;     // Obj: TOP (Horizontal Line) ВВЕРХУ
input ENUM_TRADE_COMMAND InpTradeCommand2=close_sells;   // Obj:  command:
input string    InpObjUpName02          = "LOWER DELL" ;   // Obj: LOWER (Horizontal Line) ВНИЗУ
input ENUM_TRADE_COMMAND InpTradeCommand02=close_buys;   // Obj:  command:
input string    t3= "------ Trailing Obj:Line ------" ;     //
input string    InpObjUpName            = "TOP DELL" ;     // Obj: TOP (Horizontal Line) ВВЕРХУ
input string    InpObjDownName          = "LOWER DELL" ;   // Obj: LOWER (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)
input string    t4= "------ Indicator Delete ------" ;     //
input string    short_name              = "INDICATOR 1" ; // INDICATOR_SHORTNAME 1
input string    short_name0             = "INDICATOR 2" ; // INDICATOR_SHORTNAME 2
input bool      Inpres                  = false ;         // Delete All Indicators
//+------------------------------------------------------------------+
파일:
 
프로그래밍을 처음 배울 때 이 방법을 사용하기 시작했습니다)))
 
Darirunu :
프로그래밍을 처음 배울 때 이 방법을 사용하기 시작했습니다)))

그리고 진행 상황은 어떻습니까?

 
Aleksandr Klapatyuk :

그리고 진행 상황은 어떻습니까?

생성자가 나옵니다. 매우 편리합니다.

 

경고하는 것을 잊었습니다 -

= 200000.00; // 목표 이익 - 설정의 잔액보다 커야 합니다(잔액 10000 - 500을 벌고 싶습니다. 설정 = 10500)

= 250.0; // 손절매 - 핍에 도달하면 숨겨지고 닫힙니다. 0이면 즉시 닫힙니다(1=10 핍) 250=2500 핍

= 460.0; // 이익 실현 - 핍에 도달하면 숨겨지고 닫힙니다. 0이면 즉시 닫힙니다. (1=10핍)

nput string    t0= "------ Parameters --------" ;         //
input datetime HoursFrom               = D'1970.01.01' ; // Время старта Эксперта
input datetime HoursTo                 = D'2030.12.31' ; // Время закрытия всех позиций
input double    TargetProfit            = 200000.00 ;     // Целевая прибыль
input double    InpVolumeLotOrRisk      = 0.01 ;           // The value for "Money management"
input double    InStopLoss              = 250.0 ;         // Stop Loss
input double    InTakeProfit            = 460.0 ;         // Take Profit
Общие принципы - Торговые операции - MetaTrader 5
Общие принципы - Торговые операции - MetaTrader 5
  • www.metatrader5.com
Перед тем как приступить к изучению торговых функций платформы, необходимо создать четкое представление об основных терминах: ордер, сделка и позиция. — это распоряжение брокерской компании купить или продать финансовый инструмент. Различают два основных типа ордеров: рыночный и отложенный. Помимо них существуют специальные ордера Тейк Профит...
파일:
 

여기에 무엇을 첨부해야 할지 모르겠습니다. 그러나 그것은 필요합니다. - 언제 설정할 것인가 = D'1970.01.01'; // 전문가 시작 시간.

그런 다음 그가 또는 기다리는 작업에서 포함 시간을 볼 수 있습니다.

정시에 시간이 될 때까지 열리지 않습니다. 작동하지 않습니다

시각 전문가가 활성화되어 작동 중임을 의미합니다.

DATE 및 TIME을 첨부했습니다.
파일:
 

새로운 기회 - 아니면 더 정확할 것입니다.

이제 6개의 물체에서 - 그 중 2개는 수평선 입니다. 우리가 직접 그리고 트롤을 그립니다. 이 선에서 닫고 열 수 있습니다.

이름이 있는 4개의 개체 - 수동으로 설정 하기도 합니다. 닫고 열 수도 있습니다.

 input string    t1= "------ Obj:Name 1-2 ------" ;         //
input string    InpObjDownName0         = "TOP 1" ;       // Obj: TOP (Name Obj) ВВЕРХУ 1
input ENUM_TRADE_COMMAND InpTradeCommand=open_sell;     // Obj:  command:
input string    InpObjUpName0           = "LOWER 2" ;     // Obj: LOWER (Name Obj) ВНИЗУ 2
input ENUM_TRADE_COMMAND InpTradeCommand0=open_buy;     // Obj:  command:
input string    t2= "------ Obj:Name 3-4 ------" ;         //
input string    InpObjDownName02        = "TOP 3" ;       // Obj: TOP (Name Obj) ВВЕРХУ 3
input ENUM_TRADE_COMMAND InpTradeCommand2=open_sell;     // Obj:  command:
input string    InpObjUpName02          = "LOWER 4" ;     // Obj: LOWER (Name Obj) ВНИЗУ 4
input ENUM_TRADE_COMMAND InpTradeCommand02=open_buy;     // Obj:  command:
input string    t3= "------ Trailing Obj:Line 5-6 ----" ;   //
input string    InpObjUpName            = "TOP 5" ;       // Obj: TOP (Horizontal Line) ВВЕРХУ 5
input ENUM_TRADE_COMMAND InpTradeCommand3=close_sells;   // Obj:  command:
input string    InpObjDownName          = "LOWER 6" ;     // Obj: LOWER (Horizontal Line) ВНИЗУ 6
input ENUM_TRADE_COMMAND InpTradeCommand03=close_buys;   // Obj:  command:
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)
파일:
 

표시기는 수동으로 설정해야 하는 이름을 가진 2개의 개체를 이동합니다.

지표별 = iFractals

 //--- входные параметры 
input string    InpFont2              = "TOP" ;       // Obj: TOP (Obj:Name) ВВЕРХУ
input string    InpFont1              = "LOWER" ;     // Obj: LOWER (Obj:Name) ВНИЗУ
input int       InpFractal            = 0 ;           // Obj: Fractal (0-2)
파일:
IgorM.mq5  17 kb
 
Aleksandr Klapatyuk :

표시기는 수동으로 설정해야 하는 이름을 가진 2개의 개체를 이동합니다.

지표별 = iFractals


이 지표에서 아이디어에 대한 지표를 반복할 수 있습니다.

여기에서 변경

 //---
#resource "\\Indicators\\Examples\\ZigzagColor.ex5"
//---

그리고 여기

 //+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int OnInit ()
  {
//--- indicator buffers mapping
   PlotIndexSetInteger ( 0 , PLOT_ARROW , 108 );
   PlotIndexSetInteger ( 1 , PLOT_ARROW , 108 );
//--- indicator buffers mapping
   SetIndexBuffer ( 0 ,FractalUpBuffer, INDICATOR_CALCULATIONS );
   SetIndexBuffer ( 1 ,FractalDownBuffer, INDICATOR_CALCULATIONS );
//--- create handle of the indicator iFractals
   handle_iFractals= iCustom ( Symbol (), Period (), "Examples\\ZigzagColor" );
//--- if the handle is not created
   if (handle_iFractals== INVALID_HANDLE )
     {
       //--- tell about the failure and output the error code
       PrintFormat ( "Failed to create handle of the iFractals indicator for the symbol %s/%s, error code %d" ,
                   Symbol (),
                   EnumToString ( Period ()),
                   GetLastError ());
       //--- the indicator is stopped early
       return ( INIT_FAILED );
     }
//---
   return ( INIT_SUCCEEDED );
  }
//+------------------------------------------------------------------+

시장에서 지표로 가는 길

여기에서 변경

 //---
#resource "\\Indicators\\Market\\Automatic Trendlines.ex5"
//---

그리고 여기

   handle_iFractals= iCustom ( Symbol (), Period (), "Market\\Automatic Trendlines" );
파일:
 
Aleksandr Klapatyuk :

뭔가 - 표시기에서 찌르다.

가장 낮은 창에서 - 파란색 선, 레벨 50 교차


그리고 그것은 무엇을 주고 어떤 신호를 줍니까?