Announcement

Collapse
No announcement yet.

cmain function sometimes runs more than once per tick

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • cmain function sometimes runs more than once per tick

    Currently running V 11.4.2733 and find that for some efs studies the cmain function runs more than once for each incoming data tick.
    Please advise what causes this and how can it be avoided.
    This situation does not occur when the same studies are run with version 10.6.

  • #2
    Further to post #1
    I wrote "cmain" when it should have been "main".
    Looking into situation further I find that additional runs through main are associated with no change in Volume(0).
    Creation of errors within the efs due to incorrect tick count are therefore prevented by adding 2 lines to main:
    if(preVol == volume(0)) return;
    preVol = volume(0);

    This was not necessary in V10.6. My question is why is this necessary in V11.4? Is it due to multi threading on 64bit systems or is the engine being addressed on somthing other than incoming ticks (eg changes in bid or ask)? I am running a live trading efs and would like to have as deep an understanding as possible of this situation before moving the efs from V10.6.

    I have raised this issue with UK Customer Service and Techonline. They tell me the only way to address this question is via the Forum.
    So please will someone answer my question.

    Comment

    Working...
    X