Problems with back test on tick

 

Hi, with the code i send as attatchment im happy with except i dont know why it tests too slow when tested on tick test.

Im thinking it might be because ive laid out everything within the OnTick event handler and so is overworking the CPU in my PC.

 Should i look to code this using more made up functions instead?

 
Don't do per tick that which can be done per bar or once in init.
Reason: