How is TradingSystem code triggered

Forums ProRealTime English forum ProBuilder support How is TradingSystem code triggered

Viewing 2 posts - 16 through 17 (of 17 total)
  • #215938

    What’s the point of setting a start date and an end date if they are not taken into account ?

    Unless I am misunderstanding, after setting a Start Date and End Date … you can see by the white vertical lines and the date and time on the cross hairs … that these dates / times are respected over 10K bars and 30K bars.

    #215943

    There is another dimension at play and this is almost impossible to explain; so I won’t attempt as of yet. I can always do the explanation later.

     

     

    Try to wrap your head around this and notice the difference with commenting out the very first line. For your situation this will play a role too. Hence, insert that line in your code, and apply the if Count > 2 (and adjacent logic) as well.
    When you get to some degree what is happening here, you will start to understand that the system needs that headroom to “get started”. IOW, you currently give it too tight constraints to behave equally for the set conditions, no matter you only imply them (by omitting the PreLoadBars and that If).

    If you later agree, you will also agree with me that this is a bug in itself but at better understanding you would not know how to (easily) let solve this bug. So you take it for granted.

    This is the condition all my Entries are executed under or else there will be anomalies.
    The PreLoadBars(set) will have a value, also in your System(s) because else nothing works properly (investigate the command). All you need to know further is that during the stage of “preloadbars” (your code is called the number of times PreLoadBoars is set to (default is 1000)), no trades will be executed (no Entries will occur).
    Et voilá your problem.

    Don’t hesitate to uncomment the Graph commands.

Viewing 2 posts - 16 through 17 (of 17 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login