Price
property
Returns the price at which trade occured.
Syntax
public double Price { 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.