Change indicator timeperiod and turbo question

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #234885 quote
    George_Lager
    Participant
    New

    Hi
    Below is 2 questions I don’t find the answer for in the manual 🙂

    1. In PRT graphical interface I’m working in @10 min chart and have some SMA, but I also have some SMA in 4h as it’s possible to add indicators in different time periods by configure “Use another period” for a indicator.

    How do I add a indicator in a different time period when doing backtesting in programming mode?

    Please note: For some of my indicators in 4h I can NOT just take a 10 min indicator and multiply it (*) by 24 as the indicator don’t work that way.

     

    2. Is it possible to do backtest on a underlying stock, but simulate a turbo future having like a x10 lever?

    #234887 quote
    JS
    Participant
    Senior

    You can use Multiple Time Frames (MTF) :

    TimeFrame(4 hours, UpdateOnClose)

    SMA4H=Average[period](Close)

    TimeFrame(Default) //10 min

    SMA10M=Average[period](Close)

    If SMA10M > SMA4H then

    Buy 1 contract at Market

    If you have a leverage factor of 10, you can simulate the turbo by multiplying the position size of the stock by the leverage factor…

    Iván González thanked this post
    #234932 quote
    Iván González
    Moderator
    Master
    Here you have more information about work with different timeframes: https://www.prorealcode.com/documentation/timeframe-probacktest-proorder/
    #235003 quote
    George_Lager
    Participant
    New
    Thank you JS and Iván, the timeframe works great 🙂 //Regards
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Change indicator timeperiod and turbo question


Platform Support: Charts, Data & Broker Setup

New Reply
Author
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by George_Lager
1 year, 7 months ago.

Topic Details
Forum: Platform Support: Charts, Data & Broker Setup
Language: English
Started: 07/07/2024
Status: Active
Attachments: No files
Logo Logo
Loading...