Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "../Infrastructure/Object.mqh";
- //+------------------------------------------------------------------+
- //| Свеча |
- //+------------------------------------------------------------------+
- class Candle : public Object
- {
- private:
- double OpenPrice;
- double ClosePrice;
- double HighPrice;
- double LowPrice;
- datetime Date;
- ulong Volume;
- long Timestamp;
- public:
- void Candle() {}
- void Candle(const Candle &obj) {
- this = obj;
- }
- void setOpenPrice(double openPrice)
- {
- this.OpenPrice = openPrice;
- }
- double getOpenPrice()
- {
- return this.OpenPrice;
- }
- void setClosePrice(double closePrice)
- {
- this.ClosePrice = closePrice;
- }
- double getClosePrice()
- {
- return this.ClosePrice;
- }
- void setHighPrice(double highPrice)
- {
- this.HighPrice = highPrice;
- }
- double getHighPrice()
- {
- return this.HighPrice;
- }
- void setLowPrice(double lowPrice)
- {
- this.LowPrice = lowPrice;
- }
- double getLowPrice()
- {
- return this.LowPrice;
- }
- void setDate(datetime date)
- {
- this.Date = date;
- }
- datetime getDate()
- {
- return this.Date;
- }
- void setVolume(ulong volume)
- {
- this.Volume = volume;
- }
- ulong getVolume()
- {
- return this.Volume;
- }
- void setTimestamp(long timestamp)
- {
- this.Timestamp = timestamp;
- }
- long getTimestamp()
- {
- return this.Timestamp;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement