[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Broker.exe access in .Net



PureBytes Links

Trading Reference Links

Hi Michael,

The reason I may get into conflict is because to make this work I have to
write and read files that Ninja Tradeer also accesses every 300 ms looking
for orders or providing feedback ...

That's why I am concerned about details of handling disk operations

Ara

----- Original Message ----- 
From: "Michael.S.G." <OzFalcon@xxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Thursday, August 12, 2004 3:16 AM
Subject: Re: [amibroker] Disk file operations


> Ara,
>
> Why would you not know if a file is currently open?
>
> Do you have multiple indicators writing data??? If so - May I suggest the
> use of GLOBALS and one controll AFL to do any reading/writing.
>
>          ATB
>            MSG
>
>
>
> At 10:50 AM 12/08/2004, you wrote:
> >I am trying to write an interface routine for automated trading with
> >NinjaTrader  front end.
> >
> >A question about opening files:
> >
> >fh = fopen("Fhtest2","w");
> >
> >if (fh)
> >
> >{
> >
> >fputs("FhTest"+"\n",fh);
> >
> >}
> >
> >I understand the code above... the question is if I am opening a file to
> >append, what what is the value of fh when a file exists but it is open
> >from another application.
> >
> >This situation can create a potential problem if there is a conflict.
> >
> >If there is a conflict due to file being open already, does Windows do
> >anything or just return the fh value?
> >
> >Thanks
> >
> >Ara
> >
> >[Non-text portions of this message have been removed]
> >
> >
> >
> >
> >Check AmiBroker web page at:
> >http://www.amibroker.com/
> >
> >Check group FAQ at:
> >http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> >Yahoo! Groups Links
> >
> >
> >
> >
>
>
>
>
>
> Check AmiBroker web page at:
> http://www.amibroker.com/
>
> Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> Yahoo! Groups Links
>
>
>
>
>




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/