Files
mtapi/MtApi5/MqlTick.cs
T

31 lines
956 B
C#
Raw Normal View History

// ReSharper disable InconsistentNaming
using System;
2014-10-31 09:05:52 +02:00
namespace MtApi5
{
public class MqlTick
{
public MqlTick(DateTime time, double bid, double ask, double last, ulong volume)
{
MtTime = Mt5TimeConverter.ConvertToMtTime(time);
2014-10-31 09:05:52 +02:00
this.bid = bid;
this.ask = ask;
this.last = last;
this.volume = volume;
}
public MqlTick()
{
}
public long MtTime { get; set; } // Time of the last prices update
public double bid { get; set; } // Current Bid price
public double ask { get; set; } // Current Ask price
public double last { get; set; } // Price of the last deal (Last)
public ulong volume { get; set; } // Volume for the current Last price
public DateTime time => Mt5TimeConverter.ConvertFromMtTime(MtTime);
2014-10-31 09:05:52 +02:00
}
}