Strategy not placing trades in backtest

Forums ProRealTime English forum ProOrder support Strategy not placing trades in backtest

Viewing 13 posts - 1 through 13 (of 13 total)
  • #139029

    Not placing any trades in back testing.
    Y: long sMA
    C1 and C2 : sma turning up
    C3 and C4 : sma turning down
    X : numerical value if difference between current sma and sma 40 periods ago

    Thank you

    #139032

    What is C?

    #139033

    C = condition

    #139035

    Have you tried many Markets and many TF’s?

    #139038

    If C=condition (say Close > close[1]) how can X be > or < ?

    #139087

    steynpj – Please give your topics more meaningful titles otherwise we end up with a forum full of ‘Help needed’ topics! I have changed your topic title. Also do not post your question/comments within the PRT code box. Only put actual code in the code insertion box. I have edited your post to tidy everything up.

    #139092

    My mistake.

    The capital “C”, is a variable in back testing, any numerical value.

     

    #139112

    For this line, X = (average[Y,0] average[Y,40])

    The first parameter is the average type, second parameter is the period. I’m not sure if it is expected for period 0?

    #139120

    It’s the other way round with AVERAGE. The first parameter is the PERIODS, the second one, optional, is the average type.

    40 is not supported. Read official documentation for allowed types.

    #139122

    Line 5 should read:

     

    1 user thanked author for this post.
    #139164
    • Give your topic a meaningful title. Describe your question or your subject in your title. Do not use meaningless titles such as ‘Coding Help Needed’.

    Don’t worry I will change it for you! I’m so happy to do it! 🙂

    #139169

    Thank you, @robertogozzi for the clarification, my mistake, shame on me. Btw, just my 2 cents, I think could be easier if author just do the GRAPH on several variables to understand where is the problem. As the code is not complete and some typo, then we keep guessing.

    #139171

    Thank you, correct

Viewing 13 posts - 1 through 13 (of 13 total)

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