Jump to content
  • 0
Sign in to follow this  

ProRealTime - ProBuilder Timeframe

Question

Hi,

 

How can I set the timeframe in the code I'm trying to write for an indicator... I'm working on 2 minute charts but want to calculate levels based on the previous hours high/low and close....

 

I've tried using the TIMEFRAME command but can't seem to get it to work... the first part of the code is :

 

TIMEFRAME(60 minutes)

myH = ( HIGH[1] )
myL = ( LOW[1] )
myC = ( CLOSE[1] )

 

Thank you :)

Share this post


Link to post

1 answer to this question

Recommended Posts

  • 0

Hi,

 

If you haven't figured out yourself meanwhile, the timeframe command only exists in ProScreener and can not be used in an indicator.

Also an indicator in the current version of PRT has no possibility to access anything from another timeframe than the chart it is running on.

Hopefully future versions will have this possibility.

Share this post


Link to post

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
You are posting as a guest. If you have an account, please sign in.
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×