PyInvesting

Discussion

Moving Average calculate at which time frames?

6 years, 3 months ago 845 views

Hi Ivan,

Let's the strategy is rebalancing weekly time frames. Is Moving average calculated based on daily time frames or weekly time frames? The live test sig AL generated daily. Which daily signal data should I use to do exactly what the backtest did? Which day in a week should perform to rebalance based on the signal? Monday? 

Contribute

Add to the discussion

Share an answer, source, or follow-up question.

4 replies

6 years, 3 months ago

Yes you will be able to execute the trades on Wednesday evening. I use the Tuesday close prices because statistically the backtest performacne is better when I rebalance using Tuesday's close price vs Monday's close price. It is known that Mondays are usually down days for the market. 

6 years, 3 months ago

Hi Ivann, 

I confirmed that I have receive the daily live testing although my rebalance frequency is weekly. Can elaborate the rationale select Tuesday closing over other days? So I should based on Wednesday live notification of the stock mix to be executed on Wednesday evening? This is important to exactly doing what u perform in backtest. Do share if I miss out other important points. 

6 years, 3 months ago

If I choose rebalance weekly, when will I receive the live test? Since u mention it's based on closing price on Tuesday, so I should rebalance it on Tuesday? Any reason why the the weekly rebalance based on Tuesday closing price? 

6 years, 3 months ago

The moving average is calculated based on the daily time frames. 

The rebalancing is done using close prices on Tuesday so you should see your orders on Wednesday. 

I didn't understand your second question. Which daily signal data are you referring to?