HI All,
i am currently using HPI signal along with my other signals,
the formula i am using is as below:
this is currently ploting line graph. is it possible to change it to bar graph.(eg :like oscillator afl)
please help me to get it done
Thanks & Regards,
Ben
i am currently using HPI signal along with my other signals,
the formula i am using is as below:
Code:
_SECTION_BEGIN("HPI");
function HPI( MultFactor, PercentMove )
{
M = ( H + L ) /2;
My = Ref( M, -1 );
I = abs( OpenInt - Ref( OpenInt, -1 ) );
G = Max( OpenInt, Ref( OpenInt, -1 ) );
K = PercentMove * Volume * ( M - My ) * ( 1 + sign( M - My ) * 2 * I / G );
//return AMA2( K, MultFactor / 100000, ( 1 - MultFactor ) / 100000 );
return AMA( K, 1/MultFactor )/100000;
}
OI = C;
Plot( HPI( 20, 100 ), _DEFAULT_NAME(), ParamColor("Color", ColorCycle ) );
_SECTION_END();
please help me to get it done
Thanks & Regards,
Ben