BetaTrader
A HFT Eco-System
Loading...
Searching...
No Matches
client_ui::ChartPanel Class Reference

Renders OHLC candlestick charts using ImPlot. More...

#include <ChartPanel.h>

Collaboration diagram for client_ui::ChartPanel:
Collaboration graph

Public Member Functions

 ChartPanel ()
 
 ~ChartPanel ()=default
 
void onCandleUpdate (int interval, const ohlc::Candle &candle)
 
void render ()
 

Private Member Functions

void drawCandleChart ()
 

Private Attributes

std::vector< ohlc::CandlemCandles
 
int mInterval = 1
 
std::mutex mMutex
 
char mSymbol [16] = "EURUSD"
 

Detailed Description

Renders OHLC candlestick charts using ImPlot.

Constructor & Destructor Documentation

◆ ChartPanel()

client_ui::ChartPanel::ChartPanel ( )

◆ ~ChartPanel()

client_ui::ChartPanel::~ChartPanel ( )
default

Member Function Documentation

◆ drawCandleChart()

void client_ui::ChartPanel::drawCandleChart ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onCandleUpdate()

void client_ui::ChartPanel::onCandleUpdate ( int  interval,
const ohlc::Candle candle 
)
Here is the caller graph for this function:

◆ render()

void client_ui::ChartPanel::render ( )
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ mCandles

std::vector<ohlc::Candle> client_ui::ChartPanel::mCandles
private

◆ mInterval

int client_ui::ChartPanel::mInterval = 1
private

◆ mMutex

std::mutex client_ui::ChartPanel::mMutex
mutableprivate

◆ mSymbol

char client_ui::ChartPanel::mSymbol[16] = "EURUSD"
private

The documentation for this class was generated from the following files: