Tell me, please, can I call two methods barOnClose() and onEachTick() in one strategy?
or do I need two strategies with different methods?
example:
1. NT is getting data by barOnClose().
2. There is a command to enter:
- 2.1 Sent order.
- 2.2 The position is open.
- 2.3 Tick data is activated (onEachTick()).
- 2.4 At the same time NT is getting data by barOnClose.
- 3.1 Tick data is closed.
- 3.2 The same time NT is getting data by barOnClose
************************************************** ***********************************************
ps maybe get data into onbarupdate() by eachtick()
and then build a bar for each minute.
to use the sequence: from to end time: XX:00:00=XX:59:59
but I think it is not the correct implementation.
cause I want to get the correct bar without collision
Comment