Announcement

Collapse
No announcement yet.

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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    52 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    142 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    276 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X