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

Strategy Builder [Candlestick Indicator]

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

    Strategy Builder [Candlestick Indicator]

    I would like to test an autostrat that enters at market price when candlestick indicator plots any of the following candles: bullish engulfing, bearish engulfing, evening star, or morning star. I would greatly appreciate help with the code for this. Default profit target and stop loss can be set at any value as I will use the analyzer to find optimal settings. Thanks community.

    #2
    Hello crownacquisitions,

    Thanks for your post and welcome to the NinjaTrader forums!

    I've added some references for the Strategy Builder below, please take the time to review them as this will help get you going if you wish to create this yourself.

    The NinjaTrader platform includes the indicator CandleStickPattern which can be used in the Strategy Builder. You can select any of the 23 candle patterns. When the pattern is found, the indicator returns a value of 1 so you can create a condition to see if the indicator value is 1, for the chosen pattern. You can then have the strategy EnterLong or EnterShort as you wish.

    For the stops and profits, I would suggest creating two variables (one for each) where you can specify the Number of ticks for the stop or profit. By creating these variables you will be able to use them in the optimizer.

    Please note that we do not create strategies for you or debug your strategies. If you would like something created for you, we can provide references to 3rd party programmers in the NinjaTrader ecosystem. We can also keep this thread open for any community member that would like to further assist you.

    Here are the educational resource 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
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by bortz, 11-06-2023, 08:04 AM
    47 responses
    1,605 views
    0 likes
    Last Post aligator  
    Started by jaybedreamin, Today, 05:56 PM
    0 responses
    8 views
    0 likes
    Last Post jaybedreamin  
    Started by DJ888, 04-16-2024, 06:09 PM
    6 responses
    18 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by Jon17, Today, 04:33 PM
    0 responses
    4 views
    0 likes
    Last Post Jon17
    by Jon17
     
    Started by Javierw.ok, Today, 04:12 PM
    0 responses
    13 views
    0 likes
    Last Post Javierw.ok  
    Working...
    X