Change indicator timeperiod and turbo question

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #234885 quote
    George_LagerGeorge_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
    JSJS
    Participant
    Master

    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álezIván González
    Moderator
    Legend
    Here you have more information about work with different timeframes: https://www.prorealcode.com/documentation/timeframe-probacktest-proorder/
    #235003 quote
    George_LagerGeorge_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.
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

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_LagerGeorge_Lager
2 years, 2 months ago.

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