거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Twitter에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
당사 팬 페이지에 가입하십시오
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
ZZ_TimeWinter 1-1000.mq4 - MetaTrader 4용 라이브러리
- 조회수:
- 5538
- 평가:
- 게시됨:
- 2008.07.10 09:11
- 업데이트됨:
- 2016.03.10 08:54
- 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동
////////////////////////////////////////////////////////////// // // YURAZ yzh mail ru // // the function will return // true - summer time // false - winter time // // revert to standard time at night of the last Sunday of OCTOBER // switch to daylight saving time at night of the last Sunday of MARCH // bool TimeWinter(datetime dt) { int i; if ( TimeMonth(dt) >= 11 || TimeMonth(dt) <= 2 ) // WINTER { return(false); // Winter } if ( TimeMonth(dt) >= 4 && TimeMonth(dt) <= 9) // SUMMER { return(true); // Summer } // It can't be helped, let's determine datetime tSeek; string sTIM; if ( TimeMonth(dt) == 10 ) // october { if ( TimeDay(dt) >= 20 ) // at night of the last sunday of october - revert to standard time { tSeek = StrToTime( StringTrimRight(StringTrimLeft(DoubleToStr(TimeYear(dt),0)))+".10.31"); // determine the last day of october // search for the first sunday from the end for ( i = 31; i >= 20; i-- ) { if ( TimeDayOfWeek(tSeek) == 0 ) { break; // found the last sunday of october } tSeek = tSeek - 86400; // another day } if ( dt >= tSeek ) // already standard time { return(false); // yes winter } } return(true); } if ( TimeMonth(dt) == 3 ) // march { if ( TimeDay(dt) >= 20 ) // at night of the last sunday of march - switch to daylight saving time { tSeek = StrToTime( StringTrimRight(StringTrimLeft(DoubleToStr(TimeYear(dt),0)))+".03.31"); // determine the last day of march for ( i = 31; i >= 20; i-- ) { if ( TimeDayOfWeek(tSeek) == 0 ) // search for the first sunday from the end { break; // found the last sunday of march } tSeek = tSeek - 86400; // another day } if ( dt >= tSeek ) // already daylight saving time { return(true); // already summer } } return(false); } }
MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/7357
3D Oscilator
An oscillator that signals in case of trend changing.
Summary Report In PointsA script for valuation of trades history that is uploaded to the client terminal. The valuation is performed in points.
BW MFI + Volumes
An update for the BW MFI with the displaying of volumes.
T3.LnxIndicator T3.Lnx. It uses signals Heiken Ashi.