MTF and Barindex

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

    At which Barindex do the instruction Barindex refers in the code :
    The one of the main timeframe of the graph, or the one of the timeframe of the intruction Timeframe just above ?

    In clear, if i have Barindex under the instruction Timeframe (5 minutes, default) and later in the code Barindex under the instruction Timeframe (1 hour, default) ; are those 2 barindex are the same or are their correlated to the timeframe selected just above them with the instruction timeframe ?

    #208823 quote
    robertogozzi
    Moderator
    Master

    Each time frame has its own count.
    Backtest this code:

    Timeframe(1h,UpdateOnClose)
    Bar1h = BarIndex
    Timeframe(5mn,UpdateOnClose)
    Bar5mn= BarIndex
    Timeframe (default)
    buy at -close limit
    Graph Bar1h
    Graph Bar5mn
    LucasBest thanked this post
    #208885 quote
    LucasBest
    Participant
    Average

    Grazie mille.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

MTF and Barindex


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
LucasBest @lucasbest Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 01/31/2023
Status: Active
Attachments: No files
Logo Logo
Loading...