TradingView
twingall
26 มีนา 2023 เวลา 17 นาฬิกา 2 นาที

FVGs & CEs + Alerts: simple & efficient method 

E-mini S&P 500 FuturesCME

คำอธิบาย

Fair Value Gap indicator: Paints FVGs and their midlines (CEs). Stops painting when CE is hit, or when fully filled; user choice of threshold. This threshold is also used in the Alert conditions.
~~Plotted here on ES1! (CME), on the 15m timeframe~~

-A FVG represents a 'naked' body where the wicks/tails on either side do not meet. This can be seen as a type of 'gap', which price will have a tendency to want to re-fill (in part or in full).
-The midline (CE, or 'Consequent encroachment') of FVGs also tend to show price sensitivity.
-This indicator paints all FVGs until priced into, and should give an idea of which are more meaningful and which are best ignored (based on context: location, Time of day, market structure, etc).
-This is a simpler and more efficient method of painting Fair value gaps which auto-stop painting when price reaches them.

//Aims of Publishing:
-Education of ICT concepts of Fair Value Gaps and their midlines (CEs): To easily see via forward testing or backtesting, the sensitivity that price shows to these areas & levels.
-Demonstration of a much more efficient way of plotting FVGs which terminate at price, thanks to a modification of @Bjorgums's clever looping method referenced below.

//Settings:
-Toggle on/off upward and downward FVGs independently(blue and orange by default).
-Toggle on/off midline (CE).
-Standard color/line formatting options.
-Choose Threshold: CE of FVG or Full Fill of FVG: This will determine both the 'stop-painting' trigger and the 'Alert' trigger.
-Choose number of days lookback to control how many historical FVGs paint on chart.

//On alerts:
-Simple choice of 2 alerts:
~~One for price crossing into/above the nearest untouched 'premium' FVG above ( orange ). Trigger is user choice of CE or full fill.
~~Another for price crossing into/below the nearest untouched 'discount' FVG below (blue). Trigger is user choice of CE or full fill.
-Alerts set via the three dots in indicator status line.

//Cautionary notes:
-Do not use the alerts blindly to find trades. Wait until you have identified a good FVG above/below which you think price may show sensitivity to
-Usage on very low timeframes can cause unexpected results with alerts: due to new FVGs forming in realtime the Alert will always trigger at the most recent FVG above/ below having its threshold hit.

-Big thank you to @Bjorgum for his fantastic extendAndRemove method. Modified here for use with boxes and to integrate Alerts.
-Also Credit to ICT (inner circle trader) for the concepts used here: Fair value gaps and their Consequent Encroachment (CE).

เอกสารเผยแพร่

-Toggle box to delete filled FVGs & CE lines entirely once filled or threshold crossed (default is OFF)

เอกสารเผยแพร่

-Added IOFED alerts (insitutional order flow entry drill: ICT concept): Optional alert for when price merely enters FVG (crossing above the low of FVG above, or crossing below the high of FVG below).
--These alerts are unaffected by the indicator dialog box toggle box (unlike the above/below threshold alerts: CE or Full Fill)

เอกสารเผยแพร่

-Added two more alerts for the simple confirmation of newly formed FVGs (bottom two alerts from the list of six)
-Clarified Alert titles & messages

เอกสารเผยแพร่

~Added two more simple alerts for UN-Confirmed FVGs. See the dropdown list of alerts. Un-confirmed means you get early alert as soon as FVG forms, NOT waiting for the realtime bar to close and confirm the FVG.
ความคิดเห็น
SurajRimal
Thank you for this amazing indicator. Is it possible to delete FVG when they are filled?
twingall
@SurajRimal, Just updated to enable this. Default is toggled off, to have filled FVGs delete just check the toggle box midway down the indicator settings.
Exzal1
Hi ! I really like this script...
I'm having hard time to convert it to some kind of strategy, only to test the statistics using different parameters...

Is it something you would be willing to do to have a strategy part into the script, like "enter a trade when the price touch the threshold" ? I would be grateful, otherwise, thank you for this.

Have a great day.
okiayd
Hello, first of all, thank you very much for the indicator, it is very useful. Today I noticed that the alarms do not give timely warning. I set an alarm for 30 minutes. It closed for 30 minutes and then gave a warning when the second candle appeared. Could you check it, please? Thanks
sheryaarrodriguez
I was checking the "FVGs & CEs + Alerts: simple & efficient method". I need an alert when a FVG on 4H gets printed. How can I get an alert just for a 4H FVG and not for any other FVG?
twingall
@sheryaarrodriguez, set the alert on a 4hr chart. That alert will be stored in TV servers only applying to 4hr chart
alexlimlexart
Can you add MTF and FVG label inside the boxes thank you. Awesome alerts!
Arun_K_Bhaskar
This is simple and fast with all features. Many other fvg codes looks very complicated. It will be good if you add a multi timefame option.
Arun_K_Bhaskar
Please add multi timeframe.
happysalad
Thank you for excellent indicator but please check the alert for IOFED event. I usually set the daily candle IOFED alert but it has not been working these days...
เพิ่มเติม