would anybody modifiy Price-Volume Rank?

#1
would anybody modifiy Price-Volume Rank? For EOD it is giving good prediction before price breakup. But i`m missing buy/sell signal visually.

_SECTION_BEGIN("Price");
//------------------------------------------------------------------------------
//
// Formula Name: Price-Volume Rank
// Buy/Sell at 5/10-day crossovers. Buy when fast line
// crosses below 2.5. Sell when fast line crosses above 2.5. Use turn-around
// points cautiously. Remember that a climbing PVR line indicates a weakening
// market. Make another indicator using a double-smoothing to use a less
// volatile graph. Thanks to Donald Dalley for the description
//
//------------------------------------------------------------------------------

/* Price-Volume Rank Indicator
Use a 1 if price and volume are up
Use a 2 if price is up and volume is down
Use a 3 if price and volume are down
Use a 4 if price is down and volume is up

Plot a 5-day and a 10-day MA of these values.
Buy/Sell at 5/10-day crossovers.
Buy when fast line crosses below 2.5.
Sell when fast line crosses above 2.5.

Use turn-around points cautiously.
Remember that a climbing PVR line indicates a
weakening market.
Make another indicator using a double-smoothing
to use a less volatile graph.
*/

P1 = Ref( Close, -1 );
V1 = Ref( Volume, -1);

PVR = IIf( Close > P1 AND Volume > V1, 1,
IIf( Close > P1 AND Volume <= V1, 2,
IIf( Close <= P1 AND Volume <= V1, 3, 4 )));

Graph0 = MA( PVR, 5 );
Graph1 = MA( PVR, 10 ) ;

_SECTION_END();
 

asnavale

Well-Known Member
#2
would anybody modifiy Price-Volume Rank? For EOD it is giving good prediction before price breakup. But i`m missing buy/sell signal visually.


Hi Piash,

You have to define the Buy and Sell conditions in the AFL and plot the corresponding indicator shapes on the chart. Then only you can visualise the signals on the charts.

-Anant
 
#3
would anybody modifiy Price-Volume Rank? For EOD it is giving good prediction before price breakup. But i`m missing buy/sell signal visually.


Hi Piash,

You have to define the Buy and Sell conditions in the AFL and plot the corresponding indicator shapes on the chart. Then only you can visualise the signals on the charts.

-Anant
Dear Anant, I just can use afl. Dont have even courage of trying. Thanx for response.
 
#4
Piash,

AFL is simple. You should start with some simple AFLs.

Here is the code for you.

_SECTION_BEGIN("Price");
//------------------------------------------------------------------------------
//
// Formula Name: Price-Volume Rank
// Buy/Sell at 5/10-day crossovers. Buy when fast line
// crosses below 2.5. Sell when fast line crosses above 2.5. Use turn-around
// points cautiously. Remember that a climbing PVR line indicates a weakening
// market. Make another indicator using a double-smoothing to use a less
// volatile graph. Thanks to Donald Dalley for the description
//
//------------------------------------------------------------------------------

/* Price-Volume Rank Indicator
Use a 1 if price and volume are up
Use a 2 if price is up and volume is down
Use a 3 if price and volume are down
Use a 4 if price is down and volume is up

Plot a 5-day and a 10-day MA of these values.
Buy/Sell at 5/10-day crossovers.
Buy when fast line crosses below 2.5.
Sell when fast line crosses above 2.5.

Use turn-around points cautiously.
Remember that a climbing PVR line indicates a
weakening market.
Make another indicator using a double-smoothing
to use a less volatile graph.
*/

P1 = Ref( Close, -1 );
V1 = Ref( Volume, -1);

PVR = IIf( Close > P1 AND Volume > V1, 1,
IIf( Close > P1 AND Volume <= V1, 2,
IIf( Close <= P1 AND Volume <= V1, 3, 4 )));

PVR_MA1 = MA( PVR, 5 );
PVR_MA2 = MA( PVR, 10 );

Graph0 = PVR_MA1;
Graph1 = PVR_MA2;

Buy = Cross(2.5, PVR_MA1);
Sell = Cross(PVR_MA1, 2.5);
_SECTION_END();

thank you
nagarjuna
 

Similar threads