|
ROOT_Application
2.0
C++ Core modules and GUIStock
|
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"

Go to the source code of this file.
Data Structures | |
| class | CanvasStock |
| Owns a vector of THStock. More... | |
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
Definition in file CanvasStock.h.
1.8.6