Fair Value Gap (ICT) v0.0.3.0

This is an update to the Inner Circle Trader (ICT) Fair Value Gap (FVG) v0.0.2.3 indicator by gemify​.

The image shows the extras I have added.
The Max Lookback Bars was removed because all it did was prevent the indicator from detecting FVG for X bars.

The two primary improvements added is:
Require FVG bars in same direction. When enabled, the three FVG bars must all be up bars for an upward FVG to be detected.
Time Ranges: Pretty self explanatory. Now the FVG can be limited to the three Silver Bullet times, or simply RTH.

Plus several little tweaks internally.

Future wish list improvements:
I'd like to be able to combine two FVG's that are close together into one FVG, but it depends on how worthy I think the technique is for trading. Maybe someone else would like to take this on. It will require redoing the Draw.Rectangle tag and List<> object.

The ATR calculation was fixed. The original code only fed the Close price to the ATR, but it requires High, Low, & Close prices.

If you want to learn how to use a Fair Value Gap, do a search on YoutibeThere are several good videos. That is how I learned, because I did Not create the concept, so please don't ask.

Updates:

v0.0.3.1

Improved the "Max Days to extend forward" part of the code. The FV Gap rectangles now end at the Trading Hours > Session End time of the "Trading hours" you set the chart to. (eg. On an /ES chart that would typically be 5pm EST).
In v0.0.3.0 the ending time was supposed to be at midnight local time, but was not consistent. I made the change, because I want the rectangles to end shortly after the market closes.

Other minor code adjustments and/or improvements, such as to the FVG class to improve the CheckFilledFVGs method.

v0.0.3.0

​​The image shows the extras I have added.

The two primary improvements added are:
Require FVG bars in same direction. When enabled, the three FVG bars must all be up bars for an upward FVG to be detected.
Time Ranges: Pretty self explanatory. Now the FVG can be limited to the three Silver Bullet times, or simply RTH.

The ATR calculation was fixed. The original code only fed the Close price to the ATR, but it requires High, Low, & Close prices.

Plus several little tweaks internally.

The Max Lookback Bars was removed because all it did was prevent the indicator from detecting FVG for X bars.

Future wish list improvements:
I'd like to be able to combine two FVG's that are close together into one FVG, but it depends on how worthy I think the technique is for trading. Maybe someone else would like to take this on.

Happy Trading.

Created By zacharydw00
NinjaTrader Version 8
File Size 7.3 KB
Create Date 07/03/2023
# of Downloads 6927

Importing to NinjaTrader 8 is Easy!

To import your 3rd party app or add-on to NinjaTrader, simply follow these 3 steps:

  1. Download the app or add-on file to your desktop
  2. From the NinjaTrader Control Center window, select the menu Tools > Import > NinjaScript Add-On…
  3. Select the downloaded file from your desktop

Questions?

Visit the NinjaScript File Sharing discussion in the NinjaTrader user forum to interact with fellow traders and the NinjaTrader support team.