Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Delta Buy/Sell Volume

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

    Strangely it works here... Did you try a basic 1 min chart ?
    What's your time zone ?

    EDIT : OK reproduced it on Canberra Melbourne Sydney TZ
    Last edited by gomifromparis; 11-12-2009, 03:39 PM.

    Comment


      TimeZone is GMT+ 10 (Australia).

      No plot on 1 minute chart either..

      The error on calling OnBarUpdate has reappeared again with a timestamp of 1 second before Globex reopened at 15:30 Chicago time...

      The another Log error when I loaded on GomCd onto to the 1 minute chart to test.

      That error was "Error on calling 'OnBarUpdate' for indicator GomCD on bar 2756: Object reference not set to an instance of an object".

      Hope that means something to you....


      OK - I see you reproduced... good... and thankyou..
      Last edited by rt-trader; 11-12-2009, 03:49 PM.

      Comment


        This one should correct empty charts.
        Tell me if it corrects the other problems as well
        Attached Files

        Comment


          Empty charts - Fixed!! - Thankyou.

          No sign of log errors at this time - will post again if they re-occur.

          Thanks again...

          Comment


            Gomi, one question according to RecorderIndicator. NT uses ticks timestamp with 1 second accuracy, which is not enough for some purposes, but DateTime structure allows 100ns accuracy. I'm trying to measure trade intensity, and it would be great to store history, so maybe one of your existing GomFileManager classes allows to store and retrieve tick timestamps with full 100ns accuracy?

            Code:
            //OnMarketData code
            
            //now
                 fm.RecordTick(e.Time,tickType,e.Price,(int)e.Volume);                       
            
            //trying to record accurate tick timestamp
            //   fm.RecordTick(DateTime.Now,tickType,e.Price,(int)e.Volume);

            Comment


              The millisecond info doesn't make it through the NT marketdata infrastructure

              Try this code :

              protected override void OnMarketData(MarketDataEventArgs e)
              {
              Print(e.Time.Second+"."+e.Time.Millisecond);
              }

              You'll get

              37.0
              37.0
              38.0
              38.0
              39.0
              39.0
              42.0
              43.0
              43.0
              48.0
              48.0
              48.0
              49.0
              49.0
              49.0
              49.0
              49.0
              49.0

              => no millisecond info

              Comment


                Sure, but in my calculations I can replace e.Time with DateTime.Now when receiving a new tick and use it as a substitute of a real tick timestamp.

                Comment


                  OK I see

                  The flat file format should work, if you modify dateformat,
                  static public string dateformat="yyMMddHHmmss";
                  to something that writes milliseconds.

                  It could be used in a custom app,but it might not be of much use in NT as when the file is reread, it is synced on the bar chart using the time of the close of the bar, which has a 1 sec resolution.

                  It might be useful to set Display refresh interval to 0 too.

                  Comment


                    Ok, I'll try, thanks a lot!

                    Comment


                      Any One has an Idea

                      Originally posted by gomifromparis View Post
                      I added a parameter in GomCD/GomRecorder : if you define an Environment Variable named GOMFOLDER, the files will be written and read there.
                      Does anyone Know how to define an Environment Variable named GOMFOLDER

                      Definitely I need to buy some c# books with this Gomi code , its getting more complex every time.

                      Comment


                        Sorry, but nothing to do with c# here . It's OS stuff. Type F1 in windows and type "environment variable", it should show you how to do it..

                        Comment


                          Originally posted by gomifromparis View Post
                          Sorry, but nothing to do with c# here . It's OS stuff. Type F1 in windows and type "environment variable", it should show you how to do it..

                          Well if anyone interested and after a lot of attempts due to a damn typo this work good for me.

                          Environment.SetEnvironmentVariable("GOMFOLDER",@"Y our Folder", EnvironmentVariableTarget.User);

                          Comment


                            You shouln't have to write 1 line of code !
                            You only have to go to you Windows System Settings, Advanced Tab, choose "Environment Variables" and add GOMFOLDER with desired value !

                            Comment


                              Originally posted by gomifromparis View Post
                              You shouln't have to write 1 line of code !
                              You only have to go to you Windows System Settings, Advanced Tab, choose "Environment Variables" and add GOMFOLDER with desired value !
                              Well every day we learn something new!, now I know that I'm not so computer literate

                              Comment


                                Great indicator Gomi. Thanks for all the good work.

                                But I have 2 questions...

                                1. What are the black bars (candles) that are printing on the GomCD and how do I get them to print the same as the up (green) or down (red) colors that I have on my preferences?

                                2. How do I flush out the recorded data and start fresh? When I was first tinkering around with the recorder, I saved a few bars of delta (ie. -1500 contracts), and now every chart I open includes that and starts at -1500.

                                Thanks.

                                Sean

                                Comment

                                Latest Posts

                                Collapse

                                Topics Statistics Last Post
                                Started by Balage0922, Today, 07:38 AM
                                0 responses
                                1 view
                                0 likes
                                Last Post Balage0922  
                                Started by JoMoon2024, Today, 06:56 AM
                                0 responses
                                6 views
                                0 likes
                                Last Post JoMoon2024  
                                Started by Haiasi, 04-25-2024, 06:53 PM
                                2 responses
                                19 views
                                0 likes
                                Last Post Massinisa  
                                Started by Creamers, Today, 05:32 AM
                                0 responses
                                6 views
                                0 likes
                                Last Post Creamers  
                                Started by Segwin, 05-07-2018, 02:15 PM
                                12 responses
                                1,786 views
                                0 likes
                                Last Post Leafcutter  
                                Working...
                                X