Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~6K People Reached
Favorite Forums
Favorite Tags
c++ x 59
input x 14
hash x 13
map x 13
Member Avatar for toneranger

Hi All, All of my programming was done in Visual Studio Express 2008 version. Thinking of upgrading to 2015 now that I have a Win 10 machine and given that I want to start learning some of the new functionality re C++ 11 and 14. Any tips/thoughts on how to …

Member Avatar for rproffitt
0
180
Member Avatar for toneranger

Hello, My function below is part of a program that compiles and runs. The core of the program is in the function below. The issue is that the variable named "PNL" below as well as "CumLoss" and "CumProfit" don't reset to 0 when the loop "L" restarts. So the output …

Member Avatar for tinstaafl
0
185
Member Avatar for toneranger

Hi, I'm trying to compute a moving average of length 20. I've got a vector of structs that's read into my function and I'm using an iterator to read through as follows: int length = a; int count = 0; double sum = 0; while (itr!= priceinput.end()) { sum += …

Member Avatar for toneranger
0
187
Member Avatar for toneranger

Hi, I'm wondering what could cause this type of runtime error: My program basically reads data from different kinds of data files, either a minute data file or a 5 minute data file and then does some analysis. When I run the program on the 1 min data, no problem. …

Member Avatar for David W
0
298
Member Avatar for toneranger

Hi, I'm new to APIs. Got the code below to compile (with 3 warnings C4129) but it won't output to the designated path. I created the txt file ahead of time, nqquotes.txt, but after the code compiles, that file stays empty. Thanks for your help, TR #include "stdafx.h" #include <tchar.h> …

Member Avatar for toneranger
0
169
Member Avatar for toneranger

Hi All, Well I've been stuck for a while here. I'm trying tp write a function called TransfertoSwingID which will transfer a line of data held in a struct contained in a vector to a new vector of structs. Basically as I'm iterating through the vector of structs called "prices", …

Member Avatar for tinstaafl
0
173
Member Avatar for toneranger

Hi, I've got a vector of structs populated with the following fields: double double double double (unsigned int) (unsigned int) string I want to take each line in that vector (call it OldVec), and 1. transfer it to a new vector of structures 2. add a string identifier at the …

Member Avatar for toneranger
0
269
Member Avatar for toneranger

Hi, Imagine a vector of structures with each structure containing various variables. struct Data { double x double y double z } vector<Data> Dataset vector<Data>::iterator it //input some data from a file into DataSet How can I iterate over this vector, comparing say, x at the nth row to the …

Member Avatar for toneranger
0
304
Member Avatar for toneranger

Hi, I've got stock market data in a structure as follows. [CODE]struct PriceInfo { double Open; double High; double Low; double Close; unsigned int Volume; unsigned int Time; std::string Date; };[/CODE] My program imports the data from a csv file and stores it in memory etc. The date and time …

Member Avatar for WaltP
0
2K
Member Avatar for toneranger

Hi everyone, When I try the code below with data in a txt file, I have no problems and the data prints properly and neatly on the screen. (Note, one slight modification when using a txt file, instead of getline (ist, ignored, ','), I do getline (ist, ignored, '/t') to …

Member Avatar for MonsieurPointer
0
227
Member Avatar for toneranger

I have some stock market price data organized as follows in a structure: struct PriceInfo { string Date; unsigned int Time; double Open; double High; double Low; double Close; unsigned int Volume; }; This struct organizes price data per interval of date and interval of time, where time is measured …

Member Avatar for toneranger
0
849
Member Avatar for toneranger

Hi, I have a csv datafile with stock price data that I've read into a vector of structures that looks like this: 09/11/2009 9.30 open, high, low, close, volume 09/11/2009 9.31 o, h, l, c, volume and so on to 09/11/2009 16.14 o, h, l, c, volume //next day starts …

Member Avatar for Ancient Dragon
0
239
Member Avatar for toneranger

I'm reading a big csv file into a data structure defined as such: [CODE]struct PriceInfo { double Open; double High; double Low; double Close; unsigned int Volume; unsigned int Time; std::string Date; };[/CODE] So somewhere in my main function, I have this line: // read contents of datafile by overloading …

Member Avatar for danb737
0
578
Member Avatar for toneranger

Hi, The following code I've been working on (as hobbyist) compiles okay, buy at runtime it fails to output the dates that it is supposed to extract from a csv file. I've been staring at this forever and no progress. I am thinking that the problem occurs before the date …

Member Avatar for VernonDozier
0
162