Getting Extended HTF History from LTF Charts

Moderator: admin

Getting Extended HTF History from LTF Charts

Postby imxuf92 » Wed Apr 27, 2016 7:32 pm

Hello!

I'm working on an indicator that needs to process history from W1 candles. However, when running the indicator on the m1, the source stream doesn't contain enough data for me to build an adequate number of W1 candles.

Is there a way that I can obtain the previous year's worth of W1 candles while on the m1 chart?

I've been playing with getHistory, getHistory1, and getSyncHistory but can't seem to figure out how to do this.

Is what I'm asking even possible? Do I have to switch to a strategy?
imxuf92
 
Posts: 26
Joined: Sat Jan 23, 2016 6:55 pm

Re: Getting Extended HTF History from LTF Charts

Postby Julia CJ » Fri Apr 29, 2016 9:11 am

Hi Imxuf92,

In this case getHistory should return the specified range of data.
Julia CJ
 

Re: Getting Extended HTF History from LTF Charts

Postby imxuf92 » Sat Apr 30, 2016 12:38 pm

I understand that.

How does one obtain historical data from BEFORE the start of the chart time frame.

For example, If I'm viewing the m1 chart and I want daily data, the m1 stream only goes back 1 or 2 days. How can I get (and process) the prior 30 or 60 days of D1 data for use on the m1?
imxuf92
 
Posts: 26
Joined: Sat Jan 23, 2016 6:55 pm


Re: Getting Extended HTF History from LTF Charts

Postby imxuf92 » Mon May 02, 2016 11:18 am

Brilliant!

That's exactly what I needed.

Thanks!
imxuf92
 
Posts: 26
Joined: Sat Jan 23, 2016 6:55 pm


Return to Indicator Development

Who is online

Users browsing this forum: No registered users and 5 guests

cron