ROOT_Application  2.0
C++ Core modules and GUIStock
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures
CanvasStock.h File Reference

CanvasStock used to represent THStock. More...

#include <iostream>
#include <vector>
#include <TCanvas.h>
#include <TList.h>
#include "CommonXAxis.h"
#include "THistPainterStock.h"
#include "ObjectStock/TPadStock.h"
Include dependency graph for CanvasStock.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  CanvasStock
 Owns a vector of THStock. More...
 

Detailed Description

CanvasStock used to represent THStock.


Or other ?? multiple Indicator ??

Can be used from ROOT directly, ex :
load a stock and data
Stock *st= new Stock("CAC40","CAC40","../data");
st->LoadListData( DAY, Indicator::StockCSV );
Create a canvas stock, constructor for not embeddedcanvas, name important CStock_*_* (or *_*_*)
title not used here, could delete from this constructor.
THistPainterStock set at this point
can = new CanvasStock("CStock_FTE_DAY","FTE_DAY",500,500);
add data to canvas and paint by default
can->AddListDataStockToMap( st->GetListData( DAY, Indicator::StockCSV ) );
can->AddListDataStockToMap( st->GetListData( DAY, Indicator::Volume ) );
std::vector<int> vec
vec.push_back(10)
st->LoadListData( DAY, Indicator::SMA, std::vector<int> vec )
l = st->GetListData( DAY, "SMA_10" )
can->AddListDataStockToMap( l, 0 );
last modified

Id:
CanvasStock.h 501 2014-10-09 17:34:50Z martinml

Definition in file CanvasStock.h.