TS/MC: VWAP with standard deviation indicator. - TradeStation | futures io social day trading
futures io futures trading


TS/MC: VWAP with standard deviation indicator.
Updated: Views / Replies:8,470 / 9
Created: by marcovth Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

TS/MC: VWAP with standard deviation indicator.

  #1 (permalink)
Elite Member
Canada
 
Futures Experience: Advanced
Platform: Sierra Chart
Favorite Futures: ES,6E
 
marcovth's Avatar
 
Posts: 25 since Jun 2010
Thanks: 1 given, 27 received

TS/MC: VWAP with standard deviation indicator.

Hello ...

I am looking for a TS/MultiCharts VWAP indicator with standard deviation bands as shown in this MarketDelta video.
Created by Camtasia Studio 6

Thanks in advance incase you can find/code that for me.

- Marco.

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Just starting out...
East Windsor, NJ
 
Futures Experience: Intermediate
Platform: Ninjatrader
Favorite Futures: CL
 
Posts: 5 since Jul 2010
Thanks: 1 given, 0 received


Not sure about TS/MC, but can you code a little. I know there's a nice VWAP indicator on the NT support forum, which you might be able to glean code from?

Reply With Quote
 
  #4 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,356 given, 83,237 received

Here is EasyLanguage VWAP Hourly with standard deviation:

 
Code
                            


{***********************************************************************************************

Coded by dbntina/boxmeister 8/2/2007

Used the VWAP_H code provided by Tradestation on 02
/07/2003 Topic ID 6735 Thanks Guys!

Added the computation for variance and the Standard Deviation to combine into one indicator
plot 
and this indicator plots the VWAPSD1 bands and SD2 bands

***********************************************************************************************}



    [
LegacyColorValue true];
    
inputs:
    
iStartTime (0800),
    
ResetMinutes (60);


    
    
    
    


    
vars:
        
PriceW(0),
        
ShareW(0),
        
Count(0),
        
VolWAPValue(0),
        
VolWAPVariance(0),
        
VolWAPSD(0);
        

    if 
mod( (TimeToMinutes(time)-TimeToMinutes(iStartTime) ), TimeToMinutes(ResetMinutes) ) = 0 then 
    begin
        PriceW 
0;
        
ShareW 0;
        
Count = -1;
        
Value1 0;
        
Value2 0;
        
VolWAPValue 0;
    
end;

    
PriceW PriceW + (AvgPrice * (UpTicks+DownTicks));
    
ShareW ShareW + (UpTicks+DownTicks);
    
Count Count 1;
    
Value3 0;

    if 
ShareW 0 then VolWAPValue PriceW ShareW;

    {
Calculate the individual variance terms for each intraday bar starting with the current
    bar 
and looping back through each bar to the start bar.  The terms are each normalized
    according to the Variance formula 
for each level of volume at each price bar            }

     For 
Value1 0 To Count Begin
        Value2 
= ((UpTicks[Value1]+DownTicks[Value1])/ShareW) * (Square(AvgPrice[Value1]-VolWAPValue));
        
Value3 Value3 Value2;
    
End;

    
VolWAPVariance Value3;
    
VolWAPSD SquareRoot(VolWAPVariance);


    
Plot1(VolWAPValue"VWAP");
    
Plot2(VolWAPValue VolWAPSD"VWAP1SDUp");
    
Plot3(VolWAPValue VolWAPSD"VWAP1SDDown");
    
Plot4(VolWAPValue + (2*VolWAPSD), "VWAP2SDUp");
    
Plot5(VolWAPValue - (2*VolWAPSD), "VWAP2SDDown"); 
Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following 4 users say Thank You to Big Mike for this post:
 
  #5 (permalink)
Elite Member
Alexandria+MN
 
Futures Experience: Master
Platform: NinjaTrader
Favorite Futures: Emini
 
Posts: 65 since Oct 2009
Thanks: 128 given, 110 received

hourly VWAP

Has anyone converted this to NT7?

Reply With Quote
 
  #6 (permalink)
Elite Member
Paris
 
Futures Experience: Beginner
Platform: MultiCharts, Visual Charts
Favorite Futures: Index Futures, Stocks
 
Posts: 14 since Apr 2011
Thanks: 18 given, 1 received

Hello everybody,

obviously some parts of the code where converted into smileys here :

