Using intraday for entry timing but retain EOD scale for indicators
Author: 07nioe
Creation Date: 11/6/2016 3:32 PM
profile picture

07nioe

#1
Hello,

Giving the following strategy, I would like optimize market entry while entering to a certain time.

That means, instead of enter the market to market open, it opens at 10.00 oder 11.00 or 11.30. That has to be backtested.

Indicators still work on a daily basis.

How do I have to code it? I'm a little bit confused about the examples I found on Wiki.

Thank you for your help.

Best
07nioe

Here is the code:

CODE:
Please log in to see this code.
profile picture

Eugene

#2
Hello,

Here's what you might focus on to pursue your project:

QUOTE:
That means, instead of enter the market to market open, it opens at 10.00 oder 11.00 or 11.30. That has to be backtested.

1. Building blocks of Intraday trading strategies > Function to easily determine and compare time of day

QUOTE:
Indicators still work on a daily basis.

2. All those DataSeries and Bars have to be scaled to daily to retain the daily values of the indicators. You'll find explanations and code examples in the WealthScript Programming Guide > Multi-Time Frame Analysis and in the QuickRef > Time Frames (SetScale, RestoreScale, Synchronize).

Hope that helps to get started.
profile picture

07nioe

#3
Yes, that helps. Thank you!