A better Trader: Difference between revisions
No edit summary  | 
				No edit summary  | 
				||
| Line 7: | Line 7: | ||
** ba.getSPAS(run_id,&spit,&asit)  | ** ba.getSPAS(run_id,&spit,&asit)  | ||
** g_p_local->readRunHistory()  | ** g_p_local->readRunHistory()  | ||
** atc_.thread_analyzeHistory(aggressiveness, rh,   | ** atc_.thread_analyzeHistory(aggressiveness, rh, *papsAnalysis)  | ||
*** generateAPSFromAggressiveness(aggressiveness, apsAnalysis)  | |||
*** generateAPSFromAggressiveness(aggressiveness,   | |||
*** create MemoryModel, AppUser, BrokerAccount  | *** create MemoryModel, AppUser, BrokerAccount  | ||
*** pba->analyze(rh)  | *** pba->analyze(rh)  | ||
** save papsAnalysis  | |||
** atc_.thread_buildRunJSON(rh)  | ** atc_.thread_buildRunJSON(rh)  | ||
Revision as of 03:07, 7 July 2016
ANALYZE PSEUDO (REFACTOR THREE)
Single aggressiveness slider value selected:
- analysis page requests analysis via AJAX: user selects aggressiveness
 - APIGetRunAnalysis::handle_call()
- p_user_->findBrokerAccount(account_id);
 - ba.getSPAS(run_id,&spit,&asit)
 - g_p_local->readRunHistory()
 - atc_.thread_analyzeHistory(aggressiveness, rh, *papsAnalysis)
- generateAPSFromAggressiveness(aggressiveness, apsAnalysis)
 - create MemoryModel, AppUser, BrokerAccount
 - pba->analyze(rh)
 
 - save papsAnalysis
 - atc_.thread_buildRunJSON(rh)
 
 
Auto-analysis selected (aggressiveness=0)
carefully select (0..n) APSs to test based on a range of aggressive levels then do a small monte carlo around the best result only apply to one stock at a time (unlike before where we ran all - revisit this)
TRADE PSEUDO
load from SQL tables into Major Objects (std::unordered_sets of PersistentIDObjects)
API PSEUDO
   APIGetRunLive::handle_call()
       g_p_local->getRunLiveJSON()
           readRunQAB(s_str_db_name...)
           (SAME as readRunLive!!)
   APIGetRunHistory::handle_call()
       g_p_local->getRunHistoryJSON()
           readRunHistory
               readRunQAB
Qt Creator settings
- Make sure you have already run [atbuild] and [atbuild debug].
 - Open CMakeLists.txt as a Qt Creator project.
 - It will force you to do CMake - pick cmake-release folder and let it go.
 - Rename the build config to debug.
 - Clone it to release and change folder to release.
 - Delete make step and replace it with custom build:
 
./build.sh
(no args)
%{buildDir}
- Create run setups:
 
you have to use hardcoded path to working dir (or leave it blank maybe?): /home/m/development/thedigitalage/AbetterTrader/server [x] run in terminal debug args: localhost 8000 test reanalyze (matches attest) release args: localhost 8080 live (matches atlive)