Announcement

Collapse
No announcement yet.

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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    65 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    139 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    75 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    50 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X