Description
Screener that finds the larger market movements using relative volume and price.
Tips
Set the parameters while set-up your timeframe that you want to use.
The default ones are:
It is useful for scalping large volume – price movements
Comments
my first shared code – so happy to hear improvements and meet-up
//------------------------------------------------------------------------------------------
// Prorealtime Screener: "Price Volume Ratio"
//-----------------------------------------------------------------------------------------
// Author: Ioannis Kyriakos
//
//------------------------------------------------------------------------------------------
// Description:
// returns the ticks with the highest price and volume movements
// with custom imported parameters
//
//------------------------------------------------------------------------------------------
// Parameters:
//
// @LookBackVolume:
// number of bars to look back for volume
// @LookBackPrice:
// number of bars to look back for price
// @DifPrice:
// the minimum percent of price movement to look for
// i.e. 5 is 5%, returns the ticks with price movement more than 5% or less than 5%
// than the average
// @DifVolume:
// the minimum volume ratio to look for
// .e. 5, returns the ticks with current volume ratio movement more than 5 times
// versus the average one
//-----------------------------------------------------------------------------------------
// Set screener's parameters---------------------------------------------------------------
LookBackVolume = 80
LookBackPrice = 10
DifPrice = 5
DifVolume = 5
// Average price and volume
AvgPrice = Average[LookBackPrice](close)
AvgVolume = Average[LookBackVolume](volume)
// Conditions for price and volume
Upside = (close > AvgPrice * (100 + DifPrice) / 100)
Downsize = (close < AvgPrice * (100 - DifPrice) / 100)
PriceCondition = (Upside OR Downsize)
VolumeCondition = (volume > AvgVolume * DifVolume)
// Screener Output -------------------------------------------------------------------------
PriceDif = abs(100 * (1 - (close / AvgPrice)))
// Screener --------------------------------------------------------------------------------
SCREENER[PriceCondition and VolumeCondition](PriceDif as "Price %")