https://tw.tradingview.com/v/9uvZIPnH/

This strategy goes long when highs are broken and uses a trailing stop that follows swing lows. User can configure a back test date range and choose whether or not to only take trades above a selected moving average.該策略在高點被突破時做多,並在擺動低點之後使用追蹤停損。使用者可以配置回溯測試日期範圍,並選擇是否僅在選定的移動平均線之上進行交易。The desire for me to make this script was to try to capture those extreme breakouts that can occur after a consolidation/equilibrium pattern. This catches those using stop-buys as the entry. Out of all the scripts I have made thus far, this one is the one that has the best results. Time frames might vary due to commission structures, etc. I currently use this strategy on stocks on the 30-min time frame and crypto (with Coinbase's high fees) on the 2-hr time frame.我製作這個腳本的願望是嘗試捕捉盤整/平衡模式後可能發生的極端突破。這抓住了那些使用止損買進的人。在我迄今為止製作的所有腳本中,這個是效果最好的一個。時間框架可能會因佣金結構等因素而有所不同。

發行說明

Cleaned up the code a bit and added some tooltips to the input to help people more.

稍微清理了程式碼並向輸入添加了一些工具提示以幫助人們更多。

Added the ability to select a second moving average on a different time frame to act as an entry filter. So if you wanted to screen for stocks only above their 50-day MA (as an example) it will show this in the chart now on all time frames.

新增了在不同時間範圍內選擇第二個移動平均線作為入場過濾器的功能。因此,如果您只想篩選高於 50 日移動平均線(作為範例)的股票,它會在圖表中的所有時間範圍內顯示這一點。

Added the ability to filter out trades that have poor risk/reward based on daily ATR values. As an example, the default value is if the price delta between your buy stop and sell stop is more than 1 ATR, it won't make that buy.

新增了根據每日 ATR 值過濾掉風險/回報較差的交易的功能。例如,預設值是如果買入停損和賣出停損之間的價格增量超過 1 ATR,則不會進行買入。

發行說明

Added the ability to filter out trades that are above a certain RSI level. The idea behind this filter is that you don't want to be buying breakouts when the previous bar is already overbought.

新增了過濾掉高於特定 RSI 等級的交易的功能。這個過濾器背後的想法是,當前一個柱子已經超買時,您不想買入突破。

發行說明

Some additional code cleanup, more user-configurability, chart cleanup for a more minimal look, and a bug fix.

一些額外的程式碼清理、更多的用戶可配置性、圖表清理以獲得更簡約的外觀以及錯誤修復。