Home
    Product
    Support
    Purchase
    Company

Advanced trading software: technical analysis and neural networks

Empowering wise traders

Support Center
Publications
Tradecision FAQs
Improvian Consulting
Contact Support Team
Knowledgebase
Collection of Indicators
Custom Indicators
Custom Studies
TASC Traders' Tips
Active Trader Strategies
Golden Trading Rules
Traderís Quiz

Traders' Tips from TASC Magazine
An Anchored VWAP Channel For Congested Markets

In his article ďAn Anchored VWAP Channel For congested MarketsĒ, Andrew Coles has demonstrated how one can identify price reversals using an indicator that combines channel and envelope methodologies.

Using Tradecisionís Indicator Builder, one needs to create four indicators: PDB_Daily_Top indicator, PDB_Daily_Bottom indicator, PDB_Intraday_Top indicator and PDB_Intraday_Bottom indicator:

PDB_Daily_Top indicator:

{user defined input}
input
start_month:"startng month", 1, 1, 12;
start_day:"starting day of month", 1, 1, 31;
start_year:"starting year", 2000, 1980, 2100;
upper_perc:"percentage-upper", 1, 1, 50;
end_input

var
start:=start_day = DayOfMonth() and start_month = 
Month() and start_year = Year();
denom:=0;
pv:=0;
M:=0;
end_var

{mid price}
pv:=MedianPrice() * v;

{Midas calculation}
denom:=iff(cum(V) - NthValueWhen(1, start, 
Cum(V)) = 0, 1, Cum(V) - NthValueWhen(1, start, 
Cum(V)));

{Adding percent displacement bands}
M:=iff(BarsSince(start)>0, (Cum(pv) - 
NthValueWhen(1, start, Cum(pv))) / denom, 
MedianPrice());

return M * (1 + (upper_perc/100));
PDB_Daily_Bottom:
{user defined input}
input
start_month:"startng month", 1, 1, 12;
start_day:"starting day of month", 1, 1, 31;
start_year:"starting year", 2000, 1980, 2100;
lower_perc:"percentage-lower", 1, 1, 50;
end_input

var
start:=start_day = DayOfMonth() and start_month = 
Month() and start_year = Year();
denom:=0;
pv:=0;
M:=0;
end_var

{mid price}
pv:=MedianPrice() * v;

{Midas calculation}
denom:=iff(cum(V) - NthValueWhen(1, start, 
Cum(V)) = 0, 1, Cum(V) - NthValueWhen(1, start, 
Cum(V)));

{Adding percent displacement bands}
M:=iff(BarsSince(start)>0, (Cum(pv) - 
NthValueWhen(1, start, Cum(pv))) / 
denom, MedianPrice());

return M * (1 - (lower_perc/100));
PDB_Intraday_Top:
{user defined input}
input
start_month:"startng month", 1, 1, 12;
start_day:"starting day of month", 1, 1, 31;
start_year:"starting year", 2000, 1980, 2100;
start_hour:"hour", 1, 1, 24;
start_min:"minute", 0, 0,60;
upper_perc:"percentage-upper", 0.001, 0.001, 2;
end_input

var
start:=start_day = DayOfMonth() and start_month = 
Month() and start_year = Year() and start_hour = 
Hour() and start_min = Minute();
denom:=0;
pv:=0;
M:=0;
end_var

{mid price}
pv:=MedianPrice() * v;

{Midas calculation}
denom:=iff(cum(V) - NthValueWhen(1, start, 
Cum(V)) = 0, 1, Cum(V) - NthValueWhen(1, 
start, Cum(V)));

{Adding percent displacement bands}
M:=iff(BarsSince(start)>0, (Cum(pv) - 
NthValueWhen(1, start, Cum(pv))) / 
denom, MedianPrice());

return M * (1 - (upper_perc/100));
PDB_Intraday_Bottom:
{user defined input}
input
start_month:"startng month", 1, 1, 12;
start_day:"starting day of month", 1, 1, 31;
start_year:"starting year", 2000, 1980, 2100;
start_hour:"hour", 1, 1, 24;
start_min:"minute", 0, 0,60;
lower_perc:"percentage-lower", 0.001, 0.001, 4;
end_input

var
start:=start_day = DayOfMonth() and start_month = 
Month() and start_year = Year() and start_hour = 
Hour() and start_min = Minute();
denom:=0;
pv:=0;
M:=0;
end_var

{mid price}
pv:=MedianPrice() * v;

{Midas calculation}
denom:=iff(cum(V) - NthValueWhen(1, start, 
Cum(V)) = 0, 1, Cum(V) - NthValueWhen(1, 
start, Cum(V)));

{Adding percent displacement bands}
M:=iff(BarsSince(start)>0, (Cum(pv) - 
NthValueWhen(1, start, Cum(pv))) / 
denom, MedianPrice());

return M * (1 - (lower_perc/100));



Download to import into Tradecision.

How to use this indicator in Tradecision:
  1. Click Download.
  2. Save this indicator in a safe location on your hard drive.
  3. Open Tradecision and in the Tools menu click Indicator Builder.
  4. In the Indicator Builder dialog, click Import, locate the saved file and then click OK.
The indicator will be added to the Custom Indicators list.
 
An Anchored VWAP Channel For Congested Markets
Tradecision Reviews
Video Tours
Ask a question

Site Map   |   Terms of Use   |   Privacy Policy   |   Risk Warning
Forex, equities or futures trading involves substantial risk of loss and is not suitable for all investors.
Copyright © 2001-2017 Alyuda Research, LLC.  All rights reserved