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
Last Point of an Average
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
Re: Last Point of an Average
You need to describe your problem in more detail.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
Can you make some examples?
Maybe draw a picture to illustrate your point?
Re: Last Point of an Average
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
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
- (37.61 KiB) Downloaded 918 times
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
Re: Last Point of an Average
You can write in any language you are comfortable with.Hello ,
Excuse me for my English !
::
H.Pat
Many of our members speak French.
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
Re: Last Point of an Average
Try this: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
Code: Select all
Plot100( MMA50, "MMA50");
If Barstatus = 2 then noplot(100);
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 ?
Thank you in advance for yor answer ,
Best regards ,
H.Paternotte
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
- (57.66 KiB) Downloaded 846 times
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
Re: DISPLACE the Last Point of an Average
Try this: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);
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);
Re: DISPLACE the Last Point of an Average
Thank you for your answer .Try this: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);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 ?
Thanf you in advance
- Attachments
-
- MC2.png
- (33.02 KiB) Downloaded 831 times
Re: DISPLACE the Last Point of an Average
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
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
Try this: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);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) Downloaded 841 times
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 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
I would suggest you to start here:
[FAQ] EasyLanguage / PowerLanguage
viewtopic.php?f=16&t=6929
Re: Last Point of an Average
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
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