A better Trader: Difference between revisions

From Bitpost wiki
No edit summary
No edit summary
Line 1: Line 1:
=== TRADE PSEUDO ===
load from SQL tables into [[Major Objects]] (std::unordered_sets of PersistentIDObjects)
=== ANALYZE PSEUDO ===
=== ANALYZE PSEUDO ===


ORIG
REFACTOR THREE
  load from old dbs into current
REFACTOR TWO
  create a full monte carlo set of APSs
  run all stocks through them over and over
REFACTOR THREE
   carefully select APSs to test based on a range of aggressive levels
   carefully select APSs to test based on a range of aggressive levels
   then do a small monte carlo around the best result
   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)
   only apply to one stock at a time (unlike before where we ran all - revisit this)
* analysis page requests analysis via AJAX
* bool APIGetRunAnalysis::handle_call(const API_call& caller, reply& rep)
* thread_analyzeHistory(aggressiveness, RunHistory, apsOut)
*:<pre>
*::generate APS from aggressiveness</pre>
** pba->analyze(rh)
* BrokerAccount::analyze(RunHistory& rh)
*:<pre>
*::create SP
*::process quotes</pre>
=== TRADE PSEUDO ===
load from SQL tables into [[Major Objects]] (std::unordered_sets of PersistentIDObjects)


=== API PSEUDO ===
=== API PSEUDO ===

Revision as of 01:15, 7 July 2016

ANALYZE PSEUDO

REFACTOR THREE

  carefully select 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)
  • analysis page requests analysis via AJAX
  • bool APIGetRunAnalysis::handle_call(const API_call& caller, reply& rep)
  • thread_analyzeHistory(aggressiveness, RunHistory, apsOut)
    generate APS from aggressiveness
    • pba->analyze(rh)
  • BrokerAccount::analyze(RunHistory& rh)
    create SP
    process quotes


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)