Possible to use different periods for MA? (minutes and days)

Forums ProRealTime English forum ProOrder support Possible to use different periods for MA? (minutes and days)

Viewing 2 posts - 1 through 2 (of 2 total)
  • #55036

    Hi,   doing some backtesting with different MA crossing on a 10 minute basis. I’d like to add a filter with the price being > 200 days MA, or possibly 12 months MA. Is it possible to use combine different periods in the code?

    #55039

    You can use multiple averages wiyh different periods, of course (which you probably already know), something like:

    but you cannot access multiple timeframes at the same time. If you launch your strategy for a 4h TF, you can only access data referring to that TF, you cannot combine a MA for the daily TF in a 4h TF. You could try to simulate, say, a 200-period daily MA in a 4h TF by multiplying it by 6 (there are 6 4h bars in a day), so an average[200](close) would become an average[1200](close), but it will not yield the very same results.

    At least until the MTF (Multi Time Frame) version is released to traders.

     

Viewing 2 posts - 1 through 2 (of 2 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login