MTF being ignored

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #139746 quote
    PhilAPhilA
    Participant
    New

    I’ve got this to define a recent daily high and daily low:

    Timeframe(Daily)
    
    RecentHigh = highest[52](close)
    RecentLow = lowest[52](close)
    
    Timeframe(default)
    
    //rest of code goes here

    Where default should be the 1 second timeframe that the strategy runs in.

    When it uses the variables RecentHigh or RecentLow, it isn’t using the daily values. It seems to be using the highest 52 second close and so on… ?

    #139759 quote
    NicolasNicolas
    Keymaster
    Legend

    Did you try to GRAPH these 2 variables?

    Also, if you dont use “updateonclose”, the Highest/Lowest will continue to be calculated on each 1 second bar, while if you use it the daily high/low will be updated on the next daily bar open only.

    #139793 quote
    PhilAPhilA
    Participant
    New

    Ah that’s helpful, using “updateonclose”, thank you.

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

MTF being ignored


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
PhilA @phila Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by PhilAPhilA
6 years, 2 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 07/21/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...