It gets really messy to set up a strategy across several currency pairs and time frames, plus NT does not seem to cope well with the extra workload, so thought it should be fairly easy to set it up on MA.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Donchian Alert NT7
Collapse
X
-
Donchian Alert NT7
I am trying to work out how to set an alert via the MA for when the price crosses Donchian mean line. Can anyone point me in the right direction please.
It gets really messy to set up a strategy across several currency pairs and time frames, plus NT does not seem to cope well with the extra workload, so thought it should be fairly easy to set it up on MA.Tags: None
-
Hello HJBaggaley,
Yes, the market analyzer is good for checking conditions across a group of instruments. A common approach for alerting or filtering is setting plot as 1 when conditions are true and 0 otherwise. You can then check any alerting when that column == 1.
if (CrossAbove(Close, DonchianChannel(14).Mean, 1))
{
Plot0.Set(1);
}
else
Plot0.Set(0);Ryan M.NinjaTrader Customer Service
-
Help
Thanks for your prompt reply. Sorry to sound a bit thick,. The only 'plot' in MA gives a choice of Mean, Lower or Upper.
I have to then assume you are suggesting 'writing' a code for the MA?
Comment
-
Yes, setting crossover alerts with another indicator and price requires custom programming. The snippet included in my first reply will do this. Click Tools > New > NinjaScript > Indicator
Walk through the wizard and then paste that snippet in the Indicators OnBarUpdate() section.Ryan M.NinjaTrader Customer Service
Comment
-
Not programmer......
Thanks for that
It was not really the answer I was looking for as I am not a programmer and although I have tried to follow your notes, and in the past the copious help guides to no avail, I am obviously doing something wrong as I keep getting error messages.
I was thinking that there should be a way of setting this up within MA itself rather than taking a masters in simple programming.
Thanks anyway.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by 09try, 03-29-2024, 01:27 PM
|
9 responses
79 views
0 likes
|
Last Post
by ntcat
Today, 01:16 PM
|
||
Started by ninza33, Today, 06:28 AM
|
4 responses
17 views
0 likes
|
Last Post
by ninza33
Today, 12:38 PM
|
||
Started by ScottWalsh, Yesterday, 04:29 PM
|
4 responses
18 views
0 likes
|
Last Post Today, 12:00 PM | ||
Started by Gibranes, Today, 10:05 AM
|
4 responses
20 views
0 likes
|
Last Post
by Gibranes
Today, 11:54 AM
|
||
Started by f.saeidi, Today, 08:12 AM
|
2 responses
19 views
0 likes
|
Last Post
by f.saeidi
Today, 11:46 AM
|
Comment