How to ignore Code?

Forums ProRealTime English forum ProOrder support How to ignore Code?

Viewing 6 posts - 1 through 6 (of 6 total)
  • #11633

    Is there a term I can insert in a line of code so that the code that follows is ‘ignored’ until the next ‘ignore’ is noted?

    Example:

    IF barindex – tradeindex = 55 OR POSITIONPERF < – 0.01 ignore OR POSITIONPERF > 0.051 ignore THEN …

    I know I can ‘comment out’ the expression but I then have to move  the expression to a separate line.

    I want to leave the expression in the line of code run Backtest and then remove the ignore terms and run backtest again.

    Thanks

    GraHal

    #11639

    I don’t know if this will help, but I use a different approach. I use some switches like this so I don’t have to REMove some of the code. When dealing with several different code you want to switch between I find this very fast to do.

    Cheers

    Kasper

     

    1 user thanked author for this post.
    #27327

    Good Morning @Elsborgtrading @GraHal

    In another programming platform I use an instruction ( “Tradedelay = 1”) to indicate that my position must be opened in the next bar / candle / period (according to conditions not fullfiled in the first bar/candle).

    What would be the equivalent function in ProRealTime?, in other words i want to verify certain conditions in the next bar/candle and re-assess so my system can open a position either short or long.

     

    Could i use Openminute? or Open-1 ?

     

    Code:

     

    I thank you ind advance as always for your contributions.

     

    Greetings and good trading

    #31830

    Hi David

    I just noticed this, but I’m not clear what you want, sorry?

    You say … i want to verify certain conditions in the next bar/candle and re-assess so my system can open a position either short or long … PRT checks / verifies coded conditions at the end of every bar / candle and then takes a Long or Short at the start of the next bar if conditions were fulfilled in the last bar.

    Hope above helps?

    GraHal

    #31848

    Another option:

    may become

     

    #31863

    Hi Robert

    Yes the option to ‘Comment out code at the end of a line’ came in with Version 10.3 in 2017 (not an option with 10.2).

    Thank you for taking time to help.

    GraHal

Viewing 6 posts - 1 through 6 (of 6 total)
Similar topics:

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