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.
Size:
Color:
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.
Size:
Color:
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?
Size:
Color:
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.
Size:
Color: