vaidab

Swing Failure Pattern Inquisitor

SFP Inquisitor
v0.2a

coded by Bogdan Vaida

Code for Swing High, Swing Low and Swing Failure Pattern.
Note that we're still in the alpha version, bugs may appear.

Note that the number you set in your Swing History variable
will also be the minimum delay you see until the apples appear.
This is because we're checking the forward "history" too.

The SFP will only check for these conditions:
- high above Swing History high and close below it
- low below Swing History high and close above it

In some cases you may see an apple before the SFP that "doesn't fit"
with the SFP conditions. That's because that apple was drawn later and
the SFP actually appeared because of the previous apple .
20 candles later.

Legend:
🍏 - swing high
🍎 - swing low
🧺 - candle where the last swing was driven from
🍌 - swing failure pattern
🍎🍌 - hungry scenario: swing low but also a SFP compared to the last swing
發布通知: Added strategy code.
發布通知: Added alerts.
開源腳本

秉持真正的TradingView精神,該腳本的作者將其開源發佈,因此交易者可以理解和驗證它。為作者加油!您可以免費使用它,但是在發佈中重複使用此程式碼受網站規則的約束。您可以把它加入到常用以在圖表上使用它。

想在圖表上使用此腳本?

評論

Ah, never mind it repaints it self when refresh page or change timeframe,it useless for real trading
+5 回覆
vaidab dddom
It actually works for real trading if you get to understand the code. You don't trade using the swing high/low (which get repainted because you, per definition, need the forward bars too), you trade using the swing failure pattern which *doesn't* get repainted (even though it uses barssince because it checks only that a historical swing exists there). So if you add an alert for the SHFP/SLFP to become >0 you will be notified real time when such a pattern happens, which is the exact purpose of the code. So it's used for real trading without any issue, but it's not an indicator that pinpoints a moment to buy, it pinpoints a change in market structure that's indicative of a move. You'd normally take into account OI, POC, shorts/longs relations and others.
回覆
dddom vaidab
@vaidab, Sorry, I don't understand what you mean,what's the point of drawing🍏🍎🍌 ?
回覆
vaidab dddom
The banana is the swing failure pattern, that's what you want to trade. The apples are the swing highs and the swing lows. They are there just to show you from where is the banana calculated. The idea is that sometimes, swings fail and that's the time that you can trade them. How you trade them it depends on those other factors I've mentioned. It's not a script that points to a buy or sell signal, it's a script that identifies a pattern (like a hammer candle). It pinpoints a particular market structure that gives you additional information when you trade. The banana (SFP) adds confluence to the idea that price won't swing there so it *might* go the opposite direction.
There aren't many scripts on trading view that have identify SFP and there's no script at the time of this writing that also provides the source.
+1 回覆
dddom vaidab
@vaidab, thx.I will study this script again!
回覆
@vaidab, So, can i short the upper banana and long the lower banana? I try to do so, but sometime rekt, please help ...
回覆
@vaidab, Sir, it would be very helpful if i know to long and short ehich banana? Please help.....
回覆
vaidab DeadMoonboi47
Please read about the Swing Failure Pattern on Google/Youtube, don't blindly trade based on one single indicator, you need to find confluence with other indicators.
回覆
Can you add alert options for green/red apples? Can you elaborate on the operation?
回覆
vaidab shyPlayer9369
The SFP pattern works with the bananas. The green and red apples are swings (thus they need forward candles to know that they are swings). So you would get the alert after 10 candles or so.
Please read about the SFP pattern on the internet to understand how to trade it. Here's a video, for example: https://www.youtube.com/watch?v=z0DAg9VOJWs
回覆