Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Delta Buy/Sell Volume

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

  • gomifromparis
    replied
    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 !

    Leave a comment:


  • PrTester
    replied
    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);

    Leave a comment:


  • gomifromparis
    replied
    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..

    Leave a comment:


  • PrTester
    replied
    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.

    Leave a comment:


  • melnorme
    replied
    Ok, I'll try, thanks a lot!

    Leave a comment:


  • gomifromparis
    replied
    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.

    Leave a comment:


  • melnorme
    replied
    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.

    Leave a comment:


  • gomifromparis
    replied
    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

    Leave a comment:


  • melnorme
    replied
    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);

    Leave a comment:


  • rt-trader
    replied
    Empty charts - Fixed!! - Thankyou.

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

    Thanks again...

    Leave a comment:


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

    Leave a comment:


  • rt-trader
    replied
    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.

    Leave a comment:


  • gomifromparis
    replied
    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.

    Leave a comment:


  • rt-trader
    replied
    Gomi,

    Not sure if my issue is related to the one immediately below...

    Anyway - I have installed GomCD 5.4. Using the custom session shown in the attachment, the Recorder works (Recording OK) but will not display any plot. If I open a second ES chart and add GomCD - again no plot unless I use either Default 24/7 or 24/5 as Session Templates. Then the plot populates from the recorder file.

    The log error I mentioned in previous post no longer appears...

    Thanks
    Attached Files

    Leave a comment:


  • gomifromparis
    replied
    Finally reproduced it. Filing a bug !

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by Hwop38, 05-04-2026, 07:02 PM
0 responses
151 views
0 likes
Last Post Hwop38
by Hwop38
 
Started by CaptainJack, 04-24-2026, 11:07 PM
0 responses
303 views
0 likes
Last Post CaptainJack  
Started by Mindset, 04-21-2026, 06:46 AM
0 responses
244 views
0 likes
Last Post Mindset
by Mindset
 
Started by M4ndoo, 04-20-2026, 05:21 PM
0 responses
345 views
0 likes
Last Post M4ndoo
by M4ndoo
 
Started by M4ndoo, 04-19-2026, 05:54 PM
0 responses
175 views
0 likes
Last Post M4ndoo
by M4ndoo
 
Working...
X