hi. i am very new to QC and algo scripting. but i did write a very neat little script in TOS that gave buy & sell signals based on heikinashi bars constructed from 2000 ticks. instruments were ES and NQ.

how do i create these bars in QC ?  heikinashi constructed from 2000 trade ticks. i am struggling