Can you backtest for a universe of securities?

Forums ProRealTime English forum ProOrder support Can you backtest for a universe of securities?

Viewing 15 posts - 1 through 15 (of 18 total)
  • #175947

    Can you backtest a trading strategy for a universe of securities?

    Or you have to backtest individually?

     

    Also, how do you start an automatic trading strategy? I found this video but the options are not available in the newer version:

     

    https://www.prorealtime.com/en/videos_tutorial/143_3_ways_to_start_a_trading_system_with_proorder

     

    It would bet ime for prorealtime to make new  help videos, they are all of the previous version!

    #175948

    Can you make an strategy that scans a universe of securities for certain criteria and if they are met, opens a position? Or that is not possible either?

    #175949

    You can scan a lisy of securities using ProScreener.

    But then you would need to start ProOrder on your chosen Security.

    We cannot combine ProScreener and ProOrder in the same Algo.

    #175950

    To start an Auto-System see at the red arrowhead on attached.

    #175952

    Thank you, I thought so. What’s the maximum securities you can start an algo on? And how do you start it?

    Here is the algo I’m coding, if someone can help me with a couple of doubts I would appreciate it:

     

    There’s a missing characters in the 2nd and 4th lines, and I can’t see why.

    Then, I don’t know if the trailing stop after selling 1/2 position would be set for the remaining shares or the initial positions.

    Finally, how could I code a trailing stop that changes every day to the lowest of the previous day?

    thanks!

     

    #175953

    I don’t have that button! here my screen

    #175958

    Make lines 2-10 one  line.

    Remove AT from line 15.

    Make lines 18-21 one line.

    Make lines 26-29 one line.

    Remove first SET from the last line.

     

    #175960

    To backtest see attached at red arrowhead.

    Then you should be able to get to the button on my 1st screen shot above.

    If still in difficulty just say and I’ll add more screenshots tomorrow.

    #175962

    Add a missing ENDIF at the end.

     

    #175963

    Thanks roberto you are a great guy, hope you are killing it with your trading. I still get an error at line 2 and 4 of missing characters:

    If instead of setting a trail stop, I wanted to set a stop moving at the low of previous day every day, how would that be coded?

    And if I wanted to close the position or take a partial after X days?

     

    #175965

    Estimatedvolume can’t be used in strategies, it is reserved for screeners only. Remove it.
    Stop loss:

    To close after X (5 in my example) candles:

    #175968

    Sorry, for the Stop Loss on the previous Low, the correct line is this one with a pending order:

     

    #175973

    What, estimated volume can’t be used in strategies?! that’s a fail.

    Can I manually insert an estimate of the volume (for instance, if it’s the first hour multiply *4 or so on?). Or another more automatic way, like calculating the current time, the time the market closes, and then making an extrapolation? (I guess this is what estimated volume does…).

     

    Even without the estimated volume, I keep getting a character missing on lines 1 and 3 of this part of the code! Any solution? I don’t see any problem with it.

    Thanks again guys

    #175978

    You can add any value using variables (with a different name than keywords), such as MyEstimatedVol.

    Post your complete code.

    I suggest that you make separate conditions and assign them to variables, such as c1=…, C2=…, etc…

    This will make it easier to check conditions for errors and your code will run faster and smoother.

     

    #175979

    not sure if this will help but I would normally write that like this:

    or

    (Roberto got in just before me!)

    1 user thanked author for this post.
Viewing 15 posts - 1 through 15 (of 18 total)

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