The formula below 
It's my standard formula for my graphe DAILY, WEEKLY and MONTHLY

How write it differently
for don't have the MA100 and MA200 on my chart in WEEKLY and MONTHLY

Thank

YLTech


--------------------------------------------------------------------------------

_SECTION_BEGIN("Price");

SetChartOptions(0,chartShowArrows|chartShowDates);

_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, 
Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, 
SelectedValue( ROC( C, 1 )) ));

Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | 
ParamStyle("Style") | GetPriceStyle() ); 

if( ParamToggle("Tooltip shows", "All Values|Only Prices" ) )

{

ToolTip=StrFormat("Open: %g\nHigh: %g\nLow: %g\nClose: %g (%.1f%%)\nVolume: 
"+NumToStr( V, 1 ), O, H, L, C, SelectedValue( ROC( C, 1 )));

}

_SECTION_END();

_SECTION_BEGIN("MA");

P = ParamField("Price field",-1);

Periods = Param("Periods", 20, 2, 200, 1 );

Plot( MA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCustom12 ), 
ParamStyle("Style") ); 

_SECTION_END();

_SECTION_BEGIN("MA2");

P = ParamField("Price field",-1);

Periods = Param("Periods", 50, 2, 300, 1 );

Plot( MA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorRed ), 
ParamStyle("Style") ); 

_SECTION_END();

_SECTION_BEGIN("MA3");

P = ParamField("Price field",-1);

Periods = Param("Periods",100, 2, 300, 1 );

Plot( MA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorBlue ), 
ParamStyle("Style") ); 

_SECTION_END();

_SECTION_BEGIN("MA4");

P = ParamField("Price field",-1);

Periods = Param("Periods",200, 2, 300, 1 );

Plot( MA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorBlack ), 
ParamStyle("Style") ); 

_SECTION_END();



--------------------------------------------------------------------------------

Merci
 
YLTech ( Yves L. )
 
Le présent message et les documents qui y sont joints sont réservés 
exclusivement au destinataire indiqué. Il est strictement interdit d'en 
utiliser ou d'en divulguer le contenu. Si vous recevez le présent message par 
erreur, veuillez le détruire S.V.P. et nous en aviser immédiatement afin que 
nous puissions corriger nos dossiers. Merci.
 
This message and the attached documents may contain privileged or confidential 
information that are intended to the addressee only. Any unauthorized 
disclosure is strictly prohibited. If you happen to receive this message by 
error, please delete it and notify us immediately so that we may correct our 
internal records. Thank you.
 
[email protected]

Reply via email to