PVSRA Indicators November 7, 2016
PVSRA Indicators November 7, 2016
PVSRA Indicators November 7, 2016
Table of Contents:
▪PVSRA Trade Levels
▪PVSRA Access Panel
▪PVSRA News Panel
▪PVSRA Dual Trends
▪PVSRA Candles Set
▪PVSRA Volumes Set
User Notes:
This indicator is coded to run on MT4 Build 600+. It shows Trade Levels lines and
labels for trade entries (EP), for the average of entries (AV), and for selected take
profit (TP) and stop loss (SL), and it displays Profit/Loss labels for open and closed
trades. Everything is based on MT4 orders executed. A Summary follows. Details
are further below.
Preview
-------------------------------------------------------------------------------------------
• All trade datum is automatically obtained from MT4 orders, no manual inputs
of price or quantity are provided except to display a trial TP and SL.
• Exacting line and label placements for all time frame charts is fully automated
using new MQL4 "Chart_Scale" tracking.
• Permits single side trading and hedging. Permits variable size entries. These
entries can be closed at different times and at different prices.
• Open and closed trades can be displayed on the same chart concurrently.
• Displays can be based on micro-lots, mini-lots, or full lots with a simple "1-2-3"
unit type input, making this applicable across the entire spectrum of forex
traders, and can be used to protect privacy of trade/account true size.
• The labels for EP Levels lines can be turned on/off for a cleaner chart when not
needed. When displayed, they include the number of units (of the units size
input selection) traded at each EP.
• EP/AV/TP/SL lines can individually be full lines, or just tabs for a cleaner chart.
• Price Dots at trade entries and exits improve visibility and can be re-sized.
• Connecting lines can be shown between EPs and the current bid/ask price of
open trades, and between the EPs and close prices of closed trades. These
lines are color coded to show if each specific trade is in profit or loss.
• PL Labels for open & closed trades show number of EPs, number of traded
units, average pips, total pips, PL total money and PL account pct.
• A "Lookback" minutes input allows quick selection of time to go back and pick
up closed trades to show.
• The "yyyy.mm.dd hh:mm" start and end inputs can precisely define a previous
time period of closed trades to show.
• When multiple trades are included in the time span they can be shown as a
single group with one PL label, or as separate trades with separate PL labels.
-------------------------------------------------------------------------------------------
Displaying EP Levels -
You can show EP Levels lines and labels. The lines span the chart to the current
candle, followed by the labels which include the EP number, price and size (quantity
of units of the lot type input). The size is highlighted with different colors for long
and short positions. If you show the labels for the EP Levels lines, the AV, TP and SL
lines will shift to the right to maintain good visibility. You can show the EP Levels
line as a full line, or as a short mini-line or "tab".
Due to the unit types selected, the three charts will display identical data, all
being based on "1" unit traded of the unit type selected. Anyone viewing all three
charts will see nothing that identifies the “1” unit type being traded as being based
on micro, mini or full lots. The only way a viewer of the chart can know the unit type
of the units shown is for the user to select to display PL Money Total in the PL Labels
for open and closed trades. Without this information, a viewer cannot know if units
are lots with $10 pips, or mini-lots with $1.00 pips, or micro-lots with $0.10 pips
(MOL, depending on each forex pair).
- Traderathome, 11-07-2016
Acknowledgements:
qFish - For generously devoting his time and programming skills to overhaul the core
code of this indicator that handles the retrieval of MT4 orders for open and closed
trades, to expand the "lookback" feature that identifies the closed trades to display,
and to provide other indispensable features to this very sophisticated and complex
indicator.
traderathome - For initiating the Trade Levels indicator as an aid to presenting clear
trade charts for educational purposes, and for tailoring the upgrades to maintain an
easy to use, eye appealing product.
User Notes:
This indicator is coded to run on MT4 Build 600+. It provides improved charting
features and displays, which are listed below. It is imperative to "set up" this
indicator as described in the "Preface" immediately below. Complete this "set up"
before using this indicator! Also, be sure MT4 is set to not show OHLC prices. In
Tools/Options/Charts "Show OHLC" should be unchecked. The PVSRA template is
already set this way by default.
3. Natural Fibos -
Fibonacci numbers are applied to the internal range of the previous day, as well
as beyond, both above and below that range. The "yHI" and "yLO" lines are
displayed from the start of the previous day session. The other lines are displayed
for just the current day session. An option called "__Use_Tz_Filter" (default is
"false") diverts calculations to the time zone shift coding in this indicator to find the
correct start of the previous session following partial days and holidays, which is the
only time this option might be needed.
The Fibonacci levels are applied to the internal range are: yLO, 23.6, 38.2, 50.0,
61.8, 76.4 and yHI. The levels are applied above and below this range are: 23.6, 38.2,
50.0, 61.8, 76.4, 100.0, 161.8, 261.8, 423.6 and 638.2.
4. Pivots -
Separate controls exist for showing the main PVT, the SR pivot levels and the
MID pivot levels. Up to five levels instead of the customary three can be shown.
You can use the Day or Fibonacci pivots formula. The main pivot (PVT) can be
constructed using two lines. The bottom line can wider with a highlighting color and
the top line can be narrower with a different color (Example: 3 wide Yellow bottom
& 1 wide Gray top on a white chart).
You can display broker server pivots, or pivots based on a different time zone
(PivotsTz). New coding fully automates the complexities of PivotsTz, such as timing
the hour shift for DST twice yearly, depending on when your broker server does that.
Your choice to use PivotsTz requires only three simple inputs.......
A. Set "__Use_PivotsTz" to “true”. If "false", broker server pivots are displayed.
B. Set "____Use_Preferred_Offset" to “true” for pivots based on the Frankfurt
time zone. If set "false" the input for "____Alternative_GMT_Offset" will be used.
C. The "____Alternative_GMT_Offset" is your alternative choice of time zone
location relative to GMT in +/- hours (examples: for GMT use "0", for one time zone
east of GMT use "1", and for four time zones west of GMT use "-4").
When Pivots are displayed, "P" will show in the appropriate Clock label matching
the time zone the pivots are based on. For PivotsTz, when the next PivotsTz day
occurs during the broker server day, the PivotsTz lines will suddenly change.
PivotsTz will display either "^", "<", or ">" in the pivot labels. By default, PivotsTz
are set to the Frankfurt time zone and will display "^" in the labels. If you select a
PivotsTZ time zone less than the default "<" appears in the labels. If you select a
PivotsTZ time zone greater than the default ">" appears in the labels. Broker pivot
labels display nothing extra.
1. Condition #1 - the Day/Week range has not exceeded the average range.
* RDH/RWH line is the average range above the session Low.
* RDL/RWL line is the average range below the session high.
* The lines will move as new highs/lows are achieved during the session.
* Shows extent price can move before exceeding average range.
2. Condition #2 - the Day/Week range exceeds the average range.
* The range lines lock into place showing range breakout.
B. The purpose of the range lines is to provide a perspective on how far PA might
move during the trading day or week. This can be of some guidance in selecting
where to exit a trade. A swing trader might pay more attention to the RWH/RWL
lines, and hold a trade into oncoming days. However, a day trader looking for quick
profits and limited exposure to market price swings might pay more attention to the
RDH/RDL lines.
6. Day Separators -
You can apply day separators to your chart with this option. It lets you select
color and line styles. You can elect to show separators just for today and/or for any
number of previous days.
- Traderathome, 11-07-2016
Acknowledgements:
CaveMan - who generously devoted his time and programming skills to produce the
PivotsTz time zone shift coding, designed to handle any situation involving gaps
between trading days and/or partial trading days.
Kent - for his "pips4life" P4L clock code to import and use time zone information.
Suggested Colors: White Chart Black Chart
Panel Section-
Panel_Background_Color C'237,237,239' C'024,024,027'
Symbol_And_TF_Color Black C'208,208,208'
Spread_Color C'080,080,080' C'233,163,231'
Range_Color C'080,080,080' C'121,199,240'
Swaps_Color C'080,080,080' C'121,199,240'
Candle_Time_Color C'080,080,080' C'226,223,107'
Bid_UP_Color C'026,132,039' C'046,188,046'
Bid_DN_Color Crimson C'234,000,000'
Bid_Last_Digit_Normal C'140,140,140' C'100,100,100'
Bid_Last_Digit_Small C'040,040,040' C'160,160,160'
Logo C'046,055,169' C'095,103,211'
Levels Section-
Level_Whole_Color C'187,187,247' C'028,051,089'
Level_Half_Color C'152,220,164' C'000,070,000'
Level_Quarter_Color C'219,210,176' C'064,049,028'
Fibos Section-
H_Fibo_Color C'078,091,186' C'091,104,191'
M_Fibo_Color Black; C'113,111,125'
L_Fibo_Color C'200,079,079' C'208,078,070'
Pivots Section-
DPV1_Back_Color C'255,255,128' CLR_NONE
DPV2_Top_Color Black C'209,080,203'
R_Pivot_Color C'064,064,255' C'071,102,207'
S_Pivot_Color C'255,053,017' C'202,034,004'
MidPivot_Color SaddleBrown C'106,106,000'
Range Lines Section-
ASH_Color C'134,149,251' C'107,107,220'
ASL_Color C'241,126,120' C'214,072,065'
RDH_Color C'134,149,251' C'107,107,220'
RDL_Color C'241,126,120' C'214,072,065'
RWH_Color C'134,149,251' C'091,091,217'
RWL_Color C'241,126,120' C'208,060,055'
Separators Section-
Separators_Color BlueViolet C'083,084,085'
vLines Section-
vLines_Color Silver C'066,066,034'
vLabels_Color MidnightBlue C'128,128,064'
Clock Section-
Clock_MktClosed C'080,080,080' C'124,124,124'
Location_MktClosed C'080,080,080' C'124,124,124'
Clock_MktOpen C'133,084,035' C'200,142,079'
Location_MktOpen C'000,149,034' C'046,186,046'
-------------------------------------------------------------------------------------------------------------------
Indicator External Inputs
-------------------------------------------------------------------------------------------------------------------
extern bool Indicator_On = true;
extern string Preface____________ = "Find & enter Clock Proxy Server Tz Location.";
extern bool Clock_Normal_vs_Find_Server = true;
extern string Clock_Proxy_Server_Tz_Location = "Helsinki";
extern string Preface_____________ = " Read User Notes. Contact broker to confirm.";
User Notes:
This indicator is coded to run on MT4 Build 600+. It places a News Panel on the
chart displaying up to seven news releases. Details are provided below.
Of the three impact level events (High, Medium, Low), you have the option to
show all three by selecting "3", or just the High and Medium by selecting "2", or just
the High by selecting "1". Previous/Forecast data is not displayed. Remember, prices
can go either way regardless what specific content is released. Releases do not cause
prices to move, the MMs do! They use the "news" as triggers. The MMs frequently
already have planned what they are going to do and how they are going to do it. So
"news" timing is more important then content. The MMs will move price how it
gives them profits, and that will not necessarily be in the manner that the "news"
content would logically dictate.
- Traderathome, 11-07-2016
ACKNOWLEDGEMENTS:
derkwehler and other contributors - for the core code of the FFCal indicator,
FFCal_v20 dated 07/07/2009, Copyright @ 2006 derkwehler, email:
[email protected]
deVries - for his excellent donated work that significantly altered and streamlined
the file handling coding to establish compatibility with the new release of MT4 Build
600+, (Jobs for deVries www.mql5.com/en/job/new?prefered=deVries)
qFish - for his generously given time and help during the effort to improve this
indicator.
atstrader - For the option controlling for what pair/pairs(s) news is shown, and for
providing new file access coding in 2015.
traderathome - for the modification of the original work to show more and
prioritized headlines.
User Notes:
This indicator is coded to run on MT4 Build 600+. It displays a solid Trend and a
Line Trend. The various options for each Trend are described below.
Line Trend - This Trend uses Close prices. The period, type, style and width can be
changed to suit using the inputs provided.
Configuration Label -
A Label located at the bottom center of the chart shows the configuration of the
Trend(s) being displayed (TF,period,type). You can center the label with the
"Label_Shift" input.
- Traderathome, 11-07-2016
Suggested Colors White Chart Black Chart Remarks
Solid Display-
Trend Body C'213,234,255' C'029,031,071' Histo H/L
Trend Edges C'204,230,255' C'032,034,077' MA H/L
Center Area C'242,252,255' C'015,015,015' MA Line
Center Line C'022,113,222' C'083,106,200' MA Line
Line Trend-
Trend Line Black C'226,223,107' MA Line
Label Display-
Panel C'230,240,255' C'034,036,083' Shade of Blue
text C'021,048,138' C'200,200,200' Shade of Blue/Gray
-------------------------------------------------------------------------------------------------------------------
Indicator External Inputs
-------------------------------------------------------------------------------------------------------------------
extern string Part_1 = "Main Settings:";
extern bool Indicator_On = true;
extern bool Show_Solid_Trend = true;
extern bool Show_Line_Trend = true;
extern int Display_Max_TF = 43200;
extern string TF_Choices = "1-5-15-30-60-240-1440-10080-43200";
User Notes:
This indicator is coded to run on MT4 Build 600+. It draws PVA (Price-Volume
Analysis) bars and candlesticks, as well as standard bars and candlesticks. In the PVA
mode an alert option signals when a "Climax" situation exists. Specific details follow.
Situation "Climax"..... When volume >= 200% of the average volume of the 10
previous chart TFs or where the product of candle spread x candle volume is >= the
highest for the 10 previous chart time Tfs. Default Colors: Bull bars are green and
bear bars are red.
Situation "Volume Rising Above Average"..... When volume >= 150% of the average
volume of the 10 previous chart Tfs. Default Colors: Bull bars are blue and bear are
blue-violet.
Acknowledgements:
qFish - For his generosity with time and coding skills, bringing this indicator into the
MT4 Build 600+ world with automatically adjusting bar widths with chart scale
changes.
BetterVolume.mq4 - for "climax" candle code definition (BetterVolume_v1.4).
Suggested Colors White Chart Black Chart
Wicks C'006,000,079' C'128,137,153'
Bull STD Candle C'159,160,162' C'159,159,177'
Bear STD Candle C'106,106,117' C'106,106,117'
Bull Rising C'096,096,238' C'017,136,255'
Bear Rising C'187,050,233' C'184,051,255'
Bull Climax C'000,166,100' C'031,192,071'
Bear Climax C'214,012,083' C'214,012,027'
Note: Suggested colors coincide with those of the PVSRA Volumes Set indicator.
-------------------------------------------------------------------------------------------------------------------
Indicator External Inputs
-------------------------------------------------------------------------------------------------------------------
extern string Part_1 = "Main Settings:";
extern bool Indicator_On = true;
extern bool PVA_vs_All_STD = true;
User Notes:
This indicator is coded to run on MT4 Builds 600+. It draws a PVA (Price-Volume
Analysis) volumes histogram in the first chart subwindow. An alert option signals
when a "Climax" situation exists. Specific details follow.
PVA volume is used together with a PVA price display for easy recognition of
those TFs when special price and volume situations occur. The special situations, or
requirements for the the colors used are as follows.
Situation "Climax"..... When volume >= 200% of the average volume of the 10
previous chart TFs or where the product of candle spread x candle volume is >= the
highest for the 10 previous chart time Tfs. Default Colors: Bull bars are green and
bear bars are red.
Situation "Volume Rising Above Average"..... When volume >= 150% of the average
volume of the 10 previous chart Tfs. Default Colors: Bull bars are blue and bear are
blue-violet.
Acknowledgements:
BetterVolume.mq4 - for "climax" candle code definition (BetterVolume_v1.4).
Suggested Colors White Chart Black Chart
Non-PVA Display-
Std Thin C'119,146,179' C'102,099,163'
Std Wide C'208,218,230' C'102,099,163'
PVA Display-
Std Thin C'119,146,179' C'102,099,163'
Std Wide C'208,218,230' C'102,099,163'
Bull Rising C'096,096,238' C'017,136,255'
Bear Rising C'187,050,233' C'184,051,255'
Bull Climax C'000,166,100' C'031,192,071'
Bear Climax C'214,012,083' C'214,012,027'
Note: Suggested colors coincide with those of the PVSRA Candles Set indicator.
-------------------------------------------------------------------------------------------------------------------
Indicator External Inputs
-------------------------------------------------------------------------------------------------------------------
extern string Part_1 = "Main Settings:";
extern bool Indicator_On = true;
extern bool PVA_vs_All_STD = true;