Profile Picture

Trade/Order Description

Posted By ywlee 4 Years Ago
Message
Posted Tuesday November 19 2013
HI

How would you include a trade description when you open a position like this:

TradingSystem.OpenPosition(Symbol, PositionType.Long, OrderType.MarketOnOpen);

I saw an example in the Pyramiding sample that had a: order.Description = "Scaling up". What would be the syntax if using the OpenPosition method?





Posted Friday November 29 2013
Create a PositionSettings object and set the Description property:

PositionSettings settings = new PositionSettings();
settings.Symbol = Symbol;
settings.PositionType = PositionType.Long;
settings.OrderType = OrderType.MarketOnOpen;
settings.Description = "Long entry";
OpenPosition(settings);

Thanks,
Daniel


Similar Topics


Reading This Topic


2005-2017 © RightEdge Systems