if mod( (TimeToMinutes(time)-TimeToMinutes(iStartTime) , TimeToMinutes(ResetMinutes) = 0 then

could you tell me what is missing ?

Thank you very much in advance.

Reply With Quote
 
  #7 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,356 given, 83,237 received


pmat View Post
Hello everybody,

obviously some parts of the code where converted into smileys here :

if mod( (TimeToMinutes(time)-TimeToMinutes(iStartTime) , TimeToMinutes(ResetMinutes) = 0 then

could you tell me what is missing ?

Thank you very much in advance.

It isn't supposed to do that, sorry.


if mod( (TimeToMinutes(time)-TimeToMinutes(iStartTime) ), TimeToMinutes(ResetMinutes) ) = 0 then
begin
PriceW = 0;
ShareW = 0;
Count = -1;
Value1 = 0;
Value2 = 0;
VolWAPValue = 0;
end;


Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
The following user says Thank You to Big Mike for this post:
 
  #8 (permalink)
Elite Member
Paris
 
Futures Experience: Beginner
Platform: MultiCharts, Visual Charts
Favorite Futures: Index Futures, Stocks
 
Posts: 14 since Apr 2011
Thanks: 18 given, 1 received

thank you Big Mike, it's working.

Have a nice day.

Reply With Quote
 
  #9 (permalink)
Elite Member
Prag, Czech Republic
 
Futures Experience: Intermediate
Platform: Jforex, TradeStation
Broker/Data: TradeStation
Favorite Futures: Futures, Forex
 
Posts: 1 since Jun 2013
Thanks: 1 given, 0 received

VWAP SD indicator problems

Hi everybody,

I made some variant of this indicator. It calculate values from start of day and shows only VWAP standard deviation.
During developing I found some problems:
1) Indicator starts not only one time but more times. The less is timeframe the more will be starts
2) Indicator shows values from second day (from history) (itís OK) but not from 00:00 but later

I attach ELD files and a part of log for 30 minutes chart.

Can anybody help me? Thanks in advance.

*******************************************************************************************************************************
vars:
string OInfo( "" ),
bool ShowInfo( False ),
bool IsStart( True ),
BarPrice(0),
BarVolume(0),
BPBV(0),
SumBPPV(0),
SumBV(0),
Count(0),
VWAPrice(0),
Index(0),
SumVRNC(0),
VWAPSD(0);

ShowInfo = True;

If IsStart = True Then
Begin
IsStart = False;
If ShowInfo = True Then Print ( "IsStart!" );
End;

//if CurrentSession( 1 ) <> CurrentSession( 1 )[ 1 ] Then
if Date > Date[ 1 ] Then
Begin
SumBPPV = 0;
SumBV = 0;
Count = 0;
End;



// BarPrice = Close;

BarPrice = AvgPrice;
BarVolume = UpTicks + DownTicks;

BPBV = BarPrice * BarVolume;

SumBPPV = SumBPPV + BPBV;
SumBV = SumBV + BarVolume;
Count = Count + 1;

If SumBV > 0 Then
Begin
VWAPrice = SumBPPV / SumBV;
End;

SumVRNC = 0;

For Index = 0 To Count - 1
Begin
BarPrice = AvgPrice[ Index ];
BarVolume = UpTicks[ Index ] + DownTicks[ Index ];
SumVRNC = SumVRNC + ( BarVolume / SumBV ) * Square( BarPrice - VWAPrice );
End;

VWAPSD = Squareroot( SumVRNC );

Plot1( VWAPSD, "VWAPStDev_D" );

If ShowInfo = True Then
Begin
OInfo = "";
OInfo = OInfo + "DTm: " + AA_getSDateTime( Bardatetime[ 0 ].ELDateTimeEx ) + "; ";
OInfo = OInfo + "D: " + NumToStr( Date + 19000000, 0 ) + "; ";
OInfo = OInfo + "D1: " + NumToStr( Date[ 1 ] + 19000000, 0 ) + "; ";
OInfo = OInfo + "Count: " + NumToStr( Count, 0 ) + "; ";
// OInfo = OInfo + "BPrice: " + NumToStr( BarPrice, 3 ) + "; ";
OInfo = OInfo + "VWAPSD: " + NumToStr( VWAPSD, 3 ) + "; ";
OInfo = OInfo + "CSss: " + NumToStr( CurrentSession( 1 ), 0 ) + "; ";
Print( OInfo );
End;

*******************************************************************************************************************************

Inputs:
DateTime( NumericSimple );

Vars:
YearsN(0),
MonthsN(0),
DaysN(0),
HoursN(0),
MinutesN(0),
SecondsN(0),
string YearsS( "" ),
string MonthsS( "" ),
string DaysS( "" ),
string HoursS( "" ),
string MinutesS( "" ),
string SecondsS( "" );

YearsN = Yearfromdatetime( DateTime);
MonthsN = Monthfromdatetime( DateTime );
DaysN = Dayfromdatetime( DateTime );
HoursN = Hoursfromdatetime( DateTime );
MinutesN = Minutesfromdatetime( DateTime );
SecondsN = Secondsfromdatetime( DateTime );

YearsS = NumToStr( YearsN, 0 );
MonthsS = NumToStr( MonthsN, 0 );
DaysS = NumToStr( DaysN, 0 );
HoursS = NumToStr( HoursN, 0 );
MinutesS = NumToStr( MinutesN, 0 );
SecondsS = NumToStr( SecondsN, 0 );

If MonthsN <= 9 Then MonthsS = "0" + MonthsS;
If DaysN <= 9 Then DaysS = "0" + DaysS;
If HoursN <= 9 Then HoursS = "0" + HoursS;
If MinutesN <= 9 Then MinutesS = "0" + MinutesS;
If SecondsN <= 9 Then SecondsS = "0" + SecondsS;

AA_getSDateTime = "?";

AA_getSDateTime = YearsS + "." + MonthsS + "." + DaysS + " " + HoursS + ":" + MinutesS + ":" + SecondsS;

*******************************************************************************************************************************

IsStart!
DTm: 2014.10.26 18:00:00; D: 20141026; D1: 20141026; Count: 1; VWAPSD: 0.000; CSss: 1;
DTm: 2014.10.26 18:30:00; D: 20141026; D1: 20141026; Count: 2; VWAPSD: 0.345; CSss: 1;
DTm: 2014.10.26 19:00:00; D: 20141026; D1: 20141026; Count: 3; VWAPSD: 0.604; CSss: 1;
IsStart!
DTm: 2014.10.26 19:00:00; D: 20141026; D1: 20141026; Count: 1; VWAPSD: 0.000; CSss: 1;
DTm: 2014.10.26 19:30:00; D: 20141026; D1: 20141026; Count: 2; VWAPSD: 0.093; CSss: 1;
DTm: 2014.10.26 20:00:00; D: 20141026; D1: 20141026; Count: 3; VWAPSD: 0.319; CSss: 1;
DTm: 2014.10.26 20:30:00; D: 20141026; D1: 20141026; Count: 4; VWAPSD: 0.736; CSss: 1;
DTm: 2014.10.26 21:00:00; D: 20141026; D1: 20141026; Count: 5; VWAPSD: 1.211; CSss: 1;
IsStart!
DTm: 2014.10.26 20:00:00; D: 20141026; D1: 20141026; Count: 1; VWAPSD: 0.000; CSss: 1;
DTm: 2014.10.26 20:30:00; D: 20141026; D1: 20141026; Count: 2; VWAPSD: 0.448; CSss: 1;
DTm: 2014.10.26 21:00:00; D: 20141026; D1: 20141026; Count: 3; VWAPSD: 0.794; CSss: 1;
DTm: 2014.10.26 21:30:00; D: 20141026; D1: 20141026; Count: 4; VWAPSD: 0.847; CSss: 1;
DTm: 2014.10.26 22:00:00; D: 20141026; D1: 20141026; Count: 5; VWAPSD: 0.946; CSss: 1;
DTm: 2014.10.26 22:30:00; D: 20141026; D1: 20141026; Count: 6; VWAPSD: 0.961; CSss: 1;
DTm: 2014.10.26 23:00:00; D: 20141026; D1: 20141026; Count: 7; VWAPSD: 0.712; CSss: 1;
IsStart!
DTm: 2014.10.26 21:00:00; D: 20141026; D1: 20141026; Count: 1; VWAPSD: 0.000; CSss: 1;
DTm: 2014.10.26 21:30:00; D: 20141026; D1: 20141026; Count: 2; VWAPSD: 0.203; CSss: 1;
DTm: 2014.10.26 22:00:00; D: 20141026; D1: 20141026; Count: 3; VWAPSD: 0.388; CSss: 1;
DTm: 2014.10.26 22:30:00; D: 20141026; D1: 20141026; Count: 4; VWAPSD: 0.412; CSss: 1;
DTm: 2014.10.26 23:00:00; D: 20141026; D1: 20141026; Count: 5; VWAPSD: 0.392; CSss: 1;
DTm: 2014.10.26 23:30:00; D: 20141026; D1: 20141026; Count: 6; VWAPSD: 0.630; CSss: 1;
DTm: 2014.10.27 00:00:00; D: 20141027; D1: 20141026; Count: 1; VWAPSD: 0.000; CSss: 1;
DTm: 2014.10.27 00:30:00; D: 20141027; D1: 20141027; Count: 2; VWAPSD: 0.156; CSss: 1;
DTm: 2014.10.27 01:00:00; D: 20141027; D1: 20141027; Count: 3; VWAPSD: 0.120; CSss: 1;
......

*******************************************************************************************************************************

Reply With Quote
 
  #10 (permalink)
Trading for Profit
Perth AUSTRALIA
 
Futures Experience: Beginner
Platform: Tradestation
Broker/Data: Tradestation
Favorite Futures: crude gold sugar wheat soybean
 
Posts: 252 since Jun 2017
Thanks: 74 given, 85 received


thank you Big Mike, this works well on Tradestation 9.5

Reply With Quote

Reply



futures io > > > > TS/MC: VWAP with standard deviation indicator.

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
TS/MC DoubleMA indicator ptcm EasyLanguage Programming 10 October 6th, 2016 06:07 PM
Standard Deviation Channel honkin MetaTrader 2 April 5th, 2014 04:13 AM
TS / MC : Basic Indicator Help? Micardo EasyLanguage Programming 2 February 27th, 2011 12:30 PM
MC/TS : Better screen plot shapes NW27 EasyLanguage Programming 1 January 7th, 2011 12:46 AM
MC / TS : Using Subcharts in studies NW27 EasyLanguage Programming 15 January 7th, 2011 12:41 AM


All times are GMT -4. The time now is 06:56 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2017-12-18 in 0.15 seconds with 19 queries on phoenix via your IP 54.163.209.109