/* Fill up Buy/Sell Window and Submit
*/
_submitOrder( winTitle ){ // Fill up opened Buy/Sell window and verify
global controlObj
scrip := this._input.scrip
ordertype := this.getNowOrderType()
Control, ChooseString , % scrip.segment, % controlObj.ORDER_ENTRY_EXCHANGE_SEGMENT, %winTitle% // Exchange Segment - NFO/NSE etc
Control, ChooseString , % scrip.instrument, % controlObj.ORDER_ENTRY_INST_NAME, %winTitle% // Inst Name - FUTIDX / EQ etc
Control, ChooseString , % scrip.symbol, % controlObj.ORDER_ENTRY_SYMBOL, %winTitle% // Scrip Symbol
if( scrip.type != "" )
Control, ChooseString , % scrip.type, % controlObj.ORDER_ENTRY_TYPE, %winTitle% // Type - XX/PE/CE
Control, ChooseString , % scrip.strikePrice, % controlObj.ORDER_ENTRY_STRIKE_PRICE, %winTitle% // Strike Price for options
Control, Choose , % scrip.expiryIndex, % controlObj.ORDER_ENTRY_EXPIRY_DATE, %winTitle% // Expiry Date - Set by Position Index (1/2 etc)
Control, ChooseString , % ordertype, % controlObj.ORDER_ENTRY_ORDER_TYPE, %winTitle% // Order Type - LIMIT/MARKET/SL/SL-M
Control, ChooseString , % this._input.prodType, % controlObj.ORDER_ENTRY_PROD_TYPE, %winTitle% // Prod Type - MIS/NRML/CNC
Control, ChooseString , DAY, % controlObj.ORDER_ENTRY_VALIDITY, %winTitle% // Validity - Day/IOC
this._submitOrderCommon( winTitle )
}