MTF and Barindex

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

    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    LucasBestLucasBest
    Participant
    Senior

    Grazie mille.

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 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 LucasBestLucasBest
3 years, 7 months ago.

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