อินดิเคเตอร์สำหรับ TradingViewTradingView indicator
Session Initial Balance v1.1.0
Initial Balance (IB) คือกรอบ High–Low ของช่วงแรกของ session อินดิเคเตอร์นี้วาด IB ได้สูงสุดสามช่อง แต่ละช่องมีช่วงเวลาและเขตเวลาของตัวเอง ค่าเริ่มต้นคือ London และ New York (Asia ปิดไว้) IB ของแต่ละช่องเริ่มที่แท่งแรกของ session และใช้ราคาในชั่วโมงแรก (IB Duration 60 นาที) วาดเป็นกล่องตามช่วง IB แล้วลากระดับ High, Mid และ Low ต่อไปทางขวา (Design แบบ Line) เปิด IBR Extensions เพื่อดูระดับที่ห่างจากกรอบเป็นสัดส่วนของความกว้าง IB อินดิเคเตอร์บอกว่าราคาอยู่ตรงไหนเทียบกับกรอบเปิดของแต่ละ session ส่วนการตัดสินใจเทรดเป็นของคุณ กราฟทุกอันในหน้านี้เป็นกราฟจริงที่กดได้ กด ตั้งค่า เพื่อเปิดแผงตั้งค่าแบบเดียวกับบน TradingView ข้างกราฟThe Initial Balance (IB) is the high–low range of a session's first stretch. This indicator draws up to three of them, each slot with its own window and timezone; London and New York by default (Asia is off). Each slot's IB starts on the session's first bar and takes the first hour (IB Duration 60 minutes); it is drawn as a box over the IB, then its High, Mid and Low are carried to the right (Line design). Switch on IBR Extensions for levels set off the range by a share of its width. The indicator shows where price stands against each session's opening range; the trade itself is yours. Every chart on this page is live: press Settings to open the same settings you have on TradingView beside the chart.
ส่วนที่ 1Part 1
สาม sessionThe three sessions
1โมดูลนี้คืออะไรWhat it is
อินดิเคเตอร์มี IB สามช่อง แต่ละช่องตั้งชื่อ สี ช่วงเวลา และเขตเวลาเองได้ ค่าเริ่มต้นคือ Asia 09:00–15:00 เวลาโตเกียว (07:00–13:00 เวลาไทย) ปิดไว้, London 08:00–16:30 เวลาลอนดอน (15:00–23:30 เวลาไทย และ 14:00–22:30 ช่วงเวลาออมแสงของอังกฤษ) และ NY 09:30–16:00 เวลานิวยอร์ก (21:30–04:00 เวลาไทย และ 20:30–03:00 ช่วงเวลาออมแสงของสหรัฐฯ) ช่วงเวลาอ่านในเขตเวลาของแต่ละช่อง เวลาไทยจึงเลื่อนตามเวลาออมแสงเองThere are three IB slots, each with its own name, colour, window and timezone. By default: Asia 09:00–15:00 Tokyo time (07:00–13:00 Bangkok), off; London 08:00–16:30 London time (15:00–23:30 Bangkok, 14:00–22:30 during UK summer time); and NY 09:30–16:00 New York time (21:30–04:00 Bangkok, 20:30–03:00 during US daylight saving). Each window is read in its slot's timezone, so the Bangkok times follow daylight saving on their own.
IB ของแต่ละช่องเริ่มที่แท่งแรกที่เวลาเปิดอยู่ในช่วงเวลาของช่องนั้น แล้วเก็บ High และ Low ของทุกแท่งที่เปิดภายใน IB Duration (ค่าเริ่มต้น 60 นาที) นับจากแท่งแรกนั้น เมื่อครบเวลา กรอบก็ตายตัว ทั้งสามช่องแยกกันทั้งหมด แต่ละช่องมีกรอบ เส้น และ alert ของตัวเอง การ์ดนี้เปิดทั้งสามช่องและตั้ง Session Mode เป็น All Sessions ให้เห็น IB ของทุกวันEach slot's IB starts on the first bar whose open falls inside its window, then takes the High and Low of every bar that opens within IB Duration (60 minutes by default) of that first bar. When the time is up, the range is fixed. The three slots are fully independent: each has its own range, drawings and alert. This card has all three on and Session Mode set to All Sessions, so every day's IB shows.
2อ่านบนกราฟยังไงReading it on the chart
- กล่องสีน้ำเงิน คือ IB ของ NY กว้างเท่าชั่วโมงแรกของ session สูงจาก Low ถึง High ของชั่วโมงนั้นThe blue box is NY's IB: as wide as the session's first hour, from that hour's Low to its High.
- กล่องสีเขียวอมฟ้า คือ IB ของ LondonThe teal box is London's IB.
- กล่องสีส้ม คือ IB ของ Asia ปิดไว้ตามค่าเริ่มต้น (การ์ดนี้เปิด)The orange box is Asia's IB, off by default (on for this card).
- เส้นที่ลากต่อจากกล่อง คือ High, Mid และ Low ของ IB พร้อมป้าย เช่น
NY IB Highอธิบายในส่วน Box หรือ LineThe lines carried on from a box are the IB's High, Mid and Low, tagged e.g.NY IB High; see Box or Line.
3ปรับแล้วได้อะไรWhat each setting changes
เรียงตามหน้าตั้งค่าบน TradingView ปุ่มสีทองในแต่ละข้อจะเปลี่ยนค่าบนกราฟด้านบนให้ดูทันทีIn the order TradingView lists them. The gold buttons change the chart above so you can see the effect.
Modulesสวิตช์หลักMaster switch2
สวิตช์หลัก ปิดแล้วหยุดทั้งการวาดและการคำนวณThe master switch: off stops the drawing and the calculation.
บนกราฟที่ไทม์เฟรมสูงกว่าค่านี้ ไม่มีการวาดและไม่มี alert ค่าเริ่มต้น 4H กรอบเปิดที่อ่านจากแท่งรายวันไม่ใช่กรอบแล้ว ตั้ง 30m แล้วกราฟ 1 ชั่วโมงของตัวอย่างนี้จะว่างOn a chart timeframe above this one nothing draws and no alert fires; 4H by default, since an opening range read off a daily candle is no range. Set 30m and this demo's 1-hour chart goes blank.
Initial Balance · Session IB 3หนึ่งช่อง (ช่อง 1 และ 2 ใช้ชุดเดียวกัน)One slot (slots 1 and 2 have the same set)4
เปิดปิดแต่ละช่อง ค่าเริ่มต้นเปิด London (ช่อง 2) และ NY (ช่อง 3) ส่วน Asia (ช่อง 1) ปิด การ์ดนี้เปิดทั้งสาม ช่องที่ปิดไม่นับว่ากำลังอยู่ใน session จึงไม่ไปลบกล่องของช่องอื่นในโหมด Active OnlyEach slot's switch: London (slot 2) and NY (slot 3) on by default, Asia (slot 1) off; all three on for this card. A slot that is off never counts as live, so in Active Only it never clears another slot's box.
สีและชื่อของช่อง สีใช้กับทุกอย่างของช่อง: กล่อง เส้น ป้าย และ IBR ชื่ออยู่ในป้ายของระดับ (NY IB High) ป้ายในกล่อง และข้อความ alert ค่าเริ่มต้น NY น้ำเงิน (Asia ส้ม London เขียวอมฟ้า )The slot's colour and name. The colour paints everything of the slot: box, lines, labels and IBR. The name goes into the level labels (NY IB High), the label in the box and the alert message. NY blue by default (Asia orange , London teal ).
ช่วงเวลาในรูปแบบ HHMM-HHMM:วัน อ่านในเขตเวลาที่เลือก exchange คือเขตเวลาของสินทรัพย์บนกราฟ IB ยึดแท่งแรกของช่วงนี้ และกล่องหยุดยืดเมื่อช่วงนี้ปิด ค่าเริ่มต้น 0930-1600 America/New_York (Asia 0900-1500 Asia/Tokyo, London 0800-1630 Europe/London) ตัวอย่างนี้คำนวณเฉพาะค่าเริ่มต้นThe window as HHMM-HHMM:days, read in the chosen timezone; exchange is the chart symbol's own. The IB anchors to the window's first bar, and the box stops stretching when the window closes. 0930-1600 America/New_York by default (Asia 0900-1500 Asia/Tokyo, London 0800-1630 Europe/London). This demo computes the defaults only.
ความยาวของ IB เป็นนาที นับจากเวลาเปิดของแท่งแรก แท่งที่เปิดก่อนครบเวลานี้นับเข้ากรอบ บนกราฟ 5 นาที 60 นาทีคือ 12 แท่ง บนกราฟ 1 ชั่วโมงคือแท่งเดียว ใช้ไทม์เฟรมที่เท่ากับหรือต่ำกว่า IB Duration ที่สั้นที่สุด ตัวอย่างนี้เลือกได้ 30, 60, 90, 120The IB's length in minutes from the first bar's open; bars that open before it is up count towards the range. On a 5-minute chart 60 minutes is 12 bars, on a 1-hour chart one bar. Use a timeframe at or below the shortest IB Duration. Demo values: 30, 60, 90, 120.
4ทดลองปรับค่าเองTry it
- IB ที่ยาวขึ้นA longer IB
ตั้ง IB Duration ของ NY เป็น 120 นาที กรอบกว้างขึ้นและมักสูงขึ้น เพราะเก็บราคาได้นานขึ้นSet NY's IB Duration to 120 minutes: the box gets wider, and usually taller, since it takes in more trading.
- ช่องเดียวOne slot
ปิด Asia กับ London เหลือ NY ช่องเดียวSwitch Asia and London off and keep NY alone.
5จุดที่มักเข้าใจผิดCommon pitfalls
- เวลาไทยเลื่อนตามเวลาออมแสงBangkok times shift with daylight saving
London และ New York มีเวลาออมแสง ช่วงของ session ในเวลาไทยจึงเลื่อนหนึ่งชั่วโมงสองครั้งต่อปี IB เลื่อนตามเองเพราะช่วงเวลาอ่านในเขตเวลาของช่องนั้นLondon and New York keep daylight saving, so in Bangkok time their windows move by an hour twice a year. The IB follows on its own, since each window is read in its slot's timezone.
- แท่งแรกคือแท่งที่เปิดในช่วงเวลาThe first bar is the one that opens inside the window
บนกราฟ 1 ชั่วโมง แท่ง 09:00 ของนิวยอร์กเปิดก่อน 09:30 จึงไม่นับ IB ของ NY เริ่มที่แท่ง 10:00 และกรอบอาจต่างจากที่เห็นบนกราฟ 5 นาที ใช้ไทม์เฟรมที่หาร 30 นาทีลงตัวเพื่อให้แท่งแรกตรงกับเวลาเปิดOn a 1-hour chart New York's 09:00 bar opens before 09:30 and does not count; NY's IB starts on the 10:00 bar, and its range can differ from the one on a 5-minute chart. Use a timeframe that divides 30 minutes for the first bar to sit on the open.
- IB สั้นกว่าแท่งAn IB shorter than a bar
ถ้า IB Duration สั้นกว่าไทม์เฟรมของกราฟ กรอบคือแท่งแรกทั้งแท่ง เช่น IB 30 นาทีบนกราฟ 1 ชั่วโมงก็คือ High–Low ของทั้งชั่วโมงนั้นWith IB Duration shorter than the chart's timeframe the range is the whole first bar: a 30-minute IB on a 1-hour chart is that whole hour's High–Low.
ส่วนที่ 2Part 2
Session Mode
1โมดูลนี้คืออะไรWhat it is
Session Mode เลือกว่ากราฟเก็บ IB ไว้แค่ไหน All Sessions ทุกช่องที่เปิดเก็บ IB ทุกวัน ประวัติสะสมไปเรื่อยๆ Current Session แต่ละช่องเก็บแค่ IB ล่าสุด IB เดิมของช่องหายตอนช่วงเวลาของช่องนั้นเปิดรอบใหม่ ช่องอื่นไม่เกี่ยว จึงมีไม่เกินสาม IB บนกราฟ Active Only (ค่าเริ่มต้น) IB ของช่องอยู่ระหว่างที่ช่วงเวลาของช่องเปิด เมื่อปิด ถ้ามีอีกช่องกำลังเปิดอยู่ IB นั้นหายทันที (London ปิดตอน NY ยังเปิด) ถ้าไม่มีช่องไหนเปิด IB นั้นค้างไว้จนกว่าช่องถัดไปจะเปิด ระหว่างสอง session จึงยังเห็น IB ล่าสุดเสมอSession Mode decides how many IBs the chart keeps. All Sessions: every enabled slot keeps every day's IB, and the history builds up. Current Session: each slot keeps only its latest IB; the old one goes when that slot's window opens again, and the other slots are left alone, so there are at most three. Active Only (default): a slot's IB lives while its window is open. When it closes, it goes at once if another slot is live (London closing into NY); if none is, it stays frozen until the next slot opens, so between sessions the latest IB is still on screen.
กราฟตัวอย่างจบที่ 11:35 เวลาไทย ระหว่าง session ของ Asia การ์ดนี้เปิด Asia ไว้ ในโหมด Active Only จึงเหลือ IB ของ Asia อันเดียว ปิด Asia แล้ว IB ล่าสุดของ NY ที่ค้างอยู่ตั้งแต่ปิดตอน 04:00 จะกลับมา ซึ่งเป็นภาพตามค่าเริ่มต้นThe demo chart ends at 11:35 Bangkok time, inside Asia's session. This card has Asia on, so Active Only leaves Asia's IB alone. Switch Asia off and NY's latest IB, frozen since its 04:00 close, comes back: the default view.
2อ่านบนกราฟยังไงReading it on the chart
- Active Only เห็นเฉพาะ IB ของ session ที่กำลังเปิด หรือ IB ล่าสุดเมื่อยังไม่มี session ไหนเปิดActive Only: only the open session's IB, or the latest one while no session is open.
- Current Session เห็น IB ล่าสุดของทุกช่องที่เปิดพร้อมกัน วันละหนึ่งต่อช่องCurrent Session: every enabled slot's latest IB together, one per slot.
- All Sessions เห็น IB ทุกวันของทุกช่อง ในแบบ Line ระดับของ IB เก่าหยุดเมื่อ IB ถัดไปของช่องเดียวกันก่อตัวเสร็จAll Sessions: every day's IB of every slot. In Line design an older IB's levels stop when the slot's next IB is complete.
3ปรับแล้วได้อะไรWhat each setting changes
เรียงตามหน้าตั้งค่าบน TradingView ปุ่มสีทองในแต่ละข้อจะเปลี่ยนค่าบนกราฟด้านบนให้ดูทันทีIn the order TradingView lists them. The gold buttons change the chart above so you can see the effect.
Initial Balance · Session IBsIB ที่เก็บไว้บนกราฟWhich IBs stay on the chart1
All Sessions เก็บทุก IB ระวังเพดานวัตถุ 500 ชิ้นของ TradingView บนประวัติยาว เมื่อเกิน ของที่เก่าที่สุดจะถูกลบ Current Session เก็บ IB ล่าสุดของแต่ละช่อง (ไม่เกินสาม) Active Only แสดงเฉพาะ session ที่เปิดอยู่ หรือ IB ล่าสุดเมื่อไม่มี session ไหนเปิด (ไม่เกินสาม) alert ก็ทำตามโหมดนี้: ใน Active Only IB ที่ไม่ได้แสดงจะไม่ส่ง alertAll Sessions keeps every IB; mind TradingView's 500-object cap on a long history, past which the oldest drawings are removed. Current Session keeps each slot's latest IB (three at most). Active Only shows the open session, or the latest IB while none is open (three at most). The alert follows the mode: in Active Only an IB that is not on show sends nothing.
4ทดลองปรับค่าเองTry it
- ค่าเริ่มต้นในช่วงเอเชียThe default during Asian hours
ปิด Asia (ค่าเริ่มต้น) แล้ว IB ของ NY ที่ค้างตั้งแต่ปิด session กลับมา เพราะไม่มีช่องที่เปิดอยู่กำลังอยู่ใน sessionSwitch Asia off (the default): NY's IB, frozen since its close, comes back, since no enabled slot is in session.
- สามโหมดThe three modes
สลับ Session Mode แล้วดูว่า IB ไหนยังอยู่Switch Session Mode and see which IBs remain.
5จุดที่มักเข้าใจผิดCommon pitfalls
- Active Only ลบ IB ตอนอีก session เปิดActive Only removes an IB when another session opens
IB ที่ค้างหลังปิด session หายทันทีที่ช่องอื่นที่เปิดใช้งานเริ่ม session ระดับของมันจึงไม่อยู่ให้เทียบระหว่าง session ถัดไป ถ้าต้องการให้อยู่ ใช้ Current SessionAn IB frozen after its close goes the moment another enabled slot's session starts, so its levels are not there to compare during the next session. Use Current Session to keep them.
- สอง session ทับกันเห็นทั้งคู่Two overlapping sessions both show
ระหว่างที่ London กับ New York เปิดพร้อมกัน Active Only แสดงทั้งสอง IB เมื่อ London ปิดขณะ NY ยังเปิด IB ของ London จะหายทันทีWhile London and New York are both open, Active Only shows both IBs; when London closes with NY still open, London's IB goes at once.
ส่วนที่ 3Part 3
Box หรือ LineBox or Line
1โมดูลนี้คืออะไรWhat it is
Line (ค่าเริ่มต้น) วาดกล่องเฉพาะช่วง IB แล้วหยุดตรงนั้น จากแท่งถัดไปลากระดับ High, Mid และ Low เป็นเส้นไปถึงแท่งปัจจุบัน แต่ละเส้นมีป้ายที่ปลายขวา เช่น NY IB High Box ให้กล่องยืดไปทางขวาตามแท่งปัจจุบันจนช่วงเวลาของ session ปิด ถ้าเปิดหลาย IB พร้อมกัน กล่องที่ยืดยาวจะซ้อนกันเป็นแผ่นสีโปร่งบนราคา ส่วนสามเส้นให้ราคาเดียวกันโดยไม่บังแท่งเทียนLine (default) draws the box over the IB only and stops there; from the next bar the High, Mid and Low are carried as lines to the current bar, each tagged at its right end, e.g. NY IB High. Box lets the box stretch right with the live bar until the session window closes. With several IBs on, stretched boxes overlap as translucent blocks on top of price; three lines carry the same prices without covering the candles.
เส้น High และ Low ใช้รูปแบบจาก Border Style และเส้น Mid ใช้รูปแบบของ Midline ชุดเดียวกับที่ใช้วาดกล่อง Border Style จึงกำหนดทั้งขอบกล่องระหว่าง IB และระดับหลัง IB เสมอ การ์ดนี้ตั้ง Session Mode เป็น All Sessions ให้เห็นหลายวันThe High and Low lines take their look from Border Style and the Mid from the Midline style, the same two settings that shape the box, so Border Style always sets both the box during the IB and the levels after it. This card has Session Mode on All Sessions to show several days.
2อ่านบนกราฟยังไงReading it on the chart
- กล่อง พื้นทึบ 10% ขอบทึบในสีของช่อง เส้นประตรงกลางคือ MidlineThe box: a 10% fill and a solid border in the slot's colour; the dashed line inside is the midline.
- NY IB High · Mid · Low สามเส้นที่เริ่มจากแท่งหลัง IB ลากถึงแท่งปัจจุบัน ป้ายบอกชื่อช่อง คำว่า IB (Label word) และระดับNY IB High · Mid · Low: three lines from the bar after the IB to the current bar; the tag gives the slot's name, the word IB (Label word) and the level.
3ปรับแล้วได้อะไรWhat each setting changes
เรียงตามหน้าตั้งค่าบน TradingView ปุ่มสีทองในแต่ละข้อจะเปลี่ยนค่าบนกราฟด้านบนให้ดูทันทีIn the order TradingView lists them. The gold buttons change the chart above so you can see the effect.
Initial Balance · Styleรูปแบบที่ใช้ร่วมกันทั้งสามช่องThe look, shared by all three slots7
Line วาดกล่องเฉพาะช่วง IB แล้วลาก High, Mid, Low ต่อ Box ให้กล่องยืดตามแท่งปัจจุบันจนช่วงเวลาปิด (ถ้าเปิด Expand with current candle)Line draws the box over the IB only, then carries High, Mid and Low on. Box stretches the box with the live bar until the window closes (with Expand with current candle on).
รูปแบบเส้นขอบของกล่อง และของเส้น High / Low ในแบบ Line ตั้ง Dashed แล้วขอบกล่องระหว่าง IB ก็เป็นเส้นประด้วยThe style of the box border, and of the High / Low lines in Line design. Set Dashed and the box border during the IB turns dashed too.
เส้นกึ่งกลางระหว่าง High กับ Low ในกล่อง และเส้น Mid ที่ลากต่อในแบบ Line พร้อมรูปแบบเส้นThe line halfway between High and Low, inside the box and as the carried Mid in Line design, with its style.
ความทึบของพื้นกล่อง 100 คือทึบเต็ม 0 คือไม่มีพื้นThe box fill's opacity: 100 is solid, 0 is none.
เฉพาะแบบ Box ปิดแล้ววาดแค่ขอบบนและล่าง กรอบจึงอ่านเป็นสองระดับแทนสี่เหลี่ยมปิดBox design only. Off draws the top and bottom edges alone, so the range reads as two levels rather than a closed rectangle.
เฉพาะแบบ Box เปิด: กล่องยืดไปทางขวาตามแท่งปัจจุบันจนช่วงเวลาของ session ปิด ปิด: กล่องหยุดเมื่อ IB จบ ในแบบ Line กล่องหยุดเมื่อ IB จบเสมอBox design only. On: the box keeps stretching right with the live bar until the session window closes. Off: it freezes when the IB ends. In Line design the box always freezes when the IB ends.
เฉพาะแบบ Line ระดับ High, Mid, Low ยื่นเลยแท่งปัจจุบันไปกี่แท่ง ป้ายจึงห่างจากราคาเท่านั้น 0 หยุดที่แท่งปัจจุบันLine design only: how many bars past the current bar the High, Mid and Low reach, and so how far their tags sit from price. 0 stops them on the current bar.
4ทดลองปรับค่าเองTry it
- Box กับ LineBox versus Line
เปลี่ยนเป็น Box แล้วดูว่ากล่องของแต่ละวันยืดจนช่วงเวลาปิด จากนั้นกลับเป็น LineSwitch to Box and watch each day's box stretch to the window's close; then back to Line.
- ระดับเส้นประDashed levels
ตั้ง Border Style เป็น Dashed ทั้งขอบกล่องและเส้น High / Low กลายเป็นเส้นประพร้อมกันSet Border Style to Dashed: the box border and the High / Low lines turn dashed together.
5จุดที่มักเข้าใจผิดCommon pitfalls
- ใน All Sessions ระดับเก่าไม่ได้ลากไปตลอดIn All Sessions old levels do not run forever
ระดับ High, Mid, Low ของ IB หนึ่งลากถึงแท่งปัจจุบันจนกว่า IB ถัดไปของช่องเดียวกันจะก่อตัวเสร็จ แล้วหยุดตรงนั้น บนกราฟจึงมีระดับที่ยังวิ่งอยู่ช่องละชุดเดียวAn IB's High, Mid and Low run to the current bar until the slot's next IB is complete, then stop there, so each slot has one set of running levels.
- Border Style ใช้ทั้งกล่องและเส้นBorder Style shapes both box and lines
ตั้ง Solid ให้ระดับเป็นเส้นทึบ กล่องระหว่าง IB ก็จะเป็นขอบทึบด้วย แยกสองอย่างนี้ไม่ได้Set Solid for clean levels and the box during the IB turns solid too; the two cannot be set apart.
ส่วนที่ 4Part 4
ป้ายLabels
1โมดูลนี้คืออะไรWhat it is
มีป้ายสองแบบ ป้ายในกล่อง (Show label in box ปิดไว้ตามค่าเริ่มต้น การ์ดนี้เปิด) เขียนชื่อของช่อง เช่น NY ไว้ในกล่อง IB ตามตำแหน่งที่เลือก มีประโยชน์เมื่อเปิดหลายช่อง ป้ายของระดับ ในแบบ Line อยู่ที่ปลายขวาของเส้น High, Mid, Low เสมอ เป็นชื่อของช่องตามด้วย Label word และชื่อระดับ เช่น NY IB HighThere are two kinds. The label in the box (Show label in box, off by default, on for this card) writes the slot's name, e.g. NY, inside the IB box at the chosen position: useful with several slots on. The level tags of Line design always sit at the right end of the High, Mid and Low lines: the slot's name, then Label word, then the level, e.g. NY IB High.
2อ่านบนกราฟยังไงReading it on the chart
- NY กลางกล่องคือป้ายในกล่องNY in the middle of the box is the label in the box.
- NY IB High · NY IB Mid · NY IB Low ที่ปลายเส้นคือป้ายของระดับNY IB High · NY IB Mid · NY IB Low at the line ends are the level tags.
3ปรับแล้วได้อะไรWhat each setting changes
เรียงตามหน้าตั้งค่าบน TradingView ปุ่มสีทองในแต่ละข้อจะเปลี่ยนค่าบนกราฟด้านบนให้ดูทันทีIn the order TradingView lists them. The gold buttons change the chart above so you can see the effect.
Initial Balance · Labelป้ายที่ใช้ร่วมกันทั้งสามช่องLabels, shared by all three slots4
คำที่ต่อท้ายชื่อของช่องในป้ายของระดับแบบ Line เช่น London IB High ป้ายในกล่องไม่ใช้คำนี้ เว้นว่างไว้จะเหลือแค่ชื่อของช่องกับชื่อระดับThe word added after the slot's name in the Line design level tags, as in London IB High. The label in the box does not use it. Left blank, the tag is the slot's name and the level alone.
เขียนชื่อของแต่ละช่อง (Label ในกลุ่มของช่องนั้น) ไว้ในกล่อง IB ของมัน เหมาะเมื่อเปิดมากกว่าหนึ่งช่อง ค่าเริ่มต้นปิด การ์ดนี้เปิดWrites each slot's name (the Label in its own group) inside its IB box; worth it with more than one slot on. Off by default, on for this card.
ตำแหน่งของป้ายในกล่อง เก้าตำแหน่ง ค่าเริ่มต้นกึ่งกลางWhere in the box the label sits, one of nine positions; the middle by default.
ขนาดตัวอักษรของป้ายในกล่อง และของป้ายระดับแบบ Line ด้วย ช่องนี้เป็นสีเทาเมื่อปิด Show label in box แต่ยังใช้กับป้ายระดับอยู่The text size of the label in the box, and of the Line design level tags too. The input greys out with Show label in box off, yet it still sizes the level tags.
4ทดลองปรับค่าเองTry it
- ชื่อที่อ่านง่ายA readable name
เปลี่ยน Label word เป็น OR ป้ายของระดับกลายเป็น NY OR High แต่ป้ายในกล่องยังเป็น NYChange Label word to OR: the level tags become NY OR High, while the box label stays NY.
- ป้ายมุมกล่องA corner label
ย้ายป้ายไปมุมซ้ายบน ไม่บังกลางกรอบMove the label to the top left, clear of the middle of the range.
5จุดที่มักเข้าใจผิดCommon pitfalls
- Label word ไม่อยู่ในป้ายในกล่องLabel word is not in the box label
คำอธิบายของช่องนี้บน TradingView บอกว่าต่อท้ายชื่อของช่อง (Asia IB) แต่ในโค้ดใช้เฉพาะป้ายของระดับแบบ Line ป้ายในกล่องเป็นชื่อของช่องอย่างเดียวIts tooltip on TradingView says it is added to each slot's name (Asia IB), but the code uses it only in the Line design level tags; the box label is the slot's name alone.
- ขนาดป้ายยังมีผลแม้ช่องเป็นสีเทาSize still applies while greyed out
Size เป็นสีเทาเมื่อปิด Show label in box แต่ป้ายระดับแบบ Line ยังใช้ขนาดนี้ เปิดป้ายในกล่องชั่วคราวเพื่อแก้ แล้วปิดกลับได้Size greys out with Show label in box off, yet the Line design tags still use it: switch the box label on to change it, then off again.
ส่วนที่ 5Part 5
IBR Extensions
1โมดูลนี้คืออะไรWhat it is
IBR Extensions วาดระดับเหนือ IB High และใต้ IB Low ห่างออกไปเป็นเปอร์เซ็นต์ของความกว้าง IB ระดับ 100% อยู่ห่างจากขอบหนึ่งเท่าของความกว้างกรอบ 200% สองเท่า ใช้ดูว่าวันนี้ราคาวิ่งออกจากกรอบเปิดไปไกลแค่ไหนเมื่อเทียบกับขนาดของกรอบเอง ปิดไว้ตามค่าเริ่มต้น เปิดแล้วมีสองระดับต่อฝั่ง (100% และ 200%) อีกสองระดับ (50% และ 150%) เปิดเพิ่มได้IBR Extensions draws levels above the IB High and below the IB Low, set off by a percentage of the IB's width: 100% sits one full range width beyond the edge, 200% two. They show how far price has run from the opening range, measured in the range's own size. Off by default; switched on, there are two per side (100% and 200%), and two more (50% and 150%) can be added.
เส้น IBR ยาวเท่ากล่องพอดี และป้าย +100% / -100% อยู่ที่ขอบขวาของกล่อง ในแบบ Box ที่ยืดตามแท่ง เส้นจึงยืดตามกล่องจนช่วงเวลาปิด ส่วนในแบบ Line กล่องหยุดเมื่อ IB จบ เส้น IBR จึงยาวแค่ช่วง IB การ์ดนี้ตั้ง Design เป็น BoxThe IBR lines span the box exactly, with their +100% / -100% labels at its right edge. In a stretching Box they stretch with it until the window closes; in Line design the box stops when the IB ends, so the IBR lines cover the IB only. This card is set to Box.
2อ่านบนกราฟยังไงReading it on the chart
- +100% · +200% เส้นจุดเหนือกล่อง และ -100% · -200% ใต้กล่อง ในสีของช่อง+100% · +200%: dotted lines above the box, and -100% · -200% below it, in the slot's colour.
3ปรับแล้วได้อะไรWhat each setting changes
เรียงตามหน้าตั้งค่าบน TradingView ปุ่มสีทองในแต่ละข้อจะเปลี่ยนค่าบนกราฟด้านบนให้ดูทันทีIn the order TradingView lists them. The gold buttons change the chart above so you can see the effect.
Initial Balance · IBR Extensionsระดับที่ใช้ร่วมกันทั้งสามช่องLevels, shared by all three slots4
เปิดระดับ IBR และรูปแบบเส้น ค่าเริ่มต้นปิด เส้นจุด สีตามช่องSwitches the IBR levels on, with the line style; off and dotted by default, in the slot's colour.
ป้าย +100% / -100% ที่ขอบขวาของกล่อง และขนาดตัวอักษรThe +100% / -100% labels at the box's right edge, and their text size.
สองระดับแรก เปิดไว้ที่ 100% และ 200% ของความกว้าง IB ตั้งเปอร์เซ็นต์ได้ทุกค่าตั้งแต่ 0The first two levels, on at 100% and 200% of the IB's width; any percentage from 0.
อีกสองระดับ ปิดไว้ ค่าตั้งไว้ที่ 50% และ 150%Two more levels, off, preset at 50% and 150%.
4ทดลองปรับค่าเองTry it
- ครบสี่ระดับAll four levels
เปิด Level 3 และ 4 จะได้ 50%, 100%, 150%, 200% ทั้งสองฝั่งSwitch Levels 3 and 4 on for 50%, 100%, 150% and 200% on both sides.
- IBR ในแบบ LineIBR in Line design
เปลี่ยน Design เป็น Line เส้น IBR หดเหลือแค่ช่วง IBSwitch Design to Line: the IBR lines shrink to the IB.
5จุดที่มักเข้าใจผิดCommon pitfalls
- IBR ไม่ยืดในแบบ LineIBR does not stretch in Line design
เส้น IBR ยาวเท่ากล่องเสมอ ในแบบ Line (ค่าเริ่มต้น) จึงเห็นแค่ช่วง IB ถ้าต้องการเส้นที่ยาวต่อไปด้วย ใช้แบบ Box กับ Expand with current candleThe IBR lines always span the box, so in Line design (the default) they cover the IB only. For lines that carry on, use Box with Expand with current candle.
- เปอร์เซ็นต์คิดจากความกว้างของ IBThe percentage is of the IB's width
100% ไม่ได้แปลว่าราคาขึ้น 100% แต่แปลว่าห่างจากขอบกรอบเท่ากับความกว้างกรอบหนึ่งเท่า กรอบแคบระดับก็ชิด กรอบกว้างระดับก็ห่าง100% is not a 100% price move: it is one range width beyond the edge. A narrow IB puts the levels close, a wide one far.
ส่วนที่ 6Part 6
Alerts
1โมดูลนี้คืออะไรWhat it is
ตั้งใช้งานสามขั้น: (1) เปิด Enable alerts (ค่าเริ่มต้นปิด) (2) เปิด Session IB break (ค่าเริ่มต้นปิด) (3) สร้าง alert บน TradingView อันเดียว โดยตั้ง Condition เป็น Session Initial Balance → Any alert() function call การ์ดนี้เปิดทั้งสองไว้และตั้ง Session Mode เป็น All SessionsSetting up takes three steps: (1) switch on Enable alerts (off by default); (2) switch on Session IB break (off by default); (3) create one TradingView alert with Condition set to Session Initial Balance → Any alert() function call. This card has both on and Session Mode on All Sessions.
alert ส่งเมื่อแท่งปิดเหนือ High หรือใต้ Low ของ IB ของช่องใดช่องหนึ่ง หลัง IB ก่อตัวเสร็จ แต่ละฝั่งส่งได้ครั้งเดียว แล้วพร้อมใหม่เมื่อราคาปิดกลับเข้ามาในกรอบ เบรก → กลับเข้า → เบรกอีก จึงได้สอง alert ส่วนราคาที่แกว่งอยู่นอกกรอบได้ alert เดียว การเฝ้ายังทำต่อหลังช่วงเวลาของ session ปิด จนกว่า session ถัดไปของช่องนั้นจะเริ่ม IB ใหม่The alert fires when a bar closes above the High or below the Low of any slot's IB, once that IB is complete. Each side fires once, then re-arms when price closes back inside the range: break → back inside → break again gives two alerts, while price lingering outside gives one. The watch goes on after the session window closes, until the slot's next session starts a new IB.
2อ่านบนกราฟยังไงReading it on the chart
- จุดสีส้มเหนือแท่งคือแท่งที่ alert ส่ง ▲ ปิดเหนือ IB High ▼ ปิดใต้ IB LowAn orange dot above a bar marks an alert: ▲ a close above the IB High, ▼ below the IB Low.
- รายการใต้กราฟคือข้อความที่จะได้รับ เรียงล่าสุดก่อน เช่น
SIB | NY IB break ▲ @ 3966.375 | XAUUSD 5ส่วนแรกคือ Message prefix แล้วเป็นชื่อของช่อง ทิศ ราคาของขอบที่ถูกเบรก (ไม่ใช่ราคาปิด) สัญลักษณ์ และไทม์เฟรมแบบรหัสของ TradingView (5 คือ 5 นาที 60 คือ 1 ชั่วโมง) กดข้อความเพื่อไปที่แท่งนั้นThe log under the chart shows the messages you would get, newest first, e.g.SIB | NY IB break ▲ @ 3966.375 | XAUUSD 5: the Message prefix, the slot's name, the direction, the price of the edge broken (not the close), the symbol, and the timeframe as TradingView's code (5 is 5 minutes, 60 is 1 hour). Press one to jump to its bar.
3ปรับแล้วได้อะไรWhat each setting changes
เรียงตามหน้าตั้งค่าบน TradingView ปุ่มสีทองในแต่ละข้อจะเปลี่ยนค่าบนกราฟด้านบนให้ดูทันทีIn the order TradingView lists them. The gold buttons change the chart above so you can see the effect.
Alertsสวิตช์และข้อความSwitches and message4
สวิตช์หลักของ alert ค่าเริ่มต้นปิด หลังเปิดแล้วสร้าง alert บน TradingView อันเดียวที่ Any alert() function callThe alerts' master switch, off by default; after switching it on, create one TradingView alert on Any alert() function call.
ค่าเริ่มต้นเปิด ในโค้ด v1.1.0 การเบรกถูกตรวจเฉพาะบนแท่งที่ปิดแล้วอยู่แล้ว ปิดช่องนี้จึงไม่ทำให้ alert ส่งระหว่างแท่ง (คำอธิบายบน TradingView บอกว่าส่งระหว่างแท่งได้) alert จึงไม่ repaint ทั้งสองแบบ ตัวอย่างนี้ไม่ใช้ช่องนี้On by default. In the v1.1.0 code a break is only checked on a closed bar, so switching this off does not make the alert fire mid-bar (its tooltip on TradingView says it can); either way the alert never repaints. The demo does not use this input.
คำแรกของทุกข้อความ ค่าเริ่มต้น SIB ใช้แยกสคริปต์เมื่อหลายตัวส่งเข้า webhook เดียวกันThe first word of every message, SIB by default; it tells scripts apart when several feed one webhook.
ราคาปิดเหนือ High หรือใต้ Low ของ IB ของช่องที่เปิดอยู่ หลัง IB Duration ผ่านไปแล้ว ฝั่งละครั้ง พร้อมใหม่เมื่อปิดกลับเข้าในกรอบ ใน Session Mode แบบ Active Only นับเฉพาะ IB ที่กำลังแสดงPrice closes above the High or below the Low of an enabled slot's IB once IB Duration has passed: once per side, re-armed by a close back inside. In Active Only Session Mode only the IB on show counts.
4ทดลองปรับค่าเองTry it
- Active Only กับ alertActive Only and the alert
เปลี่ยน Session Mode เป็น Active Only รายการลดลง เพราะ IB ที่ไม่ได้แสดงไม่ส่ง alertSwitch Session Mode to Active Only: fewer entries, since an IB not on show sends nothing.
- ข้อความของคุณเองYour own wording
เปลี่ยน prefix เป็น GOLD และชื่อของ NY เป็น New York แล้วดูบันทึกChange the prefix to GOLD and NY's name to New York, then read the log.
5จุดที่มักเข้าใจผิดCommon pitfalls
- ราคาแกว่งคร่อมขอบได้หลาย alertChop across an edge gives several alerts
การพร้อมใหม่ใช้แค่ราคาปิดกลับเข้าในกรอบหรือแตะขอบพอดี ราคาที่ปิดสลับในและนอกขอบไปมาจึงส่ง alert ทุกครั้งที่ปิดออกไปใหม่ ในตัวอย่างนี้ NY IB break ▼ ที่ 3946.585 จึงมาหลายครั้งในเช้าวันเดียวThe re-arm needs only a close back inside the range, or on its edge, so price closing in and out across an edge alerts on every new close outside. In this sample NY IB break ▼ at 3946.585 comes several times in one morning.
- สองช่องเบรกในแท่งเดียวได้ข้อความเดียวTwo slots breaking on one bar give one message
alert ส่งได้แท่งละครั้ง ถ้าหลายช่องเบรกในแท่งเดียวกัน ข้อความจะบอกช่องที่อยู่ลำดับหลัง (NY ก่อน London ก่อน Asia) อีกช่องไม่มีข้อความThe alert sends once per bar. When several slots break on the same bar the message names the later slot (NY over London over Asia); the other gets no message.
- alert ยังมาหลัง session ปิดAlerts still come after the session closes
ใน All Sessions และ Current Session การเฝ้ายังทำต่อหลังช่วงเวลาปิด จนกว่าช่องนั้นจะเริ่ม IB ใหม่ IB ของ NY จึงอาจส่ง alert ระหว่างช่วงเอเชีย ถ้าไม่ต้องการ ใช้ Active OnlyIn All Sessions and Current Session the watch carries on past the window's close until the slot starts a new IB, so NY's IB can alert during Asian hours. Use Active Only to avoid it.
- Hide above ปิด alert ด้วยHide above silences the alert too
บนกราฟที่ไทม์เฟรมสูงกว่า Hide above (ค่าเริ่มต้น 4H) ไม่มีทั้งการวาดและ alertOn a chart above Hide above (4H by default) there is neither drawing nor alert.
อ้างอิงReference
การตั้งค่าทั้งหมดAll settings
ทุกช่องตั้งค่าของ v1.1.0 เรียงตามหน้าตั้งค่าบน TradingView ช่องที่มีจุดทอง เปลี่ยนแล้วกราฟเปลี่ยนตาม กด (i) เพื่ออ่านคำอธิบายของช่องนั้นEvery input of v1.1.0, in the order TradingView shows them. Inputs with a gold dot change the chart; press (i) for an input’s description.