초보자의 질문 MQL5 MT5 MetaTrader 5 - 페이지 1280

 
Tango_X :
안녕하세요! 시장에서 프로그램을 구입할 때 활성화 횟수는 무엇을 의미합니까? 이 프로그램을 다른 컴퓨터와 다른 계정에서 동시에 사용할 수 있습니까? 결론은 우리는 2인용 하나의 프로그램을 구입하고 각각 자체적으로 사용하기를 원한다는 것입니다.

프리랜서로 주문하는 것이 좋습니다. 이러한 프로그램의 유형은 오픈 소스로 귀하의 것입니다.

 
Fergert Фергерт :
특정 유형(이 경우 ORDER_TYPE_BUY_LIMIT ) 또는 매직넘버로 주문을 확인하는 방법을 알려주세요. . 그리고 거기에 없거나 닫혀 있으면 고문의 작업은 계속됩니다 ... 너무 감사 할 것입니다.

N Bars Martingale 2의 Min Max 코드에서 4가지 유형의 보류 주문을 계산하는 예

 //--- вызов функции
   int count_buy_limits= 0 ,count_sell_limits= 0 ,count_buy_stops= 0 ,count_sell_stops= 0 ;
   CalculateAllPendingOrders(count_buy_limits,count_sell_limits,count_buy_stops,count_sell_stops);
//--- сама функция
//+------------------------------------------------------------------+
//| Calculate all pending orders                                     |
//+------------------------------------------------------------------+
void CalculateAllPendingOrders( int &count_buy_limits, int &count_sell_limits, int &count_buy_stops, int &count_sell_stops)
  {
   count_buy_limits  = 0 ;
   count_sell_limits = 0 ;
   count_buy_stops   = 0 ;
   count_sell_stops  = 0 ;
   for ( int i= OrdersTotal ()- 1 ; i>= 0 ; i--) // returns the number of current orders
       if (m_order.SelectByIndex(i))     // selects the pending order by index for further access to its properties
         if (m_order. Symbol ()==m_symbol.Name() && m_order.Magic()==InpMagic)
           {
             if (m_order.OrderType()== ORDER_TYPE_BUY_LIMIT )
               count_buy_limits++;
             else
               if (m_order.OrderType()== ORDER_TYPE_SELL_LIMIT )
                  count_sell_limits++;
               else
                   if (m_order.OrderType()== ORDER_TYPE_BUY_STOP )
                     count_buy_stops++;
                   else
                     if (m_order.OrderType()== ORDER_TYPE_SELL_STOP )
                        count_sell_stops++;
           }
  }

Min Max for N Bars Martingale 2
Min Max for N Bars Martingale 2
  • www.mql5.com
Поиск Минимальных и Максимальных цен на заданном количестве баров. Выставление отложенных ордеров
 

안녕하세요.

시간이 만료된 후 포지션 을 청산하고 싶습니다. 어떻게 해서든 작동하지 않습니다.

 if (( TimeCurrent ()-m_position.Time())>Time* 3600 )  {CloseOrders= true ; ClosePositions( POSITION_TYPE_BUY ); break ;} //  если прошло много времени, закрываем !!!
               
 
Roman Kutemov :

안녕하세요.

시간이 만료된 후 포지션 을 청산하고 싶습니다. 어떻게 해서든 작동하지 않습니다.

' ClosePositions '는 누구입니까?

포지션은 어떻게 선택하나요?

 
Vladimir Karputov :

' ClosePositions '는 누구입니까?

포지션은 어떻게 선택하나요?

 //| Close positions       по типу                                    |
//+------------------------------------------------------------------+
void ClosePositions( const ENUM_POSITION_TYPE pos_type)
  {
   for ( int i= PositionsTotal ()- 1 ;i>= 0 ;i--) // returns the number of current positions
       if (m_position.SelectByIndex(i))     // selects the position by index for further access to its properties
         if (m_position. Symbol ()==m_symbol.Name() && m_position.Magic()==InpMagic)
             if (m_position.PositionType()==pos_type) // gets the position type
               m_trade.PositionClose(m_position.Ticket()); // close a position by the specified symbol
  }
 for ( int i= PositionsTotal ()- 1 ;i>= 0 ;i--)
       if (m_position.SelectByIndex(i)) // selects the position by index for further access to its properties
         if (m_position. Symbol ()==m_symbol.Name() && m_position.Magic()==InpMagic)
           {
             if (m_position.PositionType()== POSITION_TYPE_BUY )
              {
 
Roman Kutemov :

' 시간 '은 누구인가? 주문을 발행하기 전에 중단점을 설정하십시오 . 일반적으로 중단점을 확인합니까?

(그리고 예: 한 줄에 여러 문장을 작성할 필요가 없습니다.)

 
Vladimir Karputov :

' 시간 '은 누구인가? 주문을 발행하기 전에 중단점을 설정하십시오 . 일반적으로 중단점을 확인합니까?

(그리고 예: 한 줄에 여러 문장을 작성할 필요가 없습니다.)

시간 - 외부 설정의 시간(시간)입니다. 예를 들어 포지션을 오픈한 후 7시간이 지난 후 스톱이나 테이크에 의해 청산되지 않으면 청산하고 싶습니다.
 
Roman Kutemov :
시간 - 외부 설정의 시간(시간)입니다. 예를 들어 포지션을 오픈한 후 7시간이 지난 후 스톱이나 테이크에 의해 청산되지 않으면 청산하고 싶습니다.

거래, 자동 거래 시스템 및 거래 전략 테스트에 관한 포럼

초보자의 질문 MQL5 MT5 MetaTrader 5

블라디미르 카르푸토프 , 2021.01.27 17:49

*** 주문을 내리기 전에 중단점 을 넣으십시오 . 일반적으로 중단점을 확인합니까?

(그리고 예: 한 줄에 여러 문장을 작성할 필요가 없습니다.)


 
Vladimir Karputov :

예, 그렇지 않았습니다.

수정했습니다. 덕분에.

 
R이 할 수 없는 파이썬은 무엇을 제공합니까?
사유: