VWAP Aspect Slope Indicator request
Forums › ProRealTime English forum › ProBuilder support › VWAP Aspect Slope Indicator request
- This topic has 21 replies, 2 voices, and was last updated 3 months ago by Bogren.
-
-
11/30/2017 at 12:10 PM #5441809/09/2024 at 6:19 PM #23742409/10/2024 at 7:58 AM #237432
As per the description of the shared code: “distance relative to VWAP, expressed in standard deviations”, so it is the Z-score of VWAP, other indicator made upon this: Z-Score Distance From VWAP
09/10/2024 at 10:02 AM #237445Okey,
The original aspect slope have even a slope measure buildt in this description at there homepage.
“Measure and monitor the slope of intraday VWAP to gauge the intensity of price moves in either direction.
Aspect is first and foremost a confirmation tool, which we’ve incorporated into our approach to help assess the quality of potential setups (and likelihood of continuation) as they develop.”Adjustable lookback period for slope calculation
Multiple different display styles
Sensitivity presets for different market types
Customizable sensitivity input for full user control
DevWidth and Position (Z-Score) modes on TOS and TV
Is this something that is possible to make without the original code?
09/10/2024 at 1:50 PM #237464This is more or less what you can do with the code shared in this post: https://www.prorealcode.com/topic/vwap-aspect-slope-indicator-request/#post-54277
change the “p” settings for “Adjustable lookback period for slope calculation”
modify the “Slopelength” and “coefficient” settings (in the code) for “Customizable sensitivity input for full user control”
coefficient appropriate settings:
Small_Cap:
coefficient = 5;
ETF_or_Index:
coefficient = 3;
Futures:
coefficient = 2;09/10/2024 at 1:52 PM #237465I managed to code something else, but without nice colors and levels displayed though, here it is:
12345678910111213141516171819202122232425262728293031323334353637// VWAP Slope Aspect Indicator// Description: Measures and monitors the slope of intraday VWAP to gauge the intensity of price moves// Input parametersLOOKBACKPERIOD = 20 // Lookback period for slope calculationDISPLAYSTYLE = 1 // Display Style (1: Line, 2: Histogram, 3: Dots)SENSITIVITYPRESET = 2 // Sensitivity Preset (1: Low, 2: Medium, 3: High)CUSTOMSENSITIVITY = 10 // Custom Sensitivity (1-100)MODE = 1 // Mode (1: DevWidth, 2: Position/Z-Score)// Calculate VWAPd=max(1,intradaybarindex)vwap = SUMMATION[d](volume*typicalprice)/SUMMATION[d](volume)// Calculate slope of VWAPslope = LinearRegressionSlope[LOOKBACKPERIOD](vwap)// Set sensitivity based on preset or custom inputIF SENSITIVITYPRESET = 1 THENsensitivity = 5ELSIF SENSITIVITYPRESET = 2 THENsensitivity = 10ELSIF SENSITIVITYPRESET = 3 THENsensitivity = 20ELSEsensitivity = CUSTOMSENSITIVITYENDIF// Calculate Aspect based on modeIF MODE = 1 THEN // DevWidth modeaspect = slope * sensitivityELSE // Position/Z-Score modeaspect = (slope - AVERAGE[LOOKBACKPERIOD](slope)) / STD[LOOKBACKPERIOD](slope) * sensitivityENDIFreturn aspect style(histogram)09/12/2024 at 1:56 PM #237527 -
AuthorPosts
Find exclusive trading pro-tools on