Need to get aggregate value, totalsum doesnt work - futures io
futures io



Need to get aggregate value, totalsum doesnt work


Discussion in ThinkOrSwim

Updated
    1. trending_up 405 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 0 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

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

 
Search this Thread
 

Need to get aggregate value, totalsum doesnt work

(login for full post details)
  #1 (permalink)
darkness3277
Deerfield
 
 
Posts: 1 since May 2019
Thanks: 0 given, 0 received

Thinkorswim
so basically this is the script for a 1tick based VWAP which I believe is more accurate than standard candle based one. To make it work it has to be added to a 1 tick chart

def Active = SecondsFromTime(0929) >= 0 and
SecondsTillTime(1559) >= 0;

def vol = if Active and !Active[1]
then volume * close
else if Active
then vol[1] + volume * close
else vol[1];

def vol1 = if Active and !Active[1]
then volume
else if Active
then vol1[1] + volume
else vol1[1];

def avgprice = vol / vol1; # the vwap curve

def vol2 = if Active and close > avgprice + 0.001
then volume
else 0;

plot curve2 = vol2; # volume of ticks that trade above vwap

so the goal here is to get an aggregate volume of pops on the curve2. havent been able to do that - the code I used for vol and vol1 to get aggregate values - doesnt work. and totalsum gives some insane number.

Please assist

Reply With Quote


futures io Trading Community Platforms and Indicators ThinkOrSwim > Need to get aggregate value, totalsum doesnt work


Last Updated on May 31, 2019


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Journal Challenge w/$1,800 in prizes!

April
 

Seven Trading Mistakes Solved With Smart Trading Tools w/Brannigan Barrett

Elite only
     



Copyright © 2021 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