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 mtzimmer1 with 1 posts (0 thanks)
    4. looks_4 Kgtn with 1 posts (0 thanks)
    1. trending_up 4,377 views
    2. thumb_up 1 thanks given
    3. group 3 followers
    1. forum 5 posts
    2. attach_file 1 attachments




 
Search this Thread
  #1 (permalink)
 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 Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Zytrade: Devin Brady, CEO - Ask Me Anything (AMA)
Brokers
Khamenei Vetoes Uranium Transfer as Peace Odds Surge to …
Prediction Markets & Event Contracts
Rubios Good News Within Hours and the 30-Day Math: Why H …
Prediction Markets & Event Contracts
Bond Market Rout -- Worst Week Since Russias 2022 Invasi …
Treasury Notes and Bonds
CME Launches Bitcoin Volatility Futures June 1 -- First …
Cryptocurrency
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
23 thanks
2026 Jlab journal
10 thanks
Trying to learn Volume and price action correlation
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
  #2 (permalink)
 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 X Reply With Quote
  #3 (permalink)
 
mtzimmer1's Avatar
 mtzimmer1 
Upstate NY
Legendary 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 X Visit my NexusFi Trade Journal Reply With Quote
  #4 (permalink)
 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 X Reply With Quote
Thanked by:
  #5 (permalink)
 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 Reply With Quote
  #6 (permalink)
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?


Reply With Quote




Last Updated on November 11, 2021


© 2026 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 - Downloads - Top
no new posts