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, 05-11-2026, 05:56 AM
    0 responses
    68 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    43 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    202 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    366 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    284 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X