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
HeikenAshi Question
Collapse
X
-
Hello aemaem,
The HeikenAshi indicator can be applied to a chart with Renko bars. Calling the indicator in a script would be the same.
-
That looks OK. Did you notice any issues using it? Only thing I see is you need parentheses. ( )
if (HeikenAshi().HAClose[0] > HeikenAshi().HAOpen[0])
{
EnterLong();
}
Leave a comment:
-
Ryan......
Simply put, I am trying to do this........
if HeikenAshi().HAClose[0] > HeikenAshi().HAOpen[0]
{
EnterLong();
}
Leave a comment:
-
Ryan.......
I have tried various codes to do this to no avail. Any chance you could show me how it would look?
Leave a comment:
-
Yea Ryan.....that's what I figured and is exactly what I did....thanks for the confirmation.......
Leave a comment:
-
Hi EdgeLiner,
Unfortunately there is no support for accessing the color values of bar series or indicators programatically. The BarColor property is for assignment only - can't read from it. You have to identify the conditions that cause a color change.
In a standard bar, this is simply Close[0] > Open[0]. HeikenAshi uses a different implementation, but you can check source code for it by clicking Tools > Edit NinjaScript > Indicator > Select HeikenAshi and Open.
Leave a comment:
-
HeikenAshi Question
If I am running a strategy and want to go long when the HeikenAshi is a green candle, why doesn't this open a position.........
// Condition set 1
if (Position.MarketPosition == MarketPosition.Flat
&& BarColor == Color.Green)
{
EnterLong("");
}Last edited by edgeliner; 05-04-2011, 10:52 AM.Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by burtoninlondon, Today, 12:38 AM
|
0 responses
5 views
0 likes
|
Last Post Today, 12:38 AM | ||
Started by AaronKoRn, Yesterday, 09:49 PM
|
0 responses
12 views
0 likes
|
Last Post
by AaronKoRn
Yesterday, 09:49 PM
|
||
Started by carnitron, Yesterday, 08:42 PM
|
0 responses
11 views
0 likes
|
Last Post
by carnitron
Yesterday, 08:42 PM
|
||
Started by strategist007, Yesterday, 07:51 PM
|
0 responses
13 views
0 likes
|
Last Post Yesterday, 07:51 PM | ||
Started by StockTrader88, 03-06-2021, 08:58 AM
|
44 responses
3,982 views
3 likes
|
Last Post
by jhudas88
Yesterday, 06:59 PM
|
Leave a comment: