How to scale data from 1H to 4H?
Author: 07nioe
Creation Date: 6/2/2017 6:34 AM
profile picture

07nioe

#1
Hi,

I have 60 minutes data and would like to use the 4h timeframe for my strategy. How does WL rescale the data? I think it works with SetScaleCompressed, but I don't know how it has to be coded. Thanks for help.

07nioe
profile picture

Eugene

#2
Hi,

You can save us some typing and help yourself. One should find lots of examples if he knows where to look:

1. QuickRef (F11 in the program).

2. WealthScript Programming Guide > Multi-Time Frame Analysis

3. Search the forum. Although forum search is real-time it looks in topic titles only. Here's a neat trick for context search: simply use google search and prepend your query (which is "SetScaleCompressed") with site:www.wealth-lab.com/Forum/

4. Downloadable Strategies (Ctrl-O, click "Download...", check "Public..." and uncheck "Published since..."). Once done, type SetScaleCompressed in the "Strategy Code" field and click "Search".

As you can see, there's no shortage of code samples.