#include <TesterChartPage.h>
Public Slots | |
void | slotSliderChanged (int) |
void | slotScaleToScreen () |
void | slotLogScaling (bool) |
Signals | |
void | signalIndex (int) |
Public Member Functions | |
TesterChartPage (QWidget *, DBIndex *) | |
~TesterChartPage () | |
void | updateChart (BarData *, QPtrList< TradeItem > &, double) |
void | clear () |
Protected Attributes | |
Plot * | plot |
Plot * | equityPlot |
QSlider * | slider |
QSplitter * | split |
Toolbar * | toolbar |
bool | scaleToScreenFlag |
Definition at line 38 of file TesterChartPage.h.
TesterChartPage::TesterChartPage | ( | QWidget * | p, | |
DBIndex * | index | |||
) |
Definition at line 32 of file TesterChartPage.cpp.
References Toolbar::addButton(), equityPlot, Toolbar::getButton(), Config::getData(), Toolbar::Horizontal, plot, Config::PlotFont, Config::ScaleToScreen, scaleToScreenFlag, Plot::setCrosshairsFlag(), Plot::setDateFlag(), Plot::setGridFlag(), Plot::setIndex(), Plot::setInfoFlag(), Plot::setMenuFlag(), Plot::setPixelspace(), Plot::setPlotFont(), Plot::setScaleToScreen(), signalIndex(), slider, slotScaleToScreen(), slotSliderChanged(), split, and toolbar.
TesterChartPage::~TesterChartPage | ( | ) |
Definition at line 97 of file TesterChartPage.cpp.
void TesterChartPage::signalIndex | ( | int | ) | [signal] |
Referenced by slotSliderChanged(), and TesterChartPage().
void TesterChartPage::updateChart | ( | BarData * | recordList, | |
QPtrList< TradeItem > & | trades, | |||
double | eq | |||
) |
Definition at line 108 of file TesterChartPage.cpp.
References Plot::addIndicator(), Indicator::addLine(), PlotLine::append(), PlotLine::Bar, BarData::count(), Plot::draw(), equityPlot, TradeItem::getBalance(), BarData::getClose(), TradeItem::getCurrentProfit(), BarData::getDate(), TradeItem::getEnterDate(), TradeItem::getExitDate(), BarData::getHigh(), BarData::getLow(), Indicator::getName(), BarData::getOpen(), TradeItem::getTradePosition(), BarData::getX(), TradeItem::Long, plot, PlotLine::setColor(), PlotLine::setColorBar(), Plot::setData(), Indicator::setName(), PlotLine::setType(), and slider.
Referenced by Tester::test().
void TesterChartPage::clear | ( | ) |
Definition at line 230 of file TesterChartPage.cpp.
References Plot::clear(), equityPlot, and plot.
Referenced by Tester::loadRule(), and Tester::test().
void TesterChartPage::slotSliderChanged | ( | int | v | ) | [slot] |
Definition at line 101 of file TesterChartPage.cpp.
References Plot::draw(), equityPlot, plot, and signalIndex().
Referenced by TesterChartPage().
void TesterChartPage::slotScaleToScreen | ( | ) | [slot] |
Definition at line 206 of file TesterChartPage.cpp.
References Plot::draw(), equityPlot, plot, scaleToScreenFlag, and Plot::setScaleToScreen().
Referenced by TesterChartPage().
void TesterChartPage::slotLogScaling | ( | bool | ) | [slot] |
Definition at line 220 of file TesterChartPage.cpp.
Plot* TesterChartPage::plot [protected] |
Definition at line 57 of file TesterChartPage.h.
Referenced by clear(), slotScaleToScreen(), slotSliderChanged(), TesterChartPage(), and updateChart().
Plot* TesterChartPage::equityPlot [protected] |
Definition at line 58 of file TesterChartPage.h.
Referenced by clear(), slotScaleToScreen(), slotSliderChanged(), TesterChartPage(), and updateChart().
QSlider* TesterChartPage::slider [protected] |
Definition at line 59 of file TesterChartPage.h.
Referenced by TesterChartPage(), and updateChart().
QSplitter* TesterChartPage::split [protected] |
Toolbar* TesterChartPage::toolbar [protected] |
bool TesterChartPage::scaleToScreenFlag [protected] |
Definition at line 62 of file TesterChartPage.h.
Referenced by slotScaleToScreen(), and TesterChartPage().