Here is an addorder that will buy stock at opentime, at close price.
AddOrder(OrderType.BUY_AUTO, OpenTime, close , tickcolor = Color.WHITE, arrowcolor = Color.WHITE, name = "ByAtOpn:" + close, tradeSize = TS);
I want to capture following
Lot Identifier = so I can put sale order later on
BuyPrice = What was my buy price so I can use that later to decide my sale price.
Order execution time
AddOrder(OrderType.BUY_AUTO, OpenTime, close , tickcolor = Color.WHITE, arrowcolor = Color.WHITE, name = "ByAtOpn:" + close, tradeSize = TS);
I want to capture following
Lot Identifier = so I can put sale order later on
BuyPrice = What was my buy price so I can use that later to decide my sale price.
Order execution time