protected override void OnBarUpdate() { if(Low[0]>Low[1]) Plot0.Set(0); else Plot0.Set(1); }
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Market Analyzer scripted alert indicator doesn't seem to fire...
Collapse
X
-
Market Analyzer scripted alert indicator doesn't seem to fire...
Hi all. I'm trying to get started writing indicators to be used in Market Analyzer. I've written the simplest one I can think of to start small. It compiles, then fires once right after I add it/ click "ok." From then on, when the condition it checks for is hit (visible on a chart) I don't see another alert. Some quick context: I don't need to plot anything graphically yet, I just want to generate alerts. Also, I'm basing my assumption that it should be firing by watching a 1 min candle chart. My simple logic is that if the latest bar's low is > the prior bar's low, return '0', which should fire the alert. I attached two screenshots of my MA/ alert settings. Here's the method:
Code:Tags: None
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Mestor, Today, 03:15 AM
|
0 responses
1 view
0 likes
|
Last Post
by Mestor
Today, 03:15 AM
|
||
Started by Mestor, 03-10-2023, 01:50 AM
|
11 responses
305 views
0 likes
|
Last Post
by z.franck
Today, 02:29 AM
|
||
Started by Padan, Today, 02:02 AM
|
0 responses
6 views
0 likes
|
Last Post
by Padan
Today, 02:02 AM
|
||
Started by bukowa, 11-09-2023, 06:07 PM
|
20 responses
407 views
0 likes
|
Last Post
by Adfra
Today, 01:36 AM
|
||
Started by yertle, Yesterday, 05:49 PM
|
2 responses
11 views
0 likes
|
Last Post
by yertle
Today, 12:12 AM
|
Comment