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!
See more
See less

Partner 728x90

Collapse

HeikenAshi Question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NinjaTrader_ChelseaB
    replied
    Hello aemaem,

    The HeikenAshi indicator can be applied to a chart with Renko bars. Calling the indicator in a script would be the same.

    Leave a comment:


  • aemaem
    replied
    Originally posted by edgeliner View Post
    Ryan......

    Simply put, I am trying to do this........

    if HeikenAshi().HAClose[0] > HeikenAshi().HAOpen[0]
    {
    EnterLong();
    }
    Hello everyone,
    Does this code work for renko ?

    i use NT8

    Thanks

    Leave a comment:


  • NinjaTrader_RyanM1
    replied
    Glad to hear. Thanks for following up!

    Leave a comment:


  • edgeliner
    replied
    You know what Ryan.....you are right......it does work! Sorry!

    Leave a comment:


  • NinjaTrader_RyanM1
    replied
    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:


  • edgeliner
    replied
    Ryan......

    Simply put, I am trying to do this........

    if HeikenAshi().HAClose[0] > HeikenAshi().HAOpen[0]
    {
    EnterLong();
    }

    Leave a comment:


  • edgeliner
    replied
    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:


  • edgeliner
    replied
    Yea Ryan.....that's what I figured and is exactly what I did....thanks for the confirmation.......

    Leave a comment:


  • NinjaTrader_RyanM1
    replied
    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:


  • edgeliner
    started a topic HeikenAshi Question

    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.

Latest Posts

Collapse

Topics Statistics Last Post
Started by burtoninlondon, Today, 12:38 AM
0 responses
5 views
0 likes
Last Post burtoninlondon  
Started by AaronKoRn, Yesterday, 09:49 PM
0 responses
12 views
0 likes
Last Post AaronKoRn  
Started by carnitron, Yesterday, 08:42 PM
0 responses
11 views
0 likes
Last Post carnitron  
Started by strategist007, Yesterday, 07:51 PM
0 responses
13 views
0 likes
Last Post strategist007  
Started by StockTrader88, 03-06-2021, 08:58 AM
44 responses
3,982 views
3 likes
Last Post jhudas88  
Working...
X