Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

backtesting to real time

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

    backtesting to real time

    question:

    I pretty much just started building strategies and I have it so when the price crosses above the bollinger upper band it sells my long and and enters short, and vis-versa for the lower band,

    thats all I did, and when I back test it works, but when I use real time data it will double a trade and then Ill have 2 position., so half the time i will not be trading. I have no clue how to fix this?

    help

    jp

    #2
    Did you build this programatically? If yes, can you paste your code from the OnBarUpdate() method?
    RayNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    62 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    32 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    44 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    58 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    47 views
    0 likes
    Last Post CarlTrading  
    Working...
    X