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

Keep position open until reversal happens

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

  • NinjaTrader_PaulH
    replied
    Hello robertcooney,

    Thanks for your post and welcome to the Ninjatrader forums!

    In NinjaTrader8, Heiken-ashi are a bar type that can be found in the data series of the chart or when creating a chart. In the data series window you would click on the "Type" field for a dropdown arrow that will show the list of available bar types which include Heiken-Ashi. Please see https://ninjatrader.com/support/help...price_data.htm Here is a link to all bar types that come with the platform: https://ninjatrader.com/support/help...?bar_types.htm

    As member Emma1 observed, there are other indicators for provide Heiken-ashi variations.

    I would suggest creating your strategy using the NinjaTrader8 Strategy Builder as this does not require programming knowledge to use and it does generate Ninjascript coding which is based on C# programming language and if you are interested is a good way to learn Ninjascript.

    Here are the educational resources available on the strategy builder:
    Free live webinar every other Thursday at 4:00 PM EST, through this link to all webinars: https://ninjatrader.com/PlatformTraining
    Previous recording of the Strategy Builder 301 webinar: https://youtu.be/HCyt90GAs9k?list=PL...auWXkWe0Nf&t=2
    Help guide for the strategy builder: https://ninjatrader.com/support/help...gy_builder.htm

    The help guide contains a number of examples of creating conditions and is well worth the time to review.

    If your candle patterns are simple you can write those directly in the strategy builder. Alternatively, if you are using specific Japanese Candlestick patterns then you could use the indicator "CandleStickPattern" in your Ninjatrader. The indicator offers a number of common patterns that you can select from. The indicator will output a value of 1 when the selected pattern is found.

    It sounds like you are wanting to always be in the market so this simplifies the order process. In the pattern to go long you would use EnterLong() and for short use EnterShort(). The entry methods will automatically detect when there is an opposite position and will enter 1 order to "Close Position" followed by a second order to leave the strategy in the desired position.

    Leave a comment:


  • Emma1
    replied
    its possible, NT8 has candle pattern recognition.link for heiken ashi.https://ninjatraderecosystem.com/use...=heiken%20ashi
    Last edited by Emma1; 03-05-2020, 06:49 PM.

    Leave a comment:


  • robertcooney
    started a topic Keep position open until reversal happens

    Keep position open until reversal happens

    Hey everyone. I have this coded in PineScript (Tradingview) but cant seem to get it to work in Ninja.
    First, I need to use Heiken-Ashi candles, which I can't seem to find on the NinjaChart. Why??

    Strategy:
    1. Specific candle pattern happens to suggest going long
    2. Enter long position
    3. STAY in long position until a different specific candle pattern happens which suggests short
    4. Enter short
    5. STAY in short position until #1 repeats.

    This works great as a tested PineScript strategy, but Tradingview doesn't have an "auto trade bot" feature, so I am checking out NinjaTrader.

    Could use some help with this seemingly simple approach.

Latest Posts

Collapse

Topics Statistics Last Post
Started by judysamnt7, 03-13-2023, 09:11 AM
4 responses
59 views
0 likes
Last Post DynamicTest  
Started by ScottWalsh, Today, 06:52 PM
4 responses
36 views
0 likes
Last Post ScottWalsh  
Started by olisav57, Today, 07:39 PM
0 responses
7 views
0 likes
Last Post olisav57  
Started by trilliantrader, Today, 03:01 PM
2 responses
21 views
0 likes
Last Post helpwanted  
Started by cre8able, Today, 07:24 PM
0 responses
10 views
0 likes
Last Post cre8able  
Working...
X