- download and maintenace daily k data
- init strategy
- provide API to higher layer
yongquan is a xuewei under the foot. it means it is a basic module to provide api to higher layer
- require 'yongquan'
- rake test ; to run all case
- rake test TEST="test/test_init.rb"
- Rake::testtask
- http://rake.rubyforge.org/classes/Rake/TestTask.html
http://guides.rubygems.org/make-your-own-gem/
- Global variable service
- provide target strategy file full path with name
- provide a hash , key is yahoo id , and value is stock name
- provide a hash, key is 2014 date, value is true/false , means open or close of market
- Strategy.send(strategy).root_path
- email_notify(strategy,title,body)
- convert_yahoo_symbol_to_sina(yahoo_symbol)
- initialize_single_stock_folder(strategy,symbol)
- get_last_date_of_raw_date(strategy,symbol)
- get_last_date_of_raw_process_date(strategy,symbol)
- get_last_date_of_signal(strategy,symbol)
- get_last_date_of_win_lost(strategy,symbol)
- check_working_day?(date)
- get_gap_date_array(start_date,end_date)
- download_yahoo_history(strategy,symbol)
- batch_download_yahoo_history(strategy)
- append_raw_data(strategy,symbol)
- batch_append_raw_data(strategy,symbol_array)