Backtest not adhering to code on ‘simplified creation)

Forums ProRealTime English forum ProOrder support Backtest not adhering to code on ‘simplified creation)

Currently, there are 0 users and 1 guest visiting this topic.
View all attachments
Viewing 7 posts - 1 through 7 (of 7 total)
  • #179869 Report

    Hi again,

    Has anyone experienced the backtest not doing what you tell it?

    I had an issue when writing the code with this so I resorted to doing the simplified creation instead just to check I wasn’t inputting it wrong and even the simplified creation won’t work. I’m new to this, as I have mentioned in previous posts, so I am just getting to grips with everything which is why I am confused because I’m only automating a buying and selling pivot point strategy.

    The simple strat is buying between S2 and S3 so I have done buy when price <= Sup2 and when price => Sup3 execute and then exit when Sup3 > Price.

    The orders are executing on pivot, above S1 etc so I’m not sure what is going on…

    If anyone could give some advice I would be very grateful, thank you

    #179877 Report

    buying between S2 and S3, should be buy when price >= Sup2 and when price <= Sup3 execute.

    I guess that is what you meant to type above?

    #179878 Report

    Hi GraHal, thanks for getting back to me.

    Are you sure it isn’t when ‘price is less than/equal to’ rather than when ‘price is greater than/equal to S2’ ? Since if the price is greater than then it will be above surely?

    No probs if I’m wrong, but I just put what you said into the code to check and it is now executing above pivot…

    Have you encountered something like this before?

    #179887 Report

    My mistake, you are correct!

    I misread your strategy and / or was not thinking straight! Grandkids were here and they were rushing me off my PC so they could play games! 🙂 🙁

    If you post your full code then somebody will spot the Issue I feel sure.

    #179936 Report

    Haha no problem at all. 🙂

    #181090 Report

    I have a different problem

    A system (demo) opened a trade that should not be there (100% sure) and when i backtest it works as it should

    Maybe have something to do with using call the indicator?

     

     

     

    Attachments:
    #181106 Report

    I have almost the opposite … in Real Live a trade stayed open, but in backtest it closed ‘early’ when backtesting on 2k bars or less.

    Call Indicator is used in this System also.

    https://www.prorealcode.com/topic/skynet-marketplace-topic/page/5/#post-180955

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

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