Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 ghoul, Today, 06:02 PM
    3 responses
    14 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    44 views
    0 likes
    Last Post jeronymite  
    Started by Barry Milan, Yesterday, 10:35 PM
    7 responses
    20 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by AttiM, 02-14-2024, 05:20 PM
    10 responses
    180 views
    0 likes
    Last Post jeronymite  
    Started by DanielSanMartin, Yesterday, 02:37 PM
    2 responses
    13 views
    0 likes
    Last Post DanielSanMartin  
    Working...
    X