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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    29 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    46 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X