Cumulative/summation reset on new session - Sierra Chart | futures io social day trading
futures io futures trading


Cumulative/summation reset on new session
Updated: Views / Replies:607 / 5
Created: by Big Mike Attachments:1

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
 

Cumulative/summation reset on new session

  #1 (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,238 since Jun 2009
Thanks: 29,350 given, 83,218 received

Cumulative/summation reset on new session

I want to do a summation of a ticker price series, but reset it on a new session. Is there a built-in study that will do this?

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
 
  #2 (permalink)
Elite Member
Alesia E.U.
 
Futures Experience: Intermediate
Platform: Sierra chart
Favorite Futures: Futures
 
Posts: 166 since Feb 2011
Thanks: 139 given, 109 received

Hi Mike

take a look to :
Technical Studies Reference - Sierra Chart

Reply With Quote
The following user says Thank You to crazybears for this post:
 
  #3 (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,238 since Jun 2009
Thanks: 29,350 given, 83,218 received



crazybears View Post

LOL how embarrassing. I found Summation but didn't see the Cumulative one, and then when I created the thread title I thought I would be more descriptive by saying cumulative but didn't bother looking at Sierra for an indicator that started with that. It seems like the two studies are identical, except one can reset on new session. I'm not sure why there needs to be two studies, instead of just one with the reset option. (Cumulative Sum of Study vs Summation).

Works great.

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:
 
  #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,238 since Jun 2009
Thanks: 29,350 given, 83,218 received

And now I have a cumulative tick reset on new session.

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).



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
 
  #5 (permalink)
Elite Member
Tomsk, Russia
 
Futures Experience: Beginner
Platform: custom
Favorite Futures: gold
 
slickiam's Avatar
 
Posts: 253 since Dec 2010
Thanks: 131 given, 427 received

Hi All

This is my 2 cents for someone who might be interested in.

 
Code
#include "sierrachart.h"

SCDLLName("bm_cv6u");

SCSFExport scsf_bm_cv6u(SCStudyInterfaceRef sc)
{
	if (sc.SetDefaults)
	{		
		sc.Input[0].Name = "Source #1 to summ ";
		sc.Input[0].SetChartStudySubgraphValues(1,0,4);
		
		sc.GraphName 			= "bm_cv6u";
		sc.StudyDescription 	= "bm_cv6u @ganz";

		sc.Subgraph[0].Name		= "summ";		
						
		sc.GraphRegion 			= 1;
		sc.ValueFormat 			= 2;		
		sc.AutoLoop 			= 1;
		sc.FreeDLL 				= 0; 
		
		return;
	}
	
	SCGraphData src1Array;		
	
	int src1Chart 			= sc.Input[0].GetChartNumber();
	int src1Study 			= sc.Input[0].GetStudyID();
	int src1StudySubgraph 	= sc.Input[0].GetSubgraphIndex();
		
	sc.GetStudyArraysFromChartUsingID(src1Chart, src1Study, src1Array);
			
	SCFloatArrayRef src1ArrayData = src1Array[src1StudySubgraph];	
			
	double& CumulativeSummation = sc.PersistVars->d1; 
	
	SCDateTime StartDateTimeOfDay;
	StartDateTimeOfDay.SetTime(sc.StartTimeOfDay);
	StartDateTimeOfDay.SetDate(sc.BaseDateTimeIn[sc.Index].GetDate());
	if(sc.BaseDateTimeIn[sc.Index] == StartDateTimeOfDay || (sc.BaseDateTimeIn[sc.Index-1] < StartDateTimeOfDay && sc.BaseDateTimeIn[sc.Index] > StartDateTimeOfDay)) CumulativeSummation = src1ArrayData[sc.Index];
	else CumulativeSummation += src1ArrayData[sc.Index];	
		
	sc.Subgraph[0][sc.Index] = CumulativeSummation;
			
	return;
}

