User Manual - Volume by Price Indicator - Environment Variables

User Manual - Volume by Price Indicator - Environment Variables

17 May 2019, 18:48
Brian Collard
0
24


version 3.89, first published 2019.02.13, updated 2019.05.14

                        

  Contents


1. Introduction


2. Parameters

2.1 Data functions

2.2 Draw functions
2.2.1 Graphical

2.2.2 Analytical
2.3 Evaluation functions

2.4 Label style and position

2.5 Notification


3. Control keys

3.1 Display

3.2 Pairing


4. Calculation

4.1 Formula

4.2 Output


5. Examples

5.1 Color schemes

5.2 Drag and Drop Profiles

5.3 Pairing Profiles

5.4 5 Days of Market Profiles

5.5 Market Profile Variable TPO Period

5.6 Market Profile Block-Based, Color Gradient TPO Distinction

5.7 Market Profile and Volume Profile Combined

5.8 Volume Points of Control

5.9 Cryptocurrency Volume Profiles

5.10 Distribution and Draw Direction

5.11 Preparing Custom Data

5.11.1 Spreadsheet

5.11.2 MQL code

5.12 Import Data

5.13 Synthetic Data

5.14 Aggregated Data Series

5.15 Error handling and Troubleshooting


6. Frequently Asked Questions

6.1 Features

6.2 Installing and Testing

6.3 Strategies and Trading


7. Credits


8. Downloads

8.1 Products

8.2 Presets and templates                       


4. Calculation

4.1   Formula


4.1.1  Volume Profile


Summarily there are three calculation steps to create a Volume by Price study Volume Profile. Based on -the user-specified- total price range, total time range and price zone size (price range per bar):


1. Divide the total price range by the amount of price zones in the total price range.


2. Sum the amount of volume per price zone.


3. Divide the total volume per price zone into positive and negative volume. Negative volume for a price zone being the sum of volume for down bars in that zone and positive volume being the sum of volume for up bars in that price zone.


"Volume by Price" VBP formula is also known as "Volume at Price", VAP, "Volume on Price", VOP, "Volume per Price", VPP, "Price by Volume", PBV, "Price at Volume", PAV, "Price on Volume", POV and "Price per Volume", PPV.


4.1.2  Market Profile


Using Market Profile study (Time Price Opportunity, TPO) there are summarily three calculation steps to create a profile. Based on -the user-specified- total price range, total time range, price zone size (price range per bar) and TPO period identifiers (e.g., letters, blocks):


1. Divide the total time range by the amount of tpo period identifiers.


2. Index tpo identifiers and periods by position.


3. For each tpo period append the tpo identifier to price zones touched.


4.2   Output

Output values are available as environment variables for use in the profile label (Parameter ' Label Text ', 2.4 Label), export as global variable (parameter ' Environment Variable ' option ' Global ', 2.1 Data) and drawings (parameter ' Draw Environment Variable Set ', 2.2 Draw) .


 NameNotes
Usage
PROFILE
Label
VOLUME_TOTAL global variable double max
Label, Global Variable
VOLUME_POSITIVEglobal variable double maxLabel, Global Variable
VOLUME_NEGATIVEglobal variable double maxLabel, Global Variable
PRICE_ZONE price zone sizeLabel, Global Variable
PRICE_START
Label
PRICE_END
Label
TIME_START
Label
TIME_END
Label
VP_POC_MEDIAN
Label, Global Variable, Draw
VP_POC_START
Label, Global Variable, Draw
VP_POC_END
Label, Global Variable, Draw
VP_VAH_START
Label, Global Variable, Draw
VP_VAH_END
Label, Global Variable, Draw
MP_TPO_TOTAL
Label, Global Variable
MP_TPO_TIMEglobal variable double maxGlobal Variable
MP_TPO_TIME_NSHORT notation shortLabel
MP_TPO_TIME_NLONG notation longLabel
MP_POC_MEDIAN
Label, Global Variable, Draw
MP_POC_START
Label, Global Variable, Draw
MP_POC_END
Label, Global Variable, Draw
MP_VAH_START
Label, Global Variable, Draw
MP_VAH_END     

Label, Global Variable, Draw
MP_IB_START Label, Global Variable, Draw
MP_IB_END Label, Global Variable, Draw
ADR_RANGE
 Label, Global Variable
ADR_SIZE
 Label, Global Variable
ADR_START
 Label, Global Variable, Draw
ADR_END
 Label, Global Variable, Draw


Label Text Default

Volume by Price: (%VOLUME_TOTAL%) %TIME_START%-%TIME_END% %PRICE_START%-%PRICE_END%

Label Text Preset Volume Profile

%PROFILE% (%VOLUME_TOTAL%) (%PRICE_ZONE%) %TIME_START%-%TIME_END% %PRICE_START%-%PRICE_END% POC=%VP_POC_MEDIAN% VAH=%VP_VAH_START%-%VP_VAH_END%

Label Text Preset Market Profile

%PROFILE% (%MP_TPO_TOTAL%) (%MP_TPO_TIME_NSHORT%) %TIME_START%-%TIME_END% %PRICE_START%-%PRICE_END% POC=%MP_POC_MEDIAN% VAH=%MP_VAH_START%-%MP_VAH_END% IB=%MP_IB_START%-%MP_IB_END%

Draw Set Default

ADR_END:Average Daily Range (%ADR_RANGE%) (%ADR_SIZE%) End, ADR_START:Average Daily Range Start

Draw Preset Volume Profile

VP_POC_MEDIAN:Point of Control,VP_VAH_START:Value Area High Start,VP_VAH_END:Value Area High End,ADR_START:Average Daily Range Start,ADR_END:Average Daily Range End

Draw Preset Market Profile

MP_IB_START:Initial Balance Start,MP_IB_END:Initial Balance End,MP_POC_MEDIAN:Point of Control,MP_VAH_START:Value Area High Start,MP_VAH_END:Value Area High End,ADR_START:Average Daily Range Start,ADR_END:Average Daily Range End


Draw and Label Market Profile Presets

Market Profile and Average Daily Range Environment Variables


Back To Index




Share it with friends: