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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    63 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    35 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    54 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    61 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    48 views
    0 likes
    Last Post CarlTrading  
    Working...
    X