Backtest not adhering to code on ‘simplified creation)

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #179869 quote
    coh123coh123
    Participant
    New

    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 quote
    GraHalGraHal
    Participant
    Legend

    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 quote
    coh123coh123
    Participant
    New

    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 quote
    GraHalGraHal
    Participant
    Legend

    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 quote
    coh123coh123
    Participant
    New

    Haha no problem at all. 🙂

    #181090 quote
    EricEric
    Participant
    Master

    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?

    Proorder.png Proorder.png
    #181106 quote
    GraHalGraHal
    Participant
    Legend

    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.

    Skynet global algoríthmic solution questions and real money results

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Backtest not adhering to code on ‘simplified creation)


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
coh123 @coh123 Participant
Summary

This topic contains 6 replies,
has 3 voices, and was last updated by GraHalGraHal
4 years, 11 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 10/18/2021
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...