Last Point of an Average

Questions about MultiCharts and user contributed studies.
rvnono
Posts: 14
Joined: 29 Oct 2013
Has thanked: 1 time

Last Point of an Average

Postby rvnono » 27 Nov 2015

Hello ,
Excuse me for my English !
Is It possible to see on the chart only the last point of an mobile average ?
How to code this ?
Thanks for advance
H.Pat

User avatar
TJ
Posts: 7192
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 990 times
Been thanked: 2049 times

Re: Last Point of an Average

Postby TJ » 01 Dec 2015

Hello ,
Excuse me for my English !
Is It possible to see on the chart only the last point of an mobile average ?
How to code this ?
Thanks for advance
H.Pat
You need to describe your problem in more detail.

Can you make some examples?

Maybe draw a picture to illustrate your point?

rvnono
Posts: 14
Joined: 29 Oct 2013
Has thanked: 1 time

Re: Last Point of an Average

Postby rvnono » 11 Dec 2015

Thank you for your answer
Example :
chart 1 : MMA 50
chart 2 : last point of the MMA 50
How to code this , is it possible
thanks for advance
Attachments
MMA 1 point.png
MMA 1 point.png (37.61 KiB) Viewed 902 times

rvnono
Posts: 14
Joined: 29 Oct 2013
Has thanked: 1 time

Re: Last Point of an Average

Postby rvnono » 11 Dec 2015

chart 1 : MMA 50
Attachments
MMA.png
MMA.png (39.48 KiB) Viewed 886 times

User avatar
TJ
Posts: 7192
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 990 times
Been thanked: 2049 times

Re: Last Point of an Average

Postby TJ » 12 Dec 2015

Hello ,
Excuse me for my English !
::
H.Pat
You can write in any language you are comfortable with.

Many of our members speak French.

User avatar
TJ
Posts: 7192
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 990 times
Been thanked: 2049 times

Re: Last Point of an Average

Postby TJ » 12 Dec 2015

Thank you for your answer
Example :
chart 1 : MMA 50
chart 2 : last point of the MMA 50
How to code this , is it possible
thanks for advance
Try this:

Code: Select all


Plot100( MMA50, "MMA50");

If Barstatus = 2 then noplot(100);

rvnono
Posts: 14
Joined: 29 Oct 2013
Has thanked: 1 time

Re: Last Point of an Average

Postby rvnono » 15 Dec 2015

Thank you very much for yor answer

rvnono
Posts: 14
Joined: 29 Oct 2013
Has thanked: 1 time

Re: Last Point of an Average

Postby rvnono » 15 Dec 2015

Please , another question :
How displace the last point of the MMA
Is it possible ?
Thank you for advance
Attachments
MC2.png
MC2.png (49.47 KiB) Viewed 879 times

rvnono
Posts: 14
Joined: 29 Oct 2013
Has thanked: 1 time

DISPLACE the Last Point of an Average

Postby rvnono » 01 Apr 2016

Hello ,
Excuse me for my English .
This in the code to draw the last point of an average .
Is it possible to displaced this point of 10 periods for exemple ? (see attachment )
How to code this ?
Thank you in advance for yor answer ,
Best regards ,
H.Paternotte

Code: Select all

inputs: Price( Close ), Length( 20 ), Displace( 10 ) ;



variables: value1( 0 ) ;

value1 = AverageFC( Price, length ) ;



Plot100[displace]( value1 , "MM1" ) ;


If Barstatus = 2 then noplot(100);
Attachments
MC.png
MC.png (57.66 KiB) Viewed 830 times

User avatar
TJ
Posts: 7192
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 990 times
Been thanked: 2049 times

Re: DISPLACE the Last Point of an Average

Postby TJ » 01 Apr 2016

Hello ,
Excuse me for my English .
This in the code to draw the last point of an average .
Is it possible to displaced this point of 10 periods for exemple ? (see attachment )
How to code this ?
Thank you in advance for yor answer ,
Best regards ,
H.Paternotte

Code: Select all

