# afl for ROC with little change

#### XRAY27

##### Well-Known Member
Dear members,

In normal roc formula .......i want to hide the periods and just want to have value of Roc

#### extremist

##### Well-Known Member
_SECTION_BEGIN("ROC");
P = ParamField( "Price field" );
periods = Param("Periods", 15, 1, 200, 1 );
Plot( ROC( P, periods), "ROC : ", ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();

#### Happy_Singh

##### Happy
Dear members,

In normal roc formula .......i want to hide the periods and just want to have value of Roc
Code:
``````_SECTION_BEGIN("ROC");
P = ParamField( "Price field" );
periods = Param("Periods", 15, 1, 200, 1 );
Plot( ROC( P, periods), "No Period. Just the Value of ROC is :   ", ParamColor( "Color", colorCycle ), ParamStyle("Style")  );
_SECTION_END();``````

#### KelvinHand

##### Well-Known Member
Code:
``````_SECTION_BEGIN("ROC");
P = ParamField( "Price field" );
periods = Param("Periods", 15, 1, 200, 1 );
Plot( ROC( P, periods), "No Period. Just the Value of ROC is :   ", ParamColor( "Color", colorCycle ), ParamStyle("Style")  );
_SECTION_END();``````

Code:
``````_SECTION_BEGIN("ROC");
P = ParamField( "Price field" );
Length = Param("Length", 15, 1, 200, 1 );
Plot( ROC( P, Length), "No Period. Just the Value of ROC is :   ", ParamColor( "Color", colorCycle ), ParamStyle("Style")  );
_SECTION_END();``````

#### XRAY27

##### Well-Known Member
Code:
``````_SECTION_BEGIN("ROC");
P = ParamField( "Price field" );
Length = Param("Length", 15, 1, 200, 1 );
Plot( ROC( P, Length), "No Period. Just the Value of ROC is :   ", ParamColor( "Color", colorCycle ), ParamStyle("Style")  );
_SECTION_END();``````
Thanks happysingh and kelvinhand