Is it possible to have a the value of an indicator based on a specific symbol?
For example, I want to set up a different MA for each symbol in a watch list
and have that information saved permanently.
Thanks
|
Recently started using SF5 and trying to find the code for the
Finite Volume Indicator (FVE) as it originally appeared in the
April 2003 issue of S & C. The article was "Detecting Breakouts" .
Tried coding it myself without much luck.
The Amibroker code is as follows:
The period should be a user input
Period = 22;
// users of v4.25 or higher can use Param to adjust period in real time
//Period = Param("FVE period", 22, 10, 80, 1 );
MF = C - (H+L)/2 + Avg - Ref( Avg, -1 );
Vc = IIf( MF > 0.003 * C, V,
IIf( MF < -0.003 * C, -V, 0 ) );
FVE = Sum( Vc, Period )/MA( V, Period )/Period * 100;
Plot( FVE, "FVE", colorRed );
Plot( 0, "", colorBlack, styleNoLabel );
GraphXSpace = 3;
Buy = Cross( FVE, -5 ) AND
LinRegSlope( FVE, 35 ) > 0 AND
LinRegSlope( Close, 35 ) < 0;
Sell = LinRegSlope( FVE, 25 ) < 0 OR Ref( Buy, -50 );
_SECTION_END();
Any help would be appreciated
|