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  

  • Member Statistics

    • Total Topics
      7,772
    • Total Posts
      40,526
    • Total Members
      50,920
    Newest Member
    KRY
    Joined 20/11/19 11:26
  • Posts

    • A demo account should work the same as live, otherwise it is misleading.
    • Hey,  The demo leveraged account will work in the same way however there are some issues on the demo account because we test on there to make sure the live account runs as smoothly as possible.  Unfortunately, as mentioned before, we don't offer demo for portfolios but you can find the performance information here. Say you wanted to see the data back from 31st July 2014, you can go back and see the performance since that time: https://www.ig.com/uk/investments/smart-portfolios/performance Thanks for your post. I will get this looked into so going forward this does not happen.   
    • @Trevbeats, Yes I do trade but I am an investor first and then a trader. I trade from the U.K. 
×
×