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



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.

profile picture



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

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.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).