Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
SMA crossover using NT script
Collapse
X
-
SMA crossover using NT script
I am having problem with Sma crossing. I use sma 20 and sma 4 and to get an alert when 4 crosses over 20 to show a green triangle and when 4 crosses below 20 for red triangle. I see it visually on the chart, but the triangles show up after the fact on all 4x instruments and when it sends email to me I don't which instrument was triggered.do I have to have nt script on each instrument for email to be specific. I have example of one of the charts attached.Can some help??? I have tried it several times and the signal occurs but the triangles show several pips later. thanks in advance
Tags: None
-
The triangles are showing in the correct locations - the bar after the cross occurs. From your screenshot, most of the crosses occur between bars.
Have a read of the help file about onbarupdate and calculateonbarclose: http://www.ninjatrader-support.com/H...dateEvent.html
Comment
-
lakayana,
I suggest you review the tutorial on how to make strategies with the Strategy Wizard here first: http://www.ninjatrader-support.com/H...tml?Overview34
You want to just create yourself a Price vs Indicator condition. Please see this article for an idea: http://www.ninjatrader-support.com/H...ataComparisons
Instead of doing price vs price, on one side just select an indicator instead.Josh P.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
155 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
90 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
137 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
130 views
1 like
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
107 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|


Comment