If I have defined a certain function that I call many times in my strategy, will it be calculated every time that I call it or just once per OnbarUpdate, i.e. NT keeps the result once calculated?
Or should I for maximum efficiency assign it to a variable and then use that variable so that the function is called only once?
Of course the last thing is easy to do, but maybe there is no efficiency gain doing this anyway...
Comment