Higher TF data on a lowerTF

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #241478 quote
    robert123
    Participant
    Master
    //xxx=33
    //yyy=720
    cCHANGE=ROC[xxx](close)
    If cchange > 0 then
    pPrice=low[0]
    elsif cchange < 0 then
    pprice=high[0]
    endif
    if close[0] crosses over average[4](pprice)then
    ccpl=low
    elsif close[0] crosses under average[4](pprice) then
    ccpl=high
    endif
    
    
    rrocycle=close-average[yyy](ccpl)
    Mma1=ExponentialAverage[7](rrocycle)

    Hi Nicolas and all,

    I am trying to automate the daily data for ‘Mma1’ to be used as a level on a 1min TF, my attempts have as of yet been unsatisfactory, I would be grateful if you could let me know if it is possible and if you could aid me in achieving the result.

    Many thanks,

    Robert

    #241486 quote
    JS
    Participant
    Senior

    Hi Robert, It is indeed possible to display an indicator with a 1-day timeframe on a 1-minute chart… The problem with your indicator is that you are using 720 days (yyy=720), and to display this on a 1-minute chart, you need more than 1 million bars (720 days x 24 hours x 60 minutes > 1,000,000 units). A simple example with fewer days…

    Iván González thanked this post
    #241531 quote
    robert123
    Participant
    Master
    Thank you JS.
    JS thanked this post
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Higher TF data on a lowerTF


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
robert123 @robert123 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by robert123
1 year, 1 month ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 12/16/2024
Status: Active
Attachments: 1 files
Logo Logo
Loading...