Custom Daily Indicator based on Intraday Data
Author: BigReturns
Creation Date: 10/2/2013 5:44 PM
profile picture

BigReturns

#1
Hoping you guys can help me with this..

I've created many custom indicators but this this one is eluding me. So basically... I want to start in daily mode and switch to intraday to calculate the single indicator value for the day, and then switch back to daily to use the indicator value.

I can create the indicator value while in WLP is set to intraday just fine. Where I run into problems is when I set WLP to daily, I need to load up 5min data to run the calculation. I've looked at SetScaleCompressed() and RestoreScale() but it you can't get 5min data from daily.

Any guidance on this would be much appreciated.

Also, how do I get into the beta for wealth signals? I tried creating an account and it says I don't have permission.

-D
profile picture

Cone

#2
I think you're looking at it backwards. If you need intraday values, use the intraday chart. You can easily scale for Daily bars from intraday bars. Voila, no switching charts required.

WealthSignals is operational, no longer in beta. Do you mean you were trying to create a WealthSignals system? You don't need another account. If you continue to have trouble with it, please create a thread in the appropriate WealthSignals > Forum.
profile picture

BigReturns

#3
Thanks for the thought... If I use your train of thought and use the following code snippet at 5min intraday, I run into two issues.

CODE:
Please log in to see this code.


1) I get a run-time error saying that myIndicator has fewer bars than symbol being plotted.
2) Even though I set the scale to daily in the code, the display is still at 5min

Thoughts?
profile picture

Eugene

#4
QUOTE:
Where I run into problems is when I set WLP to daily, I need to load up 5min data to run the calculation. I've looked at SetScaleCompressed() and RestoreScale() but it you can't get 5min data from daily.


Since you did not explain clearly what exactly you want from that indicator, I'll just leave this here and hope that some of these patterns help:

Intraday / Multi-Time Frame | Accessing Intraday data from Daily
Intraday / Multi-Time Frame | Mixing intraday and daily data > Updating a Daily indicator using Intraday values

QUOTE:
1) I get a run-time error saying that myIndicator has fewer bars than symbol being plotted.


Without addressing other coding errors of this script (makes no sense until we have a clear explanation), I think there also should be an Index Out Of Bounds exception, because this code is trying to access the data at [bar-5] on bar == 1. I mean, the loop should be started at bar = 5.

QUOTE:
2) Even though I set the scale to daily in the code, the display is still at 5min

This is how it should be for a Daily indicator on an Intraday time frame. Refer to the WealthScript Programming Guide > Multi-Time Frame Analysis.
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).