PDA

View Full Version : RuLang Indicators


Dennis
01-12-2008, 04:17 PM
Chart pivot points in Rumus2 by pasting this RuLang code in the new indicator window:

P = (REF(H,-1)+REF(L,-1)+REF(C,-1))/3; /* - pivot point */
R1 = (2*P)-REF(L,-1); // - First resistance level
S1 = (2*P)-REF(H,-1); // - First support level
R2 = P + (R1-S1); // - Second resistance level
S2 = P - (R1-S1); // - Second support level
P; R1; S1; R2; S2; // - print out

samneric
11-20-2008, 04:43 PM
Hello all
attached RuLang code for (Relative Vigor Index) RVI

The idea behind the Relative Vigor Index (RVI) is basic — prices tend to close higher than they open in up markets and close lower than they open in down markets. The vigor, or energy, of the move is thus established by where the prices end up at the close.
Calculation of the RVI

To normalize the index to the daily trading range, divide the change of price by the maximum range of price for the day. Thus, the basic equation for the RVI is:

RVI = (Close-Open) / (High-Low)
Where:
OPEN — is the opening price;
HIGH — is the maximum price;
LOW — is the minimum price;
CLOSE — is the closing price.

How the RVI is created.

The index is smoothed by a 10-period SMA.

The signal line is a weighted moving average of the Relative Vigor Index values.

Crossovers between the RVI and signal lines identify changing market tides. Trading in the direction of a crossover means going with the flow of the market.

* When the fast RVI line crosses above the slow signal line (Red), it gives a buy signal. Consider going long, and place a protective stop below the latest minor low.
* When the fast RVI line crosses below the signal line (Red), it gives a sell signal. Consider going short, and place a protective stop above the latest minor high.

New to this RuLang lark.

I'd be interested in any comments

fm2034
11-22-2008, 12:28 PM
Hello,
The RVI is sImilar to MACD.
In which time frame we have to install it?
Thanks

samneric
11-22-2008, 07:19 PM
I'm trying day and hourly to start with.