Is there any way to trigger an alert when a FVG is drawn?
If I go to the alerts dialog and add a condition, the FVG indicator is no present in the list of indicators, even though it is an active indicator on the chart window.
Has anyone figured out how to add an alert for this indicator??
I just went into the code of the Indicator and added an Alert whenever the Rectangle was actually being drawn.
Draw.Rectangle(this, tag, false, fvg.StartDateTime, fvg.LowerPrice, future, fvg.UpperPrice, UpBrush, UpAreaBrush, ActiveAreaOpacity, true);
Alert("FVGAlertUp", Priority.High, ""+ sDataSeries +"up FVG formed", NinjaTrader.Core.Globals.InstallDir+@"\sounds\Alert4.wav", 10, Brushes.Black, Brushes.Yellow);
It’s only there in two places. Add those lines in, recompile, and you’re done!
1 Like
NjTMatthew:
p", Pr
Thanks, Mathew. I have a software development background, but I’ve never edited code in NinjaTrader.
Thanks for the FVG Up, I imagine I need to put in an FVG down as well
Where would I find the source file for the indicator?
How do I recompile it? Does NT do it or do I use an external tool?
Please advise,
*B
Found the source code in the @FVG.sc file in …Documents\NinjaTrader 8\bin\Custom\Indicators.
Oh, it’s straight up .NET C#. Okay, easy to edit.
@NjTMatthew : Does it automatically recompile or do I need to run some other EXE?
Never mind. Google is my friend.
Full instructions there. Now I know how to view the source, modify and compile it. Thanks again Matthew!
1 Like