So my question is how can I replicate the NT8 data series in NT7?
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
Strategy on Heiken-Ashi tick Bars
Collapse
X
-
Strategy on Heiken-Ashi tick Bars
I have developed a strategy in NT8, but unfortunately my live license is only for NT7, currently. This strategy runs on Heiken-Ashi tick bars but this method isn't supported in NT7 as it is in NT8.
So my question is how can I replicate the NT8 data series in NT7?Tags: None
-
Hello MisterGee,
Thanks for your post.
In NinjaTrader7 you would create the dataseries with the same value of tick bars as in NinjaTrader8. In NinjaTrader7 you would use the Heiken-Ashi indicator to have the bars then show the same as Ninjatrader8.
To access the Heiken-Ashi price values you would need to refer to the indicator, as an example, in this manner: if (HeikenAshi().HAClose[0] > EMA(8)[0])
You would use HAOpen, HALow, HAHigh as needed.Paul H.NinjaTrader Customer Service
-
Hello MisterGee,
Thanks for your post.
In NinjaTrader7 something like:
if (CrossAbove(HeikenAshi().HAClose, EMA(8), 1))
{
// do something
}
References:
http://ninjatrader.com/support/helpG...eiken_ashi.htm
http://ninjatrader.com/support/helpG...crossabove.htm
http://ninjatrader.com/support/helpG...crossbelow.htmPaul H.NinjaTrader Customer Service
Comment
-
Hello MisterGee,
Thanks for your post.
I am unsure of your meaning by functionality as the two EMAs crossing is quite different than the close of the bar crossing an EMA. The code example I provided would function as a crossabove based on the underlying tick bar crossing above the.EMA(8).Paul H.NinjaTrader Customer Service
Comment
-
Hello MisterGee,
Thank-you for clarifying.
In Ninjatrader7, because Heiken-ashi bars are an indicator, you would need to use the Heiken-ashi as the input series to the EMAs. Typically the EMA would use the tick bars close so when using Heiken-Ashi you would specify the HAClose. Here is a cross above example:
if (CrossAbove(EMA(HeikenAshi().HAClose, 5), EMA(HeikenAshi().HAClose, 10), 1))
{
// do something
}Paul H.NinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_PaulH View PostHello MisterGee,
Thanks for your post.
In NinjaTrader7 you would create the dataseries with the same value of tick bars as in NinjaTrader8. In NinjaTrader7 you would use the Heiken-Ashi indicator to have the bars then show the same as Ninjatrader8.
To access the Heiken-Ashi price values you would need to refer to the indicator, as an example, in this manner: if (HeikenAshi().HAClose[0] > EMA(8)[0])
You would use HAOpen, HALow, HAHigh as needed.
Hello,
I would like to create a strategy that sells when a Heiken Ashi candle is red. I tried implementing it based on your instructions:
Code:if (HeikenAshi().HAOpen[0] > HeikenAshi().HAClose[0]) { EnterShort(); }
However, I encountered an error message when compiling the script:
The name "HeikenAshi" does not exist in the current context.
Any guidance on resolving this issue would be greatly appreciated.
Thanks
Comment
-
Hello kiro1000,
If you are by chance using NT7 the error would mean that where you tried to use that code was incorrect.
If you are otherwise using NT8 that would be expected, heiken ashi indicator is not included with NinjaTrader 8. The platform includes a bars type of heiken ashi instead. To use this type of condition in NT8 you would have to use the heikenashi8 indicator instead. https://ninjatraderecosystem.com/use...heiken-ashi-8/
For NT8 I would suggest using the strategy builder to create the condition so that it generates the correct syntax to use the indicator.
JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by alifarahani, Today, 09:40 AM
|
6 responses
39 views
0 likes
|
Last Post
by alifarahani
Today, 03:18 PM
|
||
Started by Waxavi, Today, 02:10 AM
|
1 response
18 views
0 likes
|
Last Post Today, 03:03 PM | ||
Started by Kaledus, Today, 01:29 PM
|
5 responses
15 views
0 likes
|
Last Post Today, 02:56 PM | ||
Started by Waxavi, Today, 02:00 AM
|
1 response
12 views
0 likes
|
Last Post Today, 02:53 PM | ||
Is it possible to have a drawing, such as a line, cycle through different colors?
by gentlebenthebear
Started by gentlebenthebear, Today, 01:30 AM
|
3 responses
17 views
0 likes
|
Last Post Today, 02:41 PM |
Comment