NexusFi: Find Your Edge


Home Menu

 





RTH vwap on ETH chart


Discussion in ThinkOrSwim

Updated
      Top Posters
    1. looks_one kjhosken with 3 posts (1 thanks)
    2. looks_two Nostar123 with 2 posts (0 thanks)
    3. looks_3 Kgtn with 1 posts (0 thanks)
    4. looks_4 mtzimmer1 with 1 posts (0 thanks)
    1. trending_up 3,137 views
    2. thumb_up 1 thanks given
    3. group 3 followers
    1. forum 5 posts
    2. attach_file 1 attachments




 
 

RTH vwap on ETH chart

 
 Nostar123 
Atlanta
 
Experience: Beginner
Platform: Ib
Trading: Es
Posts: 19 since Oct 2014
Thanks Given: 108
Thanks Received: 17

Does anyone know how to plot a RTH vwap on an ETH chart on TOS?

Started this thread

Can you help answer these questions
from other members on NexusFi?
Increase in trading performance by 75%
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
REcommedations for programming help
Sierra Chart
MC PL editor upgrade
MultiCharts
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
36 thanks
Tao te Trade: way of the WLD
24 thanks
Spoo-nalysis ES e-mini futures S&P 500
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
16 thanks
 
 kjhosken 
Seattle, WA/USA
 
Experience: Intermediate
Platform: TOS, TS
Trading: Forex, crude
Posts: 96 since Sep 2016
Thanks Given: 7
Thanks Received: 35

Looks like it plots fine to me. Can you be more specific or maybe show a screenshot of the issue?

Follow me on Twitter
 
 
mtzimmer1's Avatar
 mtzimmer1 
Upstate NY
Recovering Method Hopper
 
Experience: Intermediate
Platform: TOS
Broker: TD Ameritrade
Trading: Equities, Treasuries, Gold
Posts: 840 since Dec 2018
Thanks Given: 2,201
Thanks Received: 1,918



kjhosken View Post
Looks like it plots fine to me. Can you be more specific or maybe show a screenshot of the issue?

This is plotting the VWAP, beginning the aggregation overnight. OP is looking for a VWAP that begins aggregating at 9:30 regardless of if the chart is set to show extended hours or not.

I'm interested in knowing if this is possible as well.

Follow me on Twitter Visit my NexusFi Trade Journal
 
 kjhosken 
Seattle, WA/USA
 
Experience: Intermediate
Platform: TOS, TS
Trading: Forex, crude
Posts: 96 since Sep 2016
Thanks Given: 7
Thanks Received: 35


mtzimmer1 View Post
This is plotting the VWAP, beginning the aggregation overnight. OP is looking for a VWAP that begins aggregating at 9:30 regardless of if the chart is set to show extended hours or not.

I'm interested in knowing if this is possible as well.

Here's what I came up with, should be able to define the start and stop time you want:
 
Code
#VWAP by RTH start by The PNW Yeti
plot Data = close;
input numDevDn  = -2.0;
input numDevUp  = 2.0;
input rthopen = 930;
input rthclose = 1600;

def OpeningBell = if SecondsFromTime(rthopen) >= 0 and
               SecondstillTime(rthclose) >= 0 then 1 else 0; 
def volumeSum   = if OpeningBell == 1 then CompoundValue(1, volumeSum[1] + volume, volume) else 0;
def volumeVwapSum  = if OpeningBell == 1 then CompoundValue(1, volumeVwapSum[1] + volume * vwap, volume * vwap) else 0;
def volumeVwap2Sum = if OpeningBell == 1 then CompoundValue(1, volumeVwap2Sum[1] + volume * Sqr(vwap), volume * Sqr(vwap)) else 0;

def price     = volumeVwapSum / volumeSum;
def deviation = Sqrt(Max(volumeVwap2Sum / volumeSum - Sqr(price), 0));

plot VWAP      = price;
plot UpperBand = price + numDevUp * deviation;
plot LowerBand = price + numDevDn * deviation;

VWAP.SetDefaultColor(GetColor(0));
UpperBand.SetDefaultColor(GetColor(2));
LowerBand.SetDefaultColor(GetColor(4));

Follow me on Twitter
Thanked by:
 
 Nostar123 
Atlanta
 
Experience: Beginner
Platform: Ib
Trading: Es
Posts: 19 since Oct 2014
Thanks Given: 108
Thanks Received: 17


kjhosken View Post
Here's what I came up with, should be able to define the start and stop time you want:
 
Code
#VWAP by RTH start by The PNW Yeti
plot Data = close;
input numDevDn  = -2.0;
input numDevUp  = 2.0;
input rthopen = 930;
input rthclose = 1600;

def OpeningBell = if SecondsFromTime(rthopen) >= 0 and
               SecondstillTime(rthclose) >= 0 then 1 else 0; 
def volumeSum   = if OpeningBell == 1 then CompoundValue(1, volumeSum[1] + volume, volume) else 0;
def volumeVwapSum  = if OpeningBell == 1 then CompoundValue(1, volumeVwapSum[1] + volume * vwap, volume * vwap) else 0;
def volumeVwap2Sum = if OpeningBell == 1 then CompoundValue(1, volumeVwap2Sum[1] + volume * Sqr(vwap), volume * Sqr(vwap)) else 0;

def price     = volumeVwapSum / volumeSum;
def deviation = Sqrt(Max(volumeVwap2Sum / volumeSum - Sqr(price), 0));

plot VWAP      = price;
plot UpperBand = price + numDevUp * deviation;
plot LowerBand = price + numDevDn * deviation;

VWAP.SetDefaultColor(GetColor(0));
UpperBand.SetDefaultColor(GetColor(2));
LowerBand.SetDefaultColor(GetColor(4));

This is perfect! Thanks!

Started this thread
 
Kgtn
Cary, NC, US
 
Posts: 1 since Oct 2019
Thanks Given: 0
Thanks Received: 0


Nostar123 View Post
This is perfect! Thanks!

Can you please guide me how to project this RTH VWAP to next day as support/resistance line?


 



Last Updated on November 11, 2021


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts