Re: Free RealTime Data NOW Nest ODIN Trade Tiger Google Yahoo to AmiBroker, Fcharts M
Timer subroutine creates a MyCSVNest.txt file every time it is run. Old file is overwritten. If you want all quotes, open it for appending.
Find this line. in MakeCSV subroutine - Set a = fs.Createtextfile(FileName, True)
Change it to ---- Set a = fs.Opentextfile(FileName,ForAppending,True,TristateFalse)
Check it. Syntax is here http://msdn.microsoft.com/en-us/library/aa265347(v=vs.60).aspx
I cannot do anything about ZT
Better solution will be to create 1 min. bars as O,H,L,C,V,OI on first sheet (Nest) and call Timer every second.
I have not done it since 3 sec. interval is sufficient for me.
Hello josh1
Because we only take data every second at min, there can be RTD updates that are missed. So the chart does not tally exactly as zerodha's chart
I tried to search for an event that we can use to update Amibroker on every RTD update.
Private Sub Worksheet_Calculate()
Application.EnableEvents = False
Timer
Application.EnableEvents = True
End Sub
I put this in RTD Sheet + set the excel throtte variable to 0 and removed the recursive call in Timer.
Excel works ok. I think every RTD update is processed by excel.
But two problems
1. Now we can have more than 1 record for every second but update time resolution is 1 second. I dont know how Amibroker processes this. It looks like it might just overwrite the old price which is bad. Volume also will get messed up then.
So i tried to use $TICKMODE 1 but i couldnt make it work. Amibroker started updating bars very slowly - maybe 3-4 times a minute
2. Every time i close excel, ZT crashes. RTD server of ZT is very buggy.
What do you think? Anyway you know to fix these 2?
Fow now i am reverting to original with throttle removed.
thanks
Because we only take data every second at min, there can be RTD updates that are missed. So the chart does not tally exactly as zerodha's chart
I tried to search for an event that we can use to update Amibroker on every RTD update.
Private Sub Worksheet_Calculate()
Application.EnableEvents = False
Timer
Application.EnableEvents = True
End Sub
I put this in RTD Sheet + set the excel throtte variable to 0 and removed the recursive call in Timer.
Excel works ok. I think every RTD update is processed by excel.
But two problems
1. Now we can have more than 1 record for every second but update time resolution is 1 second. I dont know how Amibroker processes this. It looks like it might just overwrite the old price which is bad. Volume also will get messed up then.
So i tried to use $TICKMODE 1 but i couldnt make it work. Amibroker started updating bars very slowly - maybe 3-4 times a minute
2. Every time i close excel, ZT crashes. RTD server of ZT is very buggy.
What do you think? Anyway you know to fix these 2?
Fow now i am reverting to original with throttle removed.
thanks
Find this line. in MakeCSV subroutine - Set a = fs.Createtextfile(FileName, True)
Change it to ---- Set a = fs.Opentextfile(FileName,ForAppending,True,TristateFalse)
Check it. Syntax is here http://msdn.microsoft.com/en-us/library/aa265347(v=vs.60).aspx
I cannot do anything about ZT
Better solution will be to create 1 min. bars as O,H,L,C,V,OI on first sheet (Nest) and call Timer every second.
I have not done it since 3 sec. interval is sufficient for me.
Last edited: