Have a question to ask about multi-timeframe strategy. Currently I am setting the onbarclose to true. My primary series is 377 Tick and secondary is 1 Tick. Then what I am interested is see if the system truely call the onbarupdate in order. So what I do is just simply print a message every time it call this function. However, it does not line up as what I expected. In particular, it behaves as follows
TimeFrame:0 and CurrentBar: 0
TimeFrame:1 and CurrentBar: 377
TimeFrame:1 and CurrentBar: 378
TimeFrame:1 and CurrentBar: 379
.
.
.(skip some)
.
TimeFrame:1 and CurrentBar: 698
TimeFrame:1 and CurrentBar: 699
TimeFrame:1 and CurrentBar: 700
TimeFrame:1 and CurrentBar: 701
TimeFrame:1 and CurrentBar: 702
TimeFrame:1 and CurrentBar: 703
TimeFrame:1 and CurrentBar: 704
TimeFrame:0 and CurrentBar: 1
TimeFrame:1 and CurrentBar: 705
TimeFrame:0 and CurrentBar: 2
TimeFrame:1 and CurrentBar: 706
TimeFrame:1 and CurrentBar: 707
TimeFrame:1 and CurrentBar: 708
TimeFrame:1 and CurrentBar: 709
TimeFrame:1 and CurrentBar: 710
TimeFrame:1 and CurrentBar: 711
TimeFrame:1 and CurrentBar: 712
TimeFrame:1 and CurrentBar: 713
TimeFrame:1 and CurrentBar: 714
TimeFrame:1 and CurrentBar: 715
TimeFrame:1 and CurrentBar: 716
TimeFrame:1 and CurrentBar: 717
TimeFrame:1 and CurrentBar: 718
TimeFrame:1 and CurrentBar: 719
TimeFrame:1 and CurrentBar: 720
TimeFrame:1 and CurrentBar: 721
TimeFrame:1 and CurrentBar: 722
TimeFrame:1 and CurrentBar: 723
TimeFrame:1 and CurrentBar: 724
TimeFrame:1 and CurrentBar: 725
TimeFrame:1 and CurrentBar: 726
TimeFrame:1 and CurrentBar: 727
TimeFrame:1 and CurrentBar: 728
TimeFrame:1 and CurrentBar: 729
TimeFrame:1 and CurrentBar: 730
TimeFrame:1 and CurrentBar: 731
TimeFrame:1 and CurrentBar: 732
TimeFrame:1 and CurrentBar: 733
TimeFrame:1 and CurrentBar: 734
TimeFrame:1 and CurrentBar: 735
TimeFrame:1 and CurrentBar: 736
TimeFrame:1 and CurrentBar: 737
TimeFrame:1 and CurrentBar: 738
TimeFrame:1 and CurrentBar: 739
TimeFrame:1 and CurrentBar: 740
TimeFrame:1 and CurrentBar: 741
TimeFrame:1 and CurrentBar: 742
TimeFrame:1 and CurrentBar: 743
TimeFrame:1 and CurrentBar: 744
TimeFrame:1 and CurrentBar: 745
TimeFrame:1 and CurrentBar: 746
TimeFrame:1 and CurrentBar: 747
TimeFrame:1 and CurrentBar: 748
TimeFrame:1 and CurrentBar: 749
TimeFrame:1 and CurrentBar: 750
TimeFrame:1 and CurrentBar: 751
TimeFrame:1 and CurrentBar: 752
TimeFrame:1 and CurrentBar: 753
TimeFrame:1 and CurrentBar: 754
This is somewhat strange to me since I expect the primary bar to call onbarupdate after every 377 ticks.
Can you help me with this? Thank you so much!
s.h.
Comment