Time Scale changing
Author: angel57
Creation Date: 9/12/2008 1:43 AM
profile picture

angel57

#1
Is there a way to switch between time scales? I would like to run a strategy that creates a buy signal based on 15min candle patterns, but then switch to 1 min candles once the trade is executed to manage the trailing stops and scale out of the position in steps as the candles reach certain profit/loss levels. I would like this for both backtesting and then for real-time running strategy. Any thoughts/comments or code examples would be appreciated.
profile picture

Eugene

#2
Without making things complicated (WealthScript has direct support for accessing higher time frames, not the opposite), you could use 1-minute data as the basis time frame for your Strategy and then follow the guidelines in the WealthScript Programming Guide, chapter Multi-Time Frame Analysis > Intraday/Intraday.
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).