Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtest with dynamic stoploss and ProfitTarget

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

    Backtest with dynamic stoploss and ProfitTarget

    Hi,

    I use Strategy Builder to build strategy. I want Bollinger SMA line as ProfitTarget, and Bollinger Upper/Lower band line as Stoploss.
    I want Price once touch SMA line or Bollinger Upper/Lower band lines, exit the trade. Not waiting for close of Candle bar.

    1) Can it archieve this job with Strategy Builder? Or need to unlock the code?
    2) Can give me some advices how to program it? Need any intrabar method?
    3) If I use strategy tester to backtest it, is it okay?


    Thanks for your help!


    cyjoe

    #2
    Hello cyjoe,

    It is possible to set order prices of entry and exit methods (not set methods) to prices of indicators in the Strategy Builder.
    It is also possible to trigger an order when a condition is met such as the market price reaching or crossing an indicator price.

    Below I am providing a public link to a forum post with helpful information about getting started with NinjaScript. I recommend starting by watching and following along with the Strategy Builder 301 training video.


    Yes, Strategies can be backtested in the Strategy Analyzer.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    87 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    134 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    118 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    67 views
    0 likes
    Last Post PaulMohn  
    Working...
    X