Using indicator from another timeframe?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #18238 quote
    snapplesnapple
    Participant
    New

    Hi all, I was wondering if it is possible at all to include an indicator from another timeframe in a trading system.

    At the moment I would like to make a system that uses the 5 minute time frame, but before it executes the trade, it has to be above the 4 hour moving average, just so that a trend is established.

    Has anyone been able to do this before/ do they know if it is possible?

    Many thanks

    #18242 quote
    GraHalGraHal
    Participant
    Master

    Hi Snapple

    Yes … for example, if you are in the 4 H Timeframe then MA[5] = MA[48] in the 5M Timeframe.

    So you’d need … IF close >  average[48] (close) THEN … etc

    Hope that makes sense, if not just say.

    Cheers
    Grahal

    #18243 quote
    snapplesnapple
    Participant
    New

    Hi Grahal thanks for you response,

    What I mean is I want to code the entry on a low timeframe such as 5 or 10 minutes, using a 15-period moving average for that timeframe. But I only want to enter the trade depending on whether the price closes above the 21-period moving average that is used on the 4 hour chart (so 21 – 4 hour periods), if that makes sense…

    If I was in the 5 minute timeframe and used MA[48], wouldn’t it just calculate the MA of the last 48 bars?

    Thanks

    #18247 quote
    EricEric
    Participant
    Master

    There are 48 5-min bars in one 4-hours bar

    you need 48×21 = 1008 (you need at least that many bars in history to calculate the MA)

    and another thing to bear in mind is if you use IGs 24 hours index (dax for example) there is 5.min bars missing out of hours so the 5-min MA 1080 may not be the same as 4-hour MA 21, so you may have to tweak it to get the same result

    #18249 quote
    snapplesnapple
    Participant
    New

    Thank you! I’ve tried what you suggested and it seems to work! Thank you very much!

Viewing 5 posts - 1 through 5 (of 5 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

Using indicator from another timeframe?


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
snapple @snapple Participant
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by snapplesnapple
9 years, 9 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 12/11/2016
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...