# 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

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 ?
H.Pat

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

### Re: Last Point of an Average

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 ?
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

Example :
chart 1 : MMA 50
chart 2 : last point of the MMA 50
How to code this , is it possible
Attachments
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

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

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

### Re: Last Point of an Average

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

Many of our members speak French.

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

### Re: Last Point of an Average

Example :
chart 1 : MMA 50
chart 2 : last point of the MMA 50
How to code this , is it possible
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

Thank you very much for yor answer

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

### Re: Last Point of an Average

How displace the last point of the MMA
Is it possible ?
Attachments
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

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 ?
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 (57.66 KiB) Viewed 830 times

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

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 ?
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

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 ?
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); ```
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 ?
Attachments
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

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 ?

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 ?
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 (13.47 KiB) Viewed 825 times

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

### Re: Last Point of an Average

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