Size
property
Value of the trade in lots.
Syntax
public double Size { get; }
Example
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using PTLRuntime.NETScript;
namespace TradeClassExamples
{
public class TradeClassExamples : NETStrategy
{
public override void OnQuote()
{
Instrument inst = Instruments.Current;
Trade td = inst.GetLastTrade();
//TradeClass Properties
Print(td.Aggressor);
Print(td.Exchange);
Print(td.Instrument);
Print(td.Price);
Print(td.Size);
Print(td.Time);
}
}
}
Discussion
Join PTMC community to post your comments
No comments yet. Be the first.