Error displacing mov average in MC TWS  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
Automeq
Posts: 108
Joined: 16 Apr 2014
Has thanked: 15 times
Been thanked: 1 time

Error displacing mov average in MC TWS

Postby Automeq » 16 Mar 2015

In MC for Interactive Brokers, 3 line break charts, time frame 5 minute, when I select a moving average 200 period I get it correctly (solid red).

If I displace that 10 periods (-10), I also get it correct (dot red line)

However if I displace it 50 periods (-50) I get nothing and an erros message. Why is that ? Is there any limit of periods to which we can displace a moving average ?
Attachments
1.png
(21.73 KiB) Downloaded 1174 times

Automeq
Posts: 108
Joined: 16 Apr 2014
Has thanked: 15 times
Been thanked: 1 time

Re: Error displacing mov average in MC TWS

Postby Automeq » 16 Mar 2015

The error message
Attachments
2.png
(31.13 KiB) Downloaded 1202 times

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Error displacing mov average in MC TWS  [SOLVED]

Postby Henry MultiСharts » 19 Mar 2015

Hello Automeq,

If you want to displace the plot 50 bars forward then you need to have at least 51 bars Chart Shift in Format-> Window-> X-Time scale.

Automeq
Posts: 108
Joined: 16 Apr 2014
Has thanked: 15 times
Been thanked: 1 time

Re: Error displacing mov average in MC TWS

Postby Automeq » 19 Mar 2015

Not sure what or if you mean works.

For example, if I insert a mov average 200, displaced by -200, I get the error (image 4)

Going to X-Axe settings I can insert 1000% (ou 10000% ou 1 million % but it allways turn to a maximum of 100%, obviously) - image 3

I have 500 days back loaded. IB only loads about 120 but it's 5 minutes time frame so I have several thousand bars (image 5).

If I insert a moving average 200, without displace, I get it correct which means I have more that enough bars to calculate moving average (image 6).

So I was wondering if software limits the displace number.

BTW, is there any way of inserting more than an attachment in a post ?
Attachments
3.png
(42.82 KiB) Downloaded 1173 times

Automeq
Posts: 108
Joined: 16 Apr 2014
Has thanked: 15 times
Been thanked: 1 time

Re: Error displacing mov average in MC TWS

Postby Automeq » 19 Mar 2015

image 4
Attachments
4.png
(25.45 KiB) Downloaded 1130 times

Automeq
Posts: 108
Joined: 16 Apr 2014
Has thanked: 15 times
Been thanked: 1 time

Re: Error displacing mov average in MC TWS

Postby Automeq » 19 Mar 2015

image 5
Attachments
5.png
(25.73 KiB) Downloaded 1115 times

Automeq
Posts: 108
Joined: 16 Apr 2014
Has thanked: 15 times
Been thanked: 1 time

Re: Error displacing mov average in MC TWS

Postby Automeq » 19 Mar 2015

image 6
Attachments
6.png
(19.35 KiB) Downloaded 1130 times

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: Error displacing mov average in MC TWS

Postby JoshM » 20 Mar 2015

Not sure what or if you mean works.

(...)

Going to X-Axe settings I can insert 1000% (ou 10000% ou 1 million % but it allways turn to a maximum of 100%, obviously) - image 3
If you displace with a negative value, the line will be plotted towards the future (where there aren't any bars yet). That's why Henry says you'll need to have enough bars into the future with the 'Chart Shift' setting. Otherwise the line cannot be plotted on those future price bars.

Have you tried using an absolute bar number by the way? (Click on the '%' sign in the 'Format Window' screen to toggle between a percentage and an absolute amount of bars).
BTW, is there any way of inserting more than an attachment in a post ?
Add the image to the post and then click 'Preview'. Then add the second image to the post, and so on.

Automeq
Posts: 108
Joined: 16 Apr 2014
Has thanked: 15 times
Been thanked: 1 time

Re: Error displacing mov average in MC TWS

Postby Automeq » 20 Mar 2015

Have you tried using an absolute bar number by the way? (Click on the '%' sign in the 'Format Window' screen to toggle between a percentage and an absolute amount of bars).
Ouch... never notice that we could chose between % and absolute value.

Worked marvilous and was so simples. Many thanks for the help Josh.


Return to “MultiCharts .NET”