Assymetric Weekly Bars To Test For Buy Conditions, Daily Bars To Test For Sell Conditions
Author: swuzy
Creation Date: 9/24/2012 3:05 PM
profile picture

swuzy

#1
On some strategies, I would like to be able to simply modify them to apply a weekly bar to test for entry conditions, and a daily bar to test for exit conditions.

For example run a weekly bar MACD or Stochastic for Entries,
and run a daily bar MACD, or Stochastic, or % Trailing Stop for Exits.

Can this be easily done by some switching code or such, or is it going to be another spaghetti code project?

If not easily done currently, is it feasible to design such a easy switcher code for use, to easily apply to any variety of already done strategies?

Thanks a lot,

Swuzy
profile picture

Cone

#2
The operation is simple and always the same:

1. Use a chart in the trading time frame (Daily)
2. Set the scale (SetScaleWeekly)
3. Create the DataSeries/Indicators
4. RestoreScale()
5. Synchronize the DataSeries in 3. back to the chart's time frame.

There is no confusion about which indicators you're using for entries and exits because you will give those DataSeries variables different names. No spaghetti required.

Help > WealthScript Programming Guide > Multi-Time Frame Analysis > Intraday/Weekly,Monthly
profile picture

swuzy

#3
Great. Thanks.
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).