MultiTimeFrame

Have a QScript to share, or need help with programming? Post your comment here.
Post Reply
rlygangesh
Posts: 39
Joined: Sun Oct 02, 2016 3:40 pm
Location: Mumbai, India
Contact:

MultiTimeFrame

Post by rlygangesh » Thu Jul 20, 2017 7:30 am

Hi Earik
how can i plot multi time frame oscillators (Say USM 5 min, 15 min, 60 min)
in one chart (small TF Say 5 min)
rlygangesh@gmail.com

User avatar
earik
Site Admin
Posts: 474
Joined: Mon Dec 01, 2014 12:41 pm
Contact:

Re: MultiTimeFrame

Post by earik » Fri Jul 21, 2017 6:27 pm

There are two ways:

1) If all your time frames fit together in the right way, you can use the smaller time frame to calculate the longer time frame indicators. For example, if you are on a 1min chart, and want a 5min chart's 10-bar moving average, you could just plot a 50-bar average on the 1min chart. It's the same value. Sometimes that's harder to do though, depending on the indicator.

2) You can calculate all the indicators on their own charts, then write the data out to a text file. On the faster time frame chart, read the data and plot the lines. If you run into synchronization issues, like where the file from the long term chart gets written after the short term chart already plots, you might have to do a Ctrl-K to refresh and reload the data. That can be annoying, which is why it's better if you can do the other option.

Earik

rlygangesh
Posts: 39
Joined: Sun Oct 02, 2016 3:40 pm
Location: Mumbai, India
Contact:

Re: MultiTimeFrame

Post by rlygangesh » Sat Jul 22, 2017 5:31 am

hI Sir

first is theoretically right not practically , DMI(14) in 15 min , DMI(42) in 5 min but result is different. if one use MACD like oscillator than result very poor.
for second way , it should ok but tough to follow when live market
rlygangesh@gmail.com

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests