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
- eurusd azur
- usdcad azur
- eurusd blue
- 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
Post a Comment