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 NullPointStrategies, Today, 05:17 AM
    0 responses
    24 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    120 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    63 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    41 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X