Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy builder not working

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

    Strategy builder not working

    I wanted to create a take profit target that was as big as the candle before the entry. I did so by using this formula: "ExitLongLimit(DefaultQuantity, (High[1] + ((High[1] - Low[1])) ))" (for long trades), and it initially places the order where i want it to be, but then it moves higher as soon as the next candle begins if the order was not filled within the first one. I tried to write the exact same thing in the stop loss and profit target section but when i try to backest the strategy it places 0 orders, and if i try to use it in replay mode it refuses to activate. I can share the code and other issues i have with it if necessary.

    #2
    Hello Igor Miti,

    Thank you for your post.

    To get a better understanding of why nothing happens when you test in the Strategy Analyzer, please answer all of the following questions:
    • What version of NinjaTrader are you using? Please provide the entire version number. This can be found under Help -> About (Example: 8.?.?.?)
    • Do you see similar results when running the same test on the SampleMaCrossOver strategy in NinjaTrader with the same settings as your strategy?
    • Who are you connected to? This is displayed in green in the lower-left corner of the Control Center window.
    • Are you connected to your data feed provider when running this test?
    • What instrument(s) (and expiry if applicable) have you selected?
    • What Data Series Type have you selected? Example: Tick, Minute, Day
    • What From and To date is selected?
    • If you open a chart for the same instrument(s) and the same date range, then right-click the chart and select 'Reload all historical data' is the historical data showing on the chart?
    • Is your strategy a multi-instrument or multi-time frame strategy?
    • Do you receive an error on the screen? Are there errors on the Log tab of the Control Center? If so, what do these errors report?

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    78 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    146 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    79 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    52 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    56 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X