Trading in M1 and buying confition in M30

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

    Hello,

    My algo is running in M1 time frame but I would like to add a buying condition based on the M30 time frame,

    If price> Moving avg [time frame M30] -> buy

    If anyone has any idea how to code that it would be so niiiiice 🙂

    Thanks

    #37197 quote
    AutoStrategistAutoStrategist
    Participant
    Veteran

    I think the best you can do until multi timeframe support comes along is to create an Average that is 30 x the MA period you require.  It is not quite the same thing as it contains all the intermediate values but should be close enough.

    Nicolas thanked this post
Viewing 2 posts - 1 through 2 (of 2 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

Trading in M1 and buying confition in M30


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Aymeric @aymeric Participant
Summary

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

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 05/31/2017
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...