TheTradingParrot

QFL single TF with alerts

TheTradingParrot ที่อัปเดต:   
Backtesting compatible QFL pine script w/alerts

This version of QFL was made based on this one:

From author:
www.tradingview.com/u/synapticEx/

I made the following additions according to my requirements:
- I need to use pine script 4
- I needed to avoid repainting issues so I'm not calling directly security, I'm using the wrapper function.
- There might be still repainting issues when you use "max base age" which uses the function "barssince" so be careful, you can disable it by setting its value to zero.
- Alerts so I can use it for automated trading and bots
- In order to make this signal compatible with the backtest script there's an option provided in the settings. If you enable this option this indicator will plot 1 whenever there's a BUY signal. This will allow the backtest to pick the "QFL Buy" from external indicator so it can perform the backtest.

I recommend some of these settings to start playing with the chart in 15 min / QFL in 1, 2 or 4 hours.
The higher the TF the more conservative.
QFL with 3.5% is pretty popular but you can try higher QFL percentage settings for a more conservative approach.

เอกสารเผยแพร่:
- added sell signal
- added toggle to hide bases and buy/sell signals
- added alerts
เอกสารเผยแพร่:
- added separated sell percentage parameter. Example of use: you can buy at 3.5% and sell at 2% which could make more sense on a bear market.
เอกสารเผยแพร่:
- changed default max candle age to disabled
- added an option to allow consecutive signals which triggers signals that match the condition in two or more consecutive candles. This can help to place multiple trades when they manage to close quick enough.
- added an option for allowing signals that are consecutive when the base has changed even if the allow consecutive signals option is turned off
เอกสารเผยแพร่:
Support for knowing when the base has moved to a new price.
Base change works for longs and shorts.
It supports alerts and it shows a label when the base changes.
Remember that QFL bases are plotted with an offset of 3 candles according to the original design, so the label and the alert will only be trigger once the base 100% confirmed to prevent re painting but this will mean the label will look shifted to the right.

Join our membership to gain access to the private scripts.
www.thetradingparrot.com
สคริปต์โอเพนซอร์ซ

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

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

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

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?