Indicator value multiple timeframes

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15624 quote
    nielkofc
    Participant
    New

    Hi,

    I’m trying out the possibilites for automatic trading in PRT. I have a question that is related to this since i cannot find any solutions in the manuals.

    1. In a ProOrder program, is it possible to read the values of indicator of different timeframes than the one that the system is executing on?

    Let’s say that for example I want to buy a security if the RSI < 30 on th 4Hour 1Hour and 30 Min chart.

    Thanks

    #18551 quote
    Nicolas
    Keymaster
    Master

    This is a common question on forums here 🙂

    Until the multitimeframe capabilities is not available in the platform (soon to be released), the best you can do is to multiply your indicators’ periods with the quantity of the actual timeframe bar the superior timeframe has. For example:

    Let’s say you want the RSI[14] of the 1 hour timeframe on your 5 minutes chart, you need to multiply the 14 periods by 12, because there are 12 bars of 5 minutes in 1 hour, so the 1 hour RSI 14 periods on your 5 minutes chart should be coded like this:

    1hourRSI = RSI[168]

    Of course, the value would not be as precise as the real 1 hour RSI, but that’s a workaround that already made its proof.

    Hope it helps you, please let us know more if you need more assistance.

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

Indicator value multiple timeframes


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
nielkofc @kleinofc Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
9 years, 2 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 10/27/2016
Status: Active
Attachments: No files
Logo Logo
Loading...