gb50k

For Lolikeet - 2 time frames 1 chart

script below
สคริปต์โอเพนซอร์ซ

ด้วยจิตวิญญาณของ TradingView อย่างแท้จริง ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้ผู้ค้าสามารถเข้าใจและตรวจสอบได้ ไชโยให้กับผู้เขียน! คุณสามารถใช้ได้ฟรี แต่การใช้รหัสนี้ซ้ำในสิ่งพิมพ์อยู่ภายใต้กฎระเบียบการใช้งาน คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?
//@version=2
study("My Script")
//plot(close)


res = input("240", type=resolution)
o = security(tickerid, res, open)
c = security(tickerid, res, close)
h = security(tickerid, res, high)
l = security(tickerid, res, low)


plotcandle(o, h, l, c, title='ceand', color = o < c ? green : red, wickcolor=black)
// most important for backtesting-
// if you use this code to add the 4hr time frame to a 1 hour chart....
// and you want to reference the last cadle in each time frame,
// its x[1]  for the 1hr and x[4] for the 4 hour.  you dont want to use the look at the last candle
// in the 4hr series it carries information that the 1 hr series doesnt have
// untill all 4 hours are done