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

1 trade at a time across all stocks

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

    1 trade at a time across all stocks

    Hi NinjaTrader

    I'm trying to make a backtesting more realistic and wonder if it is possible to apply the:
    Code:
    EntriesPerDirection = 1;
    logic to the entire list of stocks.

    In other words, when I backtest a strategy on a list of 300+ stocks, I will achieve this but only for one particular stock - many more trades will take place on the remaining stocks.

    Is there a way to program a condition that accross the whole list of stocks which is backtested only 1 trade can take place at a time (the next one can be opened only once the 1st one is closed)

    I believe this will give a better picture as to how much and how fast my account will change, because I will be trading in this manner.

    #2
    Hi ionaz, thanks for the post - unfortunately the strategies would not cross communicate, meaning the EntriesPerDirection would only be valid in the single strategy instance currently run / processed. What you could do however is create a MultiSeries strategy with your instruments that would trade your list, this would let you simulate only having one position open - however would mean more advanced custom coding is needed to realize.
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by jxs_xrj, 01-12-2020, 09:49 AM
    4 responses
    3,281 views
    1 like
    Last Post jgualdronc  
    Started by Option Whisperer, Today, 09:55 AM
    0 responses
    5 views
    0 likes
    Last Post Option Whisperer  
    Started by geddyisodin, 04-25-2024, 05:20 AM
    8 responses
    58 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by halgo_boulder, 04-20-2024, 08:44 AM
    2 responses
    22 views
    0 likes
    Last Post halgo_boulder  
    Started by mishhh, 05-25-2010, 08:54 AM
    19 responses
    6,189 views
    0 likes
    Last Post rene69851  
    Working...
    X