inputs: Price( Close ), Length( 20 ), Displace( 10 ) ;
variables: value1( 0 ) ;

value1 = AverageFC( Price, length ) ;
Plot100[displace]( value1 , "MM1" ) ;
If Barstatus = 2 then noplot(100);
Try this:

Code: Select all


inputs: Price( Close ), Length( 20 ), Displace( 10 ) ;
variables: value1( 0 ) ;

value1 = AverageFC( Price, length ) ;
Plot100[displace]( value1 , "MM1" ) ;

plot100[displace+1](0);

rvnono
Posts: 14
Joined: 29 Oct 2013
Has thanked: 1 time

Re: DISPLACE the Last Point of an Average

Postby rvnono » 04 Apr 2016

Hello ,
Excuse me for my English .
This in the code to draw the last point of an average .
Is it possible to displaced this point of 10 periods for exemple ? (see attachment )
How to code this ?
Thank you in advance for yor answer ,
Best regards ,
H.Paternotte

Code: Select all

inputs: Price( Close ), Length( 20 ), Displace( 10 ) ;
variables: value1( 0 ) ;

value1 = AverageFC( Price, length ) ;
Plot100[displace]( value1 , "MM1" ) ;
If Barstatus = 2 then noplot(100);
Try this:

Code: Select all


inputs: Price( Close ), Length( 20 ), Displace( 10 ) ;
variables: value1( 0 ) ;

value1 = AverageFC( Price, length ) ;
Plot100[displace]( value1 , "MM1" ) ;

plot100[displace+1](0);
Thank you for your answer .
I tried this code before writing you , but this code displace all the average .
Is it possible to displace only the last point of the average ?
Thanf you in advance
Attachments
MC2.png
MC2.png (33.02 KiB) Viewed 815 times

rvnono
Posts: 14
Joined: 29 Oct 2013
Has thanked: 1 time

Re: DISPLACE the Last Point of an Average

Postby rvnono » 04 Apr 2016

My bad, i made a bad response about your sample.
Your code, really show that the last point is displace, that's greate, this is what i want, but for now all others value are 0.

Please take a look at attached screenshot,
Blue points are 0 values, could we remove/hide then ?

Thanks in advance.
Best regards

Hello ,
Excuse me for my English .
This in the code to draw the last point of an average .
Is it possible to displaced this point of 10 periods for exemple ? (see attachment )
How to code this ?
Thank you in advance for yor answer ,
Best regards ,
H.Paternotte

Code: Select all

inputs: Price( Close ), Length( 20 ), Displace( 10 ) ;
variables: value1( 0 ) ;

value1 = AverageFC( Price, length ) ;
Plot100[displace]( value1 , "MM1" ) ;
If Barstatus = 2 then noplot(100);
Try this:

Code: Select all


inputs: Price( Close ), Length( 20 ), Displace( 10 ) ;
variables: value1( 0 ) ;

value1 = AverageFC( Price, length ) ;
Plot100[displace]( value1 , "MM1" ) ;

plot100[displace+1](0);
Attachments
YM7.png
YM7.png (13.47 KiB) Viewed 825 times

User avatar
TJ
Posts: 7192
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 990 times
Been thanked: 2049 times

Re: Last Point of an Average

Postby TJ » 04 Apr 2016

If you want to do a lot of minor variations and adjustments on an indicator,
I would suggest you to start here:
[FAQ] EasyLanguage / PowerLanguage
viewtopic.php?f=16&t=6929

rvnono
Posts: 14
Joined: 29 Oct 2013
Has thanked: 1 time

Re: Last Point of an Average

Postby rvnono » 05 Apr 2016

Thank you for your answer .
I use MC for 2 years. I know these guides. But badly speaking English, I have difficulty to understand everything .I coded numerous personal indicators, but for this last code, I did not reach there, reason why I wrote you.
Can you help me ?
Best Regards


If you want to do a lot of minor variations and adjustments on an indicator,
I would suggest you to start here:
[FAQ] EasyLanguage / PowerLanguage
viewtopic.php?f=16&t=6929


Return to “MultiCharts”