거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Telegram에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
Experts

Stoch - MetaTrader 5용 expert

게시자:
Vladimir Karputov
조회수:
3714
평가:
(17)
게시됨:
2017.01.26 09:09
업데이트됨:
2018.06.15 12:49
Stoch.mq5 (12.82 KB) 조회
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Author of the idea — Collector, author of the MQL5 code — barabashkakvn.

Trades using the pending Sell Limit and Buy Limit orders. Removes all orders and closes positions at 23:59.

Calculation of prices for pending orders:

   double temp_h=iHigh(1);
   double temp_l=iLow(1);
   double temp_c=iClose(1);
   double H4,L4;
   H4 = (((temp_h - temp_l)*1.1) / 2.0) + temp_c;
   L4 = temp_c - ((temp_h - temp_l)*1.1) / 2.0;
//---
   if(db!=str1.day_of_week && s==0)
     {
      if(!m_trade.SellLimit(Lots,H4,Symbol(),
         H4+ExtStopLoss*Point(),
         H4-ExtTakeProfit*Point(),0,0,"H4"))
         GlobalVariableSet("SELLLIMIT",0);
      else
        {
         GlobalVariableSet("SELLLIMIT",1);
         GlobalVariableSet("DateS",str1.day_of_week);
        }
     }
//----
   if(db!=str1.day_of_week && b==0)
     {
      if(!m_trade.BuyLimit(Lots,L4,Symbol(),
         L4-ExtStopLoss*Point(),
         L4+ExtTakeProfit*Point(),0,0,"L4"))
         GlobalVariableSet("BUYLIMIT",0);
      else
        {
         GlobalVariableSet("BUYLIMIT",1);
         GlobalVariableSet("DateB",str1.day_of_week);
        }
     }

In this case, if there are pending orders or open positions at 23:59, the orders are deleted and the positions are closed:

   if(total_pos>0 && str1.hour==23 && str1.min==59)
      DeleteAllPositions();

   if(total_orders>0 && str1.hour==23 && str1.min==59)
      DeleteAllOrders();

It is recommended to use it on H1:

Stoch tester

 

MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/16983

LifeHack Balance Equity LifeHack Balance Equity

The indicator displays the balance and equity of the trade account.

Exp_ColorZerolagMomentum_X2 Exp_ColorZerolagMomentum_X2

The Exp_ColorZerolagMomentum_X2 trend trading system based on the signals from two ColorZerolagMomentum indicators.

Stochastic Three Periods Stochastic Three Periods

Uses the iStochastic (Stochastic) indicator from three different timeframes.

Exp_Zonal_Trading Exp_Zonal_Trading

The Expert Advisor which uses the AO and AC indicators in its operation, which were proposed by the Bill Williams.