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
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 advanceTags: 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 Brevo, Today, 01:45 AM
|
0 responses
6 views
0 likes
|
Last Post
by Brevo
Today, 01:45 AM
|
||
Started by aussugardefender, Today, 01:07 AM
|
0 responses
3 views
0 likes
|
Last Post Today, 01:07 AM | ||
Started by pvincent, 06-23-2022, 12:53 PM
|
14 responses
242 views
0 likes
|
Last Post
by Nyman
Today, 12:47 AM
|
||
Started by TraderG23, 12-08-2023, 07:56 AM
|
9 responses
384 views
1 like
|
Last Post
by Gavini
Today, 12:29 AM
|
||
Started by oviejo, Today, 12:28 AM
|
0 responses
6 views
0 likes
|
Last Post
by oviejo
Today, 12:28 AM
|
Comment