Re: Free RealTime Data NOW Nest ODIN Trade Tiger Google Yahoo to AmiBroker, Fcharts M
Do not bother about Backfill. I am halfway thru it. Will do it soon.
Do you mean its working or that you are fixing it for now.
After changing Bar period to 60000, I found that NestRTD sends candle data to Ami only once a minute. I wanted it create 1 min bar internally but send to Ami every second and refresh. The time stamp should be in HH:mm format. For example -
Say first tick collected is at 9:15:00. O, H, L, C will all be equal LTP since it is first tick of the minute. Whatever ticks collected during one minute will modify H or L and C will always be equal to LTP.
The same bar will be sent to Ami each second with time Stamp 9:15. When Ami sees, same time stamp each second, it will keep overwriting earlier candle and refresh.
At 9:16:00 O,H,L,C will again be equal to LTP. Ami will create next candle since time stamp will be 9:16.
If you get time, please do this.
Edit- The advantage is that, there will be 375 quotes in Ami per day. Deleting these before backfill thru COM is faster. If there are 375*60 quotes, in database, it takes much longer time to delete.
Yes, Once a month i purge the data and replace it with 1min data from another source to keep db small.
But,
1. I will start with intraday trading looking at 3 min charts. I need 15 second charts as well ( ex - to see volume impact ).
2. I think we can have a configuration for this to allow minimum time resolution to hh:mm.
But in this case we will have to change code a bit. Currently the O/H/L values are reset after sending a bar. This will have to changed to reset only after LTT changes ( hh:mm ). If LTT does not change, just set the O/H/L/V of current bar but dont change the previous bar.
I will try to add this in free time but if it takes too long will stop (shouldnt).
I think the change should be simple. Lets see if i can do it today.
You can try to do it yourself too. I want people to change and fix code rather than just me. Changes can be merged with git code.
1. Worker:: processRTDData() - only take hh::mm in ltt
2. Worker:: amibrokerPoller() - Remove 2nd if check. Instead move it to the last two lines in the loop to avoid reset.
3. Need to read extra setting to toggle behaviour in (1).
4. In settings.ini remove seconds from TimeFormat for scrips with no ltt. We will use this as our toggle (3)
I think thats it.
Its possible i may add a bug in volume / candle price with this. Please test it properly - prefereably run both old and new version for entire day (with different alias for same scrip) and
make sure that the 1 min candles price/volume match
This will be the last change i make in this application for next few months
Everything else will go to TODO untill i start trading profitably and have free time.
If you add something / Fix a bug send it to me with pm.
Edit
3. Are you sure deleting is slow? if i delete from quote editor, its pretty fast.
Also please make sure, you auto backfill tool will delete second bars too even if slow.