Login Page - Create Account

Support Board


Date/Time: Mon, 06 May 2024 14:01:55 +0000



Post From: Optimize or speed up code.

[2018-09-25 23:50:31]
User701453 - Posts: 176
Currently coding an ASCIL auto trader which is currently running at 479ms.
There is really no hard number/data crunching.
I make use of a lot of "If" statements, persistent variables and chart arrays.

I don't make use of any "For" or "While" looping.

I was wondering if the code could be faster I place data I use(other then chart price data ie high, low and close) in variables or arrays instead of having them inline the "If"(ie If Sc.??) decision statements when I need the data.

I'm using a 6 tick flex renko chart and auto trader needs to run as fast as possible.
Date Time Of Last Edit: 2018-09-25 23:50:57
image479ms.PNG / V - Attached On 2018-09-25 23:49:47 UTC - Size: 1.16 KB - 248 views