Chapter 2  倫敦突破指標完整程式碼

/@version=4

//itradesoeasy.com


study(title="倫敦突破指標_TradeSoEasy", shorttitle="倫敦突破指標_TradeSoEasy", overlay=true)


// 設定市場開市時間

londonOpenHour = input(defval=9, title="開市時", minval=0, maxval=23)

londonOpenMinute = input(defval=0, title="開市分鐘", minval=0, maxval=59)


// 計算市場開市時間的Unix時間戳

londonOpenTime = timestamp(year, month, dayofmonth, londonOpenHour, londonOpenMinute)


// 定義一個變數來跟蹤市場開市後的高點和低點

var float londonHigh = na

var float londonLow = na


// 當時間達到市場開市時間時,記錄高點和低點

if (time == londonOpenTime)

    londonHigh

About Us User AgreementPrivacy PolicyRisk DisclosurePartner Program AgreementCommunity Guidelines Help Center Feedback
App Store Android

Risk Disclosure

Trading in financial instruments involves high risks including the risk of losing some, or all, of your investment amount, and may not be suitable for all investors. Any opinions, chats, messages, news, research, analyses, prices, or other information contained on this Website are provided as general market information for educational and entertainment purposes only, and do not constitute investment advice. Opinions, market data, recommendations or any other content is subject to change at any time without notice. Trading.live shall not be liable for any loss or damage which may arise directly or indirectly from use of or reliance on such information.

© 2024 Tradinglive Limited. All Rights Reserved.