[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

VFORCE Function



PureBytes Links

Trading Reference Links

List,

The function below was posted in December as part of the "Raptor" system. 
I've had no luck contacting the author about this so I'm putting the 
question to the list. Maybe someone has looked into this and can help.

Is there is any way for the variable DM to take on any other value than 
0? Is a part of the system code missing? Any insight is appreciated.

***********************  VFORCE  ***************************************
Vars: TSum(0), Trend(0), DM(0), CM(0);

TSum = High + Low + Close;
IF TSum > TSum[1] Then
	Trend = 1
Else
	Trend = -1;
IF Trend = Trend[1] Then
	CM = CM + Range
Else
	CM = Range + Range[1];
IF CM <> 0 Then
	VForce = Volume * AbsValue(2 * (DM/CM) -1) * Trend * 100;
************************************************************************