#include <Bar.h>
Public Member Functions | |
Bar () | |
~Bar () | |
int | setDate (QString &) |
int | setDate (QDateTime &) |
void | getDate (QDateTime &) |
void | setOpen (double) |
double | getOpen () |
void | setHigh (double) |
double | getHigh () |
void | setLow (double) |
double | getLow () |
void | setClose (double) |
double | getClose () |
void | setVolume (double) |
double | getVolume () |
void | setOI (int) |
double | getOI () |
void | getString (QString &) |
bool | getTickFlag () |
void | setTickFlag (bool) |
bool | getEmptyFlag () |
void | setEmptyFlag (bool) |
void | getDateString (bool sepFlag, QString &) |
void | getDateTimeString (bool sepFlag, QString &) |
void | getTimeString (bool sepFlag, QString &) |
void | clear () |
bool | verify () |
Protected Attributes | |
QDateTime | date |
double | open |
double | high |
double | low |
double | close |
double | volume |
int | oi |
bool | openFlag |
bool | highFlag |
bool | lowFlag |
bool | closeFlag |
bool | volumeFlag |
bool | oiFlag |
bool | emptyFlag |
bool | tickFlag |
Definition at line 29 of file Bar.h.
int Bar::setDate | ( | QString & | d | ) |
Definition at line 42 of file Bar.cpp.
References date.
Referenced by TesterReport::addTrade(), Yahoo::createAutoHistoryUrls(), UpgradeMessage::createChart(), StocksDialog::deleteRecord(), FuturesDialog::deleteRecord(), DbPlugin::getBar(), Spread::getHistory(), Index::getHistory(), DbPlugin::getIndexHistory(), DbPlugin::getSpreadHistory(), Index::loadIndexData(), DbPlugin::loadIndexData(), NYBOT::parse(), CSV::parse(), CME::parse(), Yahoo::parseHistory(), Yahoo::parseQuote(), BarData::prepend(), StocksDialog::saveRecord(), FuturesDialog::saveRecord(), VerticalLine::setSettings(), TrendLine::setSettings(), Text::setSettings(), SellArrow::setSettings(), FiboLine::setSettings(), Cycle::setSettings(), and BuyArrow::setSettings().
void Bar::getDate | ( | QDateTime & | d | ) |
Definition at line 101 of file Bar.cpp.
References date.
Referenced by TesterReport::addTrade(), Yahoo::createAutoHistoryUrls(), StocksDialog::createSplitPage(), Index::getHistory(), DbPlugin::getIndexHistory(), IndicatorPlot::getInfo(), BarData::prepend(), VerticalLine::setSettings(), TrendLine::setSettings(), Text::setSettings(), SellArrow::setSettings(), FiboLine::setSettings(), Cycle::setSettings(), BuyArrow::setSettings(), StocksDialog::split(), StocksDialog::updateFields(), and FuturesDialog::updateFields().
void Bar::setOpen | ( | double | d | ) |
Definition at line 106 of file Bar.cpp.
References emptyFlag, open, and openFlag.
Referenced by UpgradeMessage::createChart(), DbPlugin::getBar(), DbPlugin::getCCHistory(), Spread::getHistory(), Index::getHistory(), CC::getHistory(), DbPlugin::getIndexHistory(), DbPlugin::getSpreadHistory(), Index::loadIndexData(), DbPlugin::loadIndexData(), NYBOT::parse(), CSV::parse(), CME::parse(), Yahoo::parseHistory(), Yahoo::parseQuote(), BarData::prepend(), StocksDialog::saveRecord(), FuturesDialog::saveRecord(), and StocksDialog::split().
double Bar::getOpen | ( | ) |
Definition at line 113 of file Bar.cpp.
References open.
Referenced by DbPlugin::getCCHistory(), Index::getHistory(), CC::getHistory(), DbPlugin::getIndexHistory(), ExScript::getInput(), Index::loadIndexData(), DbPlugin::loadIndexData(), NYBOT::parse(), Yahoo::parseHistory(), BarData::prepend(), DbPlugin::setBar(), StocksDialog::split(), StocksDialog::updateFields(), and FuturesDialog::updateFields().
void Bar::setHigh | ( | double | d | ) |
Definition at line 118 of file Bar.cpp.
References emptyFlag, high, and highFlag.
Referenced by UpgradeMessage::createChart(), DbPlugin::getBar(), DbPlugin::getCCHistory(), Spread::getHistory(), Index::getHistory(), CC::getHistory(), DbPlugin::getIndexHistory(), DbPlugin::getSpreadHistory(), Index::loadIndexData(), DbPlugin::loadIndexData(), NYBOT::parse(), CSV::parse(), CME::parse(), Yahoo::parseHistory(), Yahoo::parseQuote(), BarData::prepend(), StocksDialog::saveRecord(), FuturesDialog::saveRecord(), and StocksDialog::split().
double Bar::getHigh | ( | ) |
Definition at line 125 of file Bar.cpp.
References high.
Referenced by BarData::createDateList(), DbPlugin::getCCHistory(), Index::getHistory(), CC::getHistory(), DbPlugin::getIndexHistory(), ExScript::getInput(), Index::loadIndexData(), DbPlugin::loadIndexData(), NYBOT::parse(), Yahoo::parseHistory(), BarData::prepend(), DbPlugin::setBar(), BarData::setMinMax(), StocksDialog::split(), StocksDialog::updateFields(), and FuturesDialog::updateFields().
void Bar::setLow | ( | double | d | ) |
Definition at line 130 of file Bar.cpp.
References emptyFlag, low, and lowFlag.
Referenced by UpgradeMessage::createChart(), DbPlugin::getBar(), DbPlugin::getCCHistory(), Spread::getHistory(), Index::getHistory(), CC::getHistory(), DbPlugin::getIndexHistory(), DbPlugin::getSpreadHistory(), Index::loadIndexData(), DbPlugin::loadIndexData(), NYBOT::parse(), CSV::parse(), CME::parse(), Yahoo::parseHistory(), Yahoo::parseQuote(), BarData::prepend(), StocksDialog::saveRecord(), FuturesDialog::saveRecord(), and StocksDialog::split().
double Bar::getLow | ( | ) |
Definition at line 137 of file Bar.cpp.
References low.
Referenced by BarData::createDateList(), DbPlugin::getCCHistory(), Index::getHistory(), CC::getHistory(), DbPlugin::getIndexHistory(), ExScript::getInput(), Index::loadIndexData(), DbPlugin::loadIndexData(), NYBOT::parse(), Yahoo::parseHistory(), BarData::prepend(), DbPlugin::setBar(), BarData::setMinMax(), StocksDialog::split(), StocksDialog::updateFields(), and FuturesDialog::updateFields().
void Bar::setClose | ( | double | d | ) |
Definition at line 142 of file Bar.cpp.
References close, closeFlag, and emptyFlag.
Referenced by UpgradeMessage::createChart(), DbPlugin::getBar(), DbPlugin::getCCHistory(), Spread::getHistory(), Index::getHistory(), CC::getHistory(), DbPlugin::getIndexHistory(), DbPlugin::getSpreadHistory(), Index::loadIndexData(), DbPlugin::loadIndexData(), NYBOT::parse(), CSV::parse(), CME::parse(), Yahoo::parseHistory(), Yahoo::parseQuote(), StocksDialog::saveRecord(), FuturesDialog::saveRecord(), and StocksDialog::split().
double Bar::getClose | ( | ) |
Definition at line 149 of file Bar.cpp.
References close.
Referenced by DbPlugin::getCCHistory(), Spread::getHistory(), Index::getHistory(), CC::getHistory(), DbPlugin::getIndexHistory(), ExScript::getInput(), DbPlugin::getSpreadHistory(), Index::loadIndexData(), DbPlugin::loadIndexData(), NYBOT::parse(), Yahoo::parseHistory(), DbPlugin::setBar(), StocksDialog::split(), StocksDialog::updateFields(), FuturesDialog::updateFields(), and PortfolioDialog::updatePortfolioItems().
void Bar::setVolume | ( | double | d | ) |
Definition at line 154 of file Bar.cpp.
References emptyFlag, volume, and volumeFlag.
Referenced by UpgradeMessage::createChart(), DbPlugin::getBar(), NYBOT::parse(), CSV::parse(), CME::parse(), Yahoo::parseHistory(), Yahoo::parseQuote(), BarData::prepend(), StocksDialog::saveRecord(), FuturesDialog::saveRecord(), and StocksDialog::split().
double Bar::getVolume | ( | ) |
Definition at line 161 of file Bar.cpp.
References volume.
Referenced by ExScript::getInput(), Yahoo::parseHistory(), BarData::prepend(), DbPlugin::setBar(), StocksDialog::split(), StocksDialog::updateFields(), and FuturesDialog::updateFields().
void Bar::setOI | ( | int | d | ) |
Definition at line 166 of file Bar.cpp.
References emptyFlag, oi, and oiFlag.
Referenced by UpgradeMessage::createChart(), DbPlugin::getBar(), Index::loadIndexData(), DbPlugin::loadIndexData(), NYBOT::parse(), CSV::parse(), CME::parse(), BarData::prepend(), and FuturesDialog::saveRecord().
double Bar::getOI | ( | ) |
Definition at line 173 of file Bar.cpp.
References oi.
Referenced by Index::getHistory(), DbPlugin::getIndexHistory(), ExScript::getInput(), Index::loadIndexData(), DbPlugin::loadIndexData(), BarData::prepend(), DbPlugin::setBar(), and FuturesDialog::updateFields().
void Bar::getString | ( | QString & | s | ) |
bool Bar::getTickFlag | ( | ) |
Definition at line 219 of file Bar.cpp.
References tickFlag.
Referenced by StocksDialog::updateFields(), and FuturesDialog::updateFields().
void Bar::setTickFlag | ( | bool | d | ) |
Definition at line 224 of file Bar.cpp.
References tickFlag.
Referenced by DbPlugin::getAllBars(), DbPlugin::getHistory(), and CSV::parse().
bool Bar::getEmptyFlag | ( | ) |
Definition at line 229 of file Bar.cpp.
References emptyFlag.
Referenced by Yahoo::createAutoHistoryUrls(), BarData::createDateList(), StocksDialog::createDetailsPage(), FuturesDialog::createDetailsPage(), StocksDialog::createSplitPage(), DbPlugin::getCCHistory(), CC::getHistory(), BarData::prepend(), StocksDialog::slotDateSearch(), FuturesDialog::slotDateSearch(), StocksDialog::slotFirstRecord(), FuturesDialog::slotFirstRecord(), StocksDialog::slotLastRecord(), FuturesDialog::slotLastRecord(), StocksDialog::slotNextRecord(), FuturesDialog::slotNextRecord(), StocksDialog::slotPrevRecord(), FuturesDialog::slotPrevRecord(), StocksDialog::split(), and PortfolioDialog::updatePortfolioItems().
void Bar::setEmptyFlag | ( | bool | d | ) |
Definition at line 234 of file Bar.cpp.
References emptyFlag.
Referenced by DbPlugin::getCCHistory(), and CC::getHistory().
void Bar::getDateString | ( | bool | sepFlag, | |
QString & | d | |||
) |
Definition at line 239 of file Bar.cpp.
References date.
Referenced by IndicatorPlot::drawInfo(), getDateTimeString(), and IndicatorPlot::getInfo().
void Bar::getDateTimeString | ( | bool | sepFlag, | |
QString & | d | |||
) |
Definition at line 247 of file Bar.cpp.
References getDateString(), and getTimeString().
Referenced by BarData::createDateList(), StocksDialog::createDetailsPage(), FuturesDialog::createDetailsPage(), StocksDialog::deleteRecord(), FuturesDialog::deleteRecord(), Spread::getHistory(), Index::getHistory(), DbPlugin::getIndexHistory(), ExScript::getInput(), DbPlugin::getSpreadHistory(), getString(), Index::loadIndexData(), DbPlugin::loadIndexData(), DbPlugin::setBar(), StocksDialog::updateFields(), FuturesDialog::updateFields(), PortfolioDialog::updatePortfolioItems(), and IndicatorPlot::updateStatusBar().
void Bar::getTimeString | ( | bool | sepFlag, | |
QString & | d | |||
) |
Definition at line 261 of file Bar.cpp.
References date.
Referenced by getDateTimeString(), and IndicatorPlot::getInfo().
void Bar::clear | ( | ) |
bool Bar::verify | ( | ) |
Definition at line 290 of file Bar.cpp.
References close, high, low, and open.
Referenced by NYBOT::parse(), CME::parse(), Yahoo::parseHistory(), and Yahoo::parseQuote().
QDateTime Bar::date [protected] |
Definition at line 62 of file Bar.h.
Referenced by clear(), getDate(), getDateString(), getTimeString(), and setDate().
double Bar::open [protected] |
double Bar::high [protected] |
double Bar::low [protected] |
double Bar::close [protected] |
Definition at line 66 of file Bar.h.
Referenced by clear(), getClose(), getString(), setClose(), and verify().
double Bar::volume [protected] |
Definition at line 67 of file Bar.h.
Referenced by clear(), getString(), getVolume(), and setVolume().
int Bar::oi [protected] |
bool Bar::openFlag [protected] |
bool Bar::highFlag [protected] |
bool Bar::lowFlag [protected] |
bool Bar::closeFlag [protected] |
bool Bar::volumeFlag [protected] |
bool Bar::oiFlag [protected] |
bool Bar::emptyFlag [protected] |
Definition at line 75 of file Bar.h.
Referenced by clear(), getEmptyFlag(), setClose(), setEmptyFlag(), setHigh(), setLow(), setOI(), setOpen(), and setVolume().
bool Bar::tickFlag [protected] |