Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Testing strategy with current quotes?

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

    Testing strategy with current quotes?

    Hello

    I developped a strategy and backtested the strategy. I hold positions for days or even weeks. Thefore I check only once a day, whether my strategy gives me a buy or sell signal.
    My question: How can I run my strategy in that way, that it considers the current quotes (and not the "Close" of the day before)?

    Thanks & Regards
    Andre

    #2
    Hello,

    We do not recommend running your strategies unattended, however you can do so if you like. You would just leave the strategy running on your PC/NT. What issues are stopping you from doing this?
    DenNinjaTrader Customer Service

    Comment


      #3
      Well, in principle I just want to let it run with the most last quote. But my strategy refers the current "Close", such as IF fnc(Close[0])>1 THEN
      I did not find out how I can let it run considering the most current quote (=Today on Sunday evening take the friday close, if I let it run on weekdays, take the last quote)

      Comment


        #4
        Hello,

        Are you talking about backtesting or running the strategy going forward?
        DenNinjaTrader Customer Service

        Comment


          #5
          Hi

          I am talking about going forward, if I understand you right...

          I say it in other words:
          1. I developped a strategy (with the script editor)
          2. I backtested the strategy (daily base) --> One calculation per day
          3. Sometimes I want to know during the day, what results my strategy would compute, if I take the most recent online quote
          --> How to do that?

          thanks
          Andre

          Comment


            #6
            Andre,

            You can throw your strategy onto a daily chart and then run your strategy with CalculateOnBarClose = false and then it will tell you the calculations with the last day as well.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Hi

              I tried to do that. I create a chart (Daily Bars) but it shows me only bars until 13.05.2010, but I would like to have considered the current quote now (e.g. 12:30 on 14.05.2010).
              I am connected to yahoo.

              regards
              Andre

              Comment


                #8
                Hello Andre,

                As Josh mentioned later, the yahoo service is a delayed end of day service. The 5/14/10 daily bar will not appear until the close of the day after they have published it. Earlier steps I had provided were not necessary.
                Last edited by NinjaTrader_RyanM1; 05-14-2010, 02:39 PM. Reason: accuracy
                Ryan M.NinjaTrader Customer Service

                Comment


                  #9
                  Hi
                  thanks, I did as you described. It still did not work.
                  Now I found out the following: With DJIA it works, with DAX or SMI not. This is strange, because I can load historical data without problem.
                  Do you have any idea?

                  regards
                  Andre

                  Comment


                    #10
                    Andre,

                    Please note that Yahoo does not provide you with a daily bar till after they publish it after the end of the trading day. So you won't see 5/14 at this point in time.
                    Josh P.NinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by bortz, 11-06-2023, 08:04 AM
                    47 responses
                    1,602 views
                    0 likes
                    Last Post aligator  
                    Started by jaybedreamin, Today, 05:56 PM
                    0 responses
                    8 views
                    0 likes
                    Last Post jaybedreamin  
                    Started by DJ888, 04-16-2024, 06:09 PM
                    6 responses
                    18 views
                    0 likes
                    Last Post DJ888
                    by DJ888
                     
                    Started by Jon17, Today, 04:33 PM
                    0 responses
                    4 views
                    0 likes
                    Last Post Jon17
                    by Jon17
                     
                    Started by Javierw.ok, Today, 04:12 PM
                    0 responses
                    12 views
                    0 likes
                    Last Post Javierw.ok  
                    Working...
                    X