difference between timeframe(updateonclose) and timeframe()

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #162291 quote
    kevin12345
    Participant
    Average

    hi,

    can someone explain the difference between timeframe(…,updateonclose) and timeframe(..)? and if  I am on 15min chart by default and the time is 2:30. i have a timeframe(4h,updateonclose) so does the command use the previous candle on the 4h chart because the lastest 4h candle has not closed yet?

     

    thank you

    #162294 quote
    robertogozzi
    Moderator
    Master

    Yes, if you used timeframe(…,updateonclose), since all data are updated when the 4h candle closes.

    timeframe(..), which can also be written as timeframe(..,default) would use the current 4h data every 15 minutes without waiting for its closure.

    Timeframe(default) refers to the lowest TF used, instead. The one on your chart that has been used to set the pace at which the strategy is executed and for which updateonclose and default have the same meaning and are, for this reason, not allowed.

    #162305 quote
    Nicolas
    Keymaster
    Master
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

difference between timeframe(updateonclose) and timeframe()


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
kevin12345 @kevin12345 Participant
Summary

This topic contains 2 replies,
has 3 voices, and was last updated by Nicolas
5 years ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 02/22/2021
Status: Active
Attachments: No files
Logo Logo
Loading...