OPEN-SOURCE SCRIPT
Attempted candles - customizable lines and infobox

Attented candles are candles that collect their liquidity above or below the previous candle and then run in the opposite direction:
Short trade
Candle gets liquidity above the previous candle and then ends up as a red candle
Long Trade
Candle picks up liquidity below the previous candle and then ends up as a green candle
The following information lines and info box are calculated as follows:
Short trade
2 pips above the high of the candle creates the red SL line
Entry is at the close of the candle
Distance between SL and entry is Risk 1
The TP line is then created below the close of the candle at the distance of the CRV
Long Trade
2 pips below the low of the candle creates the red SL line
Entry is at the close of the candle
Distance between SL and entry is Risk 1
The TP line is then created above the close of the candle at the distance of the CRV
In order to keep track of several lines, the SL, Entry and TP lines are connected with a common vertical line.
The following is adjustable:
Length of information lines
Width of information lines
Width of the fiber
Connecting line on/off, color and opacity
Pip value (default 0.0001)
Distance of SL line in pips
CRV (Standard 3)
Distance of the info box for long trades from the SL
Distance of the info box for shorttrades from the SL
Minimum Distance of the info box (default 3)
Display of TP, Entry, SL on/off
Font size of the info box
The information on TP, Entry and SL are pure suggestions.
Short trade
Candle gets liquidity above the previous candle and then ends up as a red candle
Long Trade
Candle picks up liquidity below the previous candle and then ends up as a green candle
The following information lines and info box are calculated as follows:
Short trade
2 pips above the high of the candle creates the red SL line
Entry is at the close of the candle
Distance between SL and entry is Risk 1
The TP line is then created below the close of the candle at the distance of the CRV
Long Trade
2 pips below the low of the candle creates the red SL line
Entry is at the close of the candle
Distance between SL and entry is Risk 1
The TP line is then created above the close of the candle at the distance of the CRV
In order to keep track of several lines, the SL, Entry and TP lines are connected with a common vertical line.
The following is adjustable:
Length of information lines
Width of information lines
Width of the fiber
Connecting line on/off, color and opacity
Pip value (default 0.0001)
Distance of SL line in pips
CRV (Standard 3)
Distance of the info box for long trades from the SL
Distance of the info box for shorttrades from the SL
Minimum Distance of the info box (default 3)
Display of TP, Entry, SL on/off
Font size of the info box
The information on TP, Entry and SL are pure suggestions.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน