Since I'm not very familiar with NinjaScript, does anyone have already configured a strategy file with a sound alert whenever a reversal occurs (red squares in the attachment) ?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Parabolic SAR
Collapse
X
-
Parabolic SAR
Parabolic SAR is one of Ninja's default indicators. It is dispayed as a series of points over or under the stock quotation: the passage from upwards to downwards (or viceversa) would signify a trend reversal.
Since I'm not very familiar with NinjaScript, does anyone have already configured a strategy file with a sound alert whenever a reversal occurs (red squares in the attachment) ? -
fliesen, thanks for the post - while it would not yet have an Alert in, you could see a basic strategty example with PSAR here - http://www.ninjatrader.com/support/f...6&postcount=37
On the condition seen for entries, a call to the NinjaScript Alert() method could be added in for sure as well.
BertrandNinjaTrader Customer Service
-
ParabolicSAR
Ok, I've looked at that old post # 340729, or 311466. As far as I understand (the used language is more suitable for experts), the reported file "ParabolicSARFix.zip" is just a fix for NT6, but now we have NT7 and we don't need it, since the ParabolicSAR indicator works fine in the newest version.
Another attached file in the post is "PSARRevNT7.zip": I've explored it and found an "Indicator" and a "Strategy" folder, this one with a file "ParabolicSARRev.cs": what must I do with it ?
Otherwise, am I wrong if I use Tools -> New NinjaScript -> Strategy -> Create a new strategy -> Next -> (Name & Description) -> Next -> (no user defined) -> Next -> Set1 -> Add Condition -> "ParabolicSAR" Indicator "CrossAbove" Price Data "Median" -> Add Condition -> "ParabolicSAR" Indicator "CrossBelow" Price Data "Median" -> Next -> Do the following -> Add Misc Alert -> OK -> Next -> Finish ?
Comment
-
Thanks.
After configuring the strategy, how do I activate it ?
Is there anything simpler than right-clicking on the Control Center/Strategies tab and selecting "New Strategy" + the single instrument + the Session Template 24/7 as in the attachment, plus repeating this for EACH SINGLE instrument (and for ANY frametime) I want to alert + enabling them all ?Last edited by fliesen; 08-06-2013, 05:37 AM.
Comment
-
Ok no problem.
Anyway
- when closing Ninja, is there a way to keep the strategies "enabled", or must we re-enable them all every new day ?
- I tried to intercept the MACD crossings of the 0 line (red circles in the attachment "MACD"), setting a strategy when MACD = 0, but this doesn't work. Where am I wrong ?Last edited by fliesen; 08-06-2013, 01:13 PM.
Comment
-
-
but how ? Which entity must I take into account if the oscillator is the result of three averages (a "Fast", a "Slow" and a "Smooth" one), and how do I ascertain when it crosses its 0 line (what means "> 0") if I can't put mathematical numbers as comparison in the second column ?
Comment
-
Fliesen,
When you check the condition of the Price Oscillator as in your example -
Code:if(PriceOscillator(1,8,3)[0] > 0) { // Do something }
[0] will refer to the CurrentBar in which it pulling the double value.
This is not like the MACD where it has three different plots and three different values.Cal H.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Stanfillirenfro, Today, 07:23 AM
|
1 response
3 views
0 likes
|
Last Post Today, 07:37 AM | ||
Started by cmtjoancolmenero, Yesterday, 03:58 PM
|
2 responses
21 views
0 likes
|
Last Post Today, 07:24 AM | ||
Started by olisav57, Yesterday, 07:39 PM
|
1 response
9 views
0 likes
|
Last Post Today, 07:23 AM | ||
Started by cocoescala, 10-12-2018, 11:02 PM
|
7 responses
944 views
0 likes
|
Last Post
by Jquiroz1975
Today, 07:21 AM
|
||
Started by oviejo, Today, 12:28 AM
|
1 response
12 views
0 likes
|
Last Post Today, 07:20 AM |
Comment