Coding with 2 different time units

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #208549 quote
    Joseph BenyairJoseph Benyair
    Participant
    New

    Hi

    Is it possible to use 2 different time units ?

    for example : Condition 1 Money Flow in 1 Day ..

    condition 2 MACD in 1 week ..

    Thank you.

    Joseph

    #208551 quote
    GraHalGraHal
    Participant
    Master

    Yes, we just need to make sure we don’t use the same condition names in both TF’s.

    We can use, for example … CW = xyz //Weekly TF and CD = xyz //Daily TF … my thinking might be a bit awry? Anybody feel free to correct me or add more?.

    When coding, use of the same name in more than 1 Timefame gets an error message.

    Joseph Benyair thanked this post
    #208569 quote
    PeterStPeterSt
    Participant
    Master

    When coding, use of the same name in more than 1 Timefame gets an error message.

    Very tiny correction : giving the same variable(-name) a value in more than 1 TF gets an error message.

    Joseph Benyair thanked this post
    #208571 quote
    GraHalGraHal
    Participant
    Master

    Yeah that’s right, thanks Peter!  It didn’t feel right even as I was typing above.

    Joseph Benyair thanked this post
    #208715 quote
    NicolasNicolas
    Keymaster
    Legend

    Yes, there are many examples around. However, you can learn the basis from this topic: First approach to multi timeframe trading with ProRealTime

    #208782 quote
    Joseph BenyairJoseph Benyair
    Participant
    New

    Thank you so much ,it works perfectly !

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

Coding with 2 different time units


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 5 replies,
has 4 voices, and was last updated by Joseph BenyairJoseph Benyair
3 years, 8 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 01/28/2023
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...