Setting the entire strategy to monthly time frame
Author: Ruschem
Creation Date: 12/30/2011 1:14 PM
profile picture

Ruschem

#1
Sorry for such a simple question. I found many examples in the help files and in the post on this site on combining different time frames in the same strategy but not how to change the entire strategy to weekly or monthly. Here is what I created using the wizard and the optimizer. How do I set this strategy to monthly once and for all instead of clicking the time frame button on the chart? Thanks.

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

Eugene

#2
You can set the scale to Monthly to build monthly DataSeries and/or Bars.
What you can not do is take trades in a non-native time frame e.g. Monthly.
profile picture

Ruschem

#3
Thank you. If I understood you correctly, the back-test results obtained by changing time frame on the chart from daily to weekly or monthly are incorrect. In order to get the correct results, I need to use weekly indicator/signal (MACD x-over) but return to daily time frame to actually trade. Right?
profile picture

Eugene

#4
QUOTE:
If I understood you correctly, the back-test results obtained by changing time frame on the chart from daily to weekly or monthly are incorrect.

What I mean was in reply to this:
QUOTE:
How do I set this strategy to monthly once and for all instead of clicking the time frame button on the chart?

In other words, you can't set that Strategy (or any other for that purpose) "once and for all" to execute trades on monthly time frame.

Just the opposite, changing time frame on the chart will deliver correct results. Trading functions wrapped inside SetScaleMonthly/RestoreScale will produce incorrect results.
QUOTE:
In order to get the correct results, I need to use weekly indicator/signal (MACD x-over) but return to daily time frame to actually trade. Right?

That's right. Weekly/monthly indicators to be traded on native scale are perfectly OK.
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).