c# - How can I use independent instances of one class, its methods and variables encapsulated in several threads/tasks? -


there datatable showing name of different algorithms , underlying=symbol has traded:

id - symbol - algoname

  1. eurusd azur
  2. usdcad azur
  3. eurusd blue
  4. gbpusd blue

each algorithm represented name (azur or blue) shall different class. alorithms=classes imply variety of variables, lists , methods calculate trading signals.

the "strategy" id=1 uses algorithm "azur" on eurusd , strategy id=2 uses algorithm "azur" on usdjpy. each algorithm represented algoid unique means uses own data stored in list , values in variables. each algorithm has method start() receives unique variety of parameters , calls 1 furhter method import historical price date , store in several lists.

after start sequence each strategy addressed realtimeprice event calls further method inside algorithm class: public void ontickupdate(). method needs use separately values of variables , lists have been generated "strategy-wise" before.

how approach such task?


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -