Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
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 for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
This type of statistical analysis is probably best for outside the trading platform, via excel or some other similar program. There are some resources on the forum for this kind of thing, including exporting data into a mysql and doing queries based on that for certain types of analysis.
Agreed and thanks for bringing up that point. I'm envisioning more of a separate spreadsheet/database or possibly even a dashboard type interface. Either way, it's not something I think has to be on the chart itself.
Luck is what happens when preparation meets opportunity. ~ Seneca
Here is the spreadsheet I'm using. Though it is hard to use because I input the data each evening manually (copy and paste). Something people don't like.
Thanks DT, I may give it a shot. I'm not a coder though, so it doesn't take much to exhaust my programming skills
FGBL07
Here is the spreadsheet I'm using. Though it is hard to use because I input the data each evening manually (copy and paste). Something people don't like.
Thanks FB, appreciate your contribution and sharing. As I get my own into some reasonable state of usefulness, I will post it here as well.
Luck is what happens when preparation meets opportunity. ~ Seneca
I looked at this today and I looked at DT's code. DT's code looks like it just starts at the first bar of the session. I was going to make the time selectable, but I would need to do a for statement to reference prior days in a range of time, and I've never done that so not sure how it will work out. Was also thinking of having the option of comparing the current bar only to the previous average of the same prior days' bars as opposed to the cumulative for the time range, which I think will be simpler. To clarify, I'm pretty slow at this and am taking this on as a learning exercise, so again, if someone more proficient wants to crank this out, then I will not be offended.
I need help on this. To use time as I know how I need to correlate the sc.Index to the time somehow and I can't figure a way to do that. Below is my initial thought process, but right now the StartIndex integer is null.
SCDateTime& IndexDateTime = sc.BaseDateTimeIn[sc.Index];
bool InputsReversed = (EndTime.GetTime() > StartTime.GetTime());
if (InputsReversed)
{
Int StartIndex = ????? <---Somehow identify the first sc.Index after the StartTime as StartIndex
Int Length = sc.Index - StartIndex;
float Sum = 0.0f;
for (int InIndex = sc.Index - (Length - 1); InIndex <= sc.Index; InIndex++)
{
Sum += sc.Volume[InIndex];
}
float Volume = Sum;
CumulativeVolume[sc.Index] = Volume;
If @ktrader or @aslan or @pbeguin or someone else good could help that would be great. Thank you.
I need help on this. To use time as I know how I need to correlate the sc.Index to the time somehow and I can't figure a way to do that. Below is my initial thought process, but right now the StartIndex integer is null.
SCDateTime& IndexDateTime = sc.BaseDateTimeIn[sc.Index];
bool InputsReversed = (EndTime.GetTime() > StartTime.GetTime());
if (InputsReversed)
{
Int StartIndex = ????? <---Somehow identify the first sc.Index after the StartTime as StartIndex
Int Length = sc.Index - StartIndex;
float Sum = 0.0f;
for (int InIndex = sc.Index - (Length - 1); InIndex <= sc.Index; InIndex++)
{
Sum += sc.Volume[InIndex];
}
float Volume = Sum;
CumulativeVolume[sc.Index] = Volume;
@vegasfoster, i think sc.GetNearestMatchForSCDateTime passing the current chart as chartnumber does it.