Coding with 2 different time units

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #208549 quote
    Joseph 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
    GraHal
    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
    PeterSt
    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
    GraHal
    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
    Nicolas
    Keymaster
    Master

    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 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.

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 Benyair
3 years ago.

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