Scientia Libertas Prosperitas
Reply With Quote
The following 4 users say Thank You to slickiam for this post:
 
  #6 (permalink)
Elite Member
Christchurch, New Zealand
 
Futures Experience: Beginner
Platform: SC
Broker/Data: IB, BC, Dx Feed
Favorite Futures: US Equities
 
Neo1's Avatar
 
Posts: 422 since Jul 2014
Thanks: 470 given, 470 received


slickiam View Post
Hi All

This is my 2 cents for someone who might be interested in.

 
Code
#include "sierrachart.h"

SCDLLName("bm_cv6u");

SCSFExport scsf_bm_cv6u(SCStudyInterfaceRef sc)
{
	if (sc.SetDefaults)
	{		
		sc.Input[0].Name = "Source #1 to summ ";
		sc.Input[0].SetChartStudySubgraphValues(1,0,4);
		
		sc.GraphName 			= "bm_cv6u";
		sc.StudyDescription 	= "bm_cv6u @ganz";

		sc.Subgraph[0].Name		= "summ";		
						
		sc.GraphRegion 			= 1;
		sc.ValueFormat 			= 2;		
		sc.AutoLoop 			= 1;
		sc.FreeDLL 				= 0; 
		
		return;
	}
	
	SCGraphData src1Array;		
	
	int src1Chart 			= sc.Input[0].GetChartNumber();
	int src1Study 			= sc.Input[0].GetStudyID();
	int src1StudySubgraph 	= sc.Input[0].GetSubgraphIndex();
		
	sc.GetStudyArraysFromChartUsingID(src1Chart, src1Study, src1Array);
			
	SCFloatArrayRef src1ArrayData = src1Array[src1StudySubgraph];	
			
	double& CumulativeSummation = sc.PersistVars->d1; 
	
	SCDateTime StartDateTimeOfDay;
	StartDateTimeOfDay.SetTime(sc.StartTimeOfDay);
	StartDateTimeOfDay.SetDate(sc.BaseDateTimeIn[sc.Index].GetDate());
	if(sc.BaseDateTimeIn[sc.Index] == StartDateTimeOfDay || (sc.BaseDateTimeIn[sc.Index-1] < StartDateTimeOfDay && sc.BaseDateTimeIn[sc.Index] > StartDateTimeOfDay)) CumulativeSummation = src1ArrayData[sc.Index];
	else CumulativeSummation += src1ArrayData[sc.Index];	
		
	sc.Subgraph[0][sc.Index] = CumulativeSummation;
			
	return;
}

Hi @slickiam

Have you coded anything that calculates the relative cumulative summation over X days? So you could examine at each time stamp how much % a subgraph has done of its cumulative average over x days.

Similar to the "Cumulative Volume Ratio",https://www.sierrachart.com/index.php?page=doc/StudiesReference.php&ID=356#Relative_Volume

So it would become the Cumulative Summation ratio.

eg
CurrentDayCumulativeSummationToTime / PriorDayAverageCumulativeSummationToTime

"Free markets work because they allow people to be lucky, thanks to aggressive trial and error, not by giving rewards or incentives for skill. The strategy is, then, to tinker as much as possible and try to collect as many Black Swan opportunities as you can"
Reply With Quote

Reply



futures io > > > > Cumulative/summation reset on new session

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reset after DrawLine Touched ceramictilepro NinjaTrader Programming 5 February 11th, 2014 12:25 AM
McClellan Summation Index? TonyB EasyLanguage Programming 1 January 30th, 2013 08:28 PM
24hr session plots day session open artfuls NinjaTrader 2 December 19th, 2012 10:40 AM
Does anyone know how to reset a multicharts demo? Treggs MultiCharts 15 November 25th, 2011 06:33 PM
RESET YOUR MOUSE FOR 2010 websouth Off-Topic 0 January 31st, 2010 11:24 PM


All times are GMT -4. The time now is 02:35 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-12 in 0.10 seconds with 20 queries on phoenix via your IP 54.90.207.75