OrderMan - Ordering interface for NOW + Amibroker


After all this discussion, I have finally come to conclusion that there is NO problem at all with OrderMan.

Only thing is that there is no function to select CE/PE in Order Entry Form and hence I am facing problem while trading Options.

My sincere request to you is: Please add a function for selecting CE/PE. It will solve all problems.

Thanks TracerBullet !
 

TracerBullet

Well-Known Member
I saw that just now!. Thanks.

I use Tradersmartonile and SAS both. I checked it in both, facing same difficulty in both.

I have already placed 'Script.ini' files both all different PEs and CEs in Script folder.
1) TSO needs some changes. i dont remember. @boarders - please paste your Nest.ahk here for reference when free. SASO should work, i tested on it, ( didnt test options ).

People will have to maintain Nest config for each broker/version. OOB it has been tested on SASOnline, Zerodha and RKSV ( and NOW - which i use). Boarders has modified it to work for TSO. Need to comment few lines in Nest.ahk for it. NOW should be least likely to have problems as i use it daily

2) copy paste your settings here using code tag.

After all this discussion, I have finally come to conclusion that there is NO problem at all with OrderMan.

Only thing is that there is no function to select CE/PE in Order Entry Form and hence I am facing problem while trading Options.

My sincere request to you is: Please add a function for selecting CE/PE. It will solve all problems.

Thanks TracerBullet !
1) Read above, for TSO - you need some changes. To use both TSO and SASOnline - you will have to use two different instances as they need different code.
2) Type option is available.
Code:
; Exchg-Seg,Inst Name,Symbol,[B]Opt Type[/B],Strike Price,Expiry Date(Set by Position Number)
Scrip = NSE,EQ,SBIN,,,1
 
Last edited:

TracerBullet

Well-Known Member
You mean scripts name in dropdown box
I was telling written name before price C price, Avg T Price and CP.
this just mockup where you get space put it their
yes, i thought about it but need space for Big numbers like BNF. The bottom area is taken by status and target result.
Maybe we can add tooltip for first time confusion. Once, you are comfortable with GUI, there should be no confusion i think.

For now, i will update screenshots and put them in readme once partial Target is done.
 
1)
1) Read above, for TSO - you need some changes. To use both TSO and SASOnline - you will have to use two different instances as they need different code.
2) Type option is available.
Yes, 'Option Type' field is there in Scrip.ini file, BUT my guess is there is no code to select it while placing order. This is just my guess.

I request you to try buying option, in particular try buying Put Option (by placing SL order far away from current price so that it doesn't get triggered).
Please check if it's working in NOW.

Thanks..
 
Last edited:
Dear TracerBullet !!

I changed the function _submitOrder(winTitle) in Order.ahk very slightly.
Did just a small change.
Changed the order of these two calls of Control:

PHP:
Control, ChooseString , % scrip.symbol, 	 % controlObj.ORDER_ENTRY_SYMBOL,  	%winTitle%	// Scrip Symbol
Control, ChooseString , % scrip.type,  	 % controlObj.ORDER_ENTRY_TYPE,  	%winTitle%	// Type - XX/PE/CE - Set before Symbol
Now, everything seems to be working well. It was able to select 'PE'.

Thanks.
 

TracerBullet

Well-Known Member
Dear TracerBullet !!

I changed the function _submitOrder(winTitle) in Order.ahk very slightly.
Did just a small change.
Changed the order of these two calls of Control:

PHP:
Control, ChooseString , % scrip.symbol, 	 % controlObj.ORDER_ENTRY_SYMBOL,  	%winTitle%	// Scrip Symbol
Control, ChooseString , % scrip.type,  	 % controlObj.ORDER_ENTRY_TYPE,  	%winTitle%	// Type - XX/PE/CE - Set before Symbol
Now, everything seems to be working well. It was able to select 'PE'.

Thanks.
yes, this was done due to some problem with crudeoil. See this post

I dont understand it - 1 scrip needs symbol to be set before and 1 needs after ? For now, you have workaround - so test for other issues.

But since you also have SASOnline Crude - please test this scrip. Current code also has an empty check. So instead of XX, set type as empty for CRUDEOILM and let me know if it works. It should work, then ill revert the order of symbol and type in next build.

Also, see this. boarders needed to comment first two lines in Nest.ahk for TSO. Check if you need it too - check if orderbook is opening and whether you are able to cancel open orders.
 
I dont understand it - 1 scrip needs symbol to be set before and 1 needs after ? For now, you have workaround - so test for other issues.

Indeed, there is a problem with CrudeOil (SAS). You need to place 'Type' first and then 'Symbol' for CrudeOil.. :eek::eek:

While trading Options, you need to place 'Symbol' first and then 'Type'.
:annoyed::annoyed:
 
As suggested by you, I added few more lines of code in _submitOrder function as follows:

PHP:
if( scrip.type != "" )
	{ Control, ChooseString , % scrip.symbol,  % controlObj.ORDER_ENTRY_SYMBOL,  %winTitle%	// Scrip Symbol
	  Control, ChooseString , % scrip.type,  	 % controlObj.ORDER_ENTRY_TYPE,  	%winTitle%		// Type - XX/PE/CE - Set AFTER Symbol
	}	
else { Control, ChooseString , % scrip.type,  	 % controlObj.ORDER_ENTRY_TYPE,  	%winTitle%		// Type - XX/PE/CE - Set before Symbol
	Control, ChooseString , % scrip.symbol, 	% controlObj.ORDER_ENTRY_SYMBOL,  %winTitle%	// Scrip Symbol
	}
It is working fine for both CrudeOil and Options !!:clap:

But there is a minor problem. When I place order for Option, everything is set well in the Order Form. But an annoying little windows pops up. It says 'Exchange or Series or Symbol' is not selected. However, when I see the Order Entry form, everything is set up properly !!
 
Last edited:

TracerBullet

Well-Known Member
As suggested by you, I added few more lines of code in _submitOrder function as follows:

PHP:
if( scrip.type != "" )
	{ Control, ChooseString , % scrip.symbol,  % controlObj.ORDER_ENTRY_SYMBOL,  %winTitle%	// Scrip Symbol
	  Control, ChooseString , % scrip.type,  	 % controlObj.ORDER_ENTRY_TYPE,  	%winTitle%		// Type - XX/PE/CE - Set AFTER Symbol
	}	
else { Control, ChooseString , % scrip.type,  	 % controlObj.ORDER_ENTRY_TYPE,  	%winTitle%		// Type - XX/PE/CE - Set before Symbol
	Control, ChooseString , % scrip.symbol, 	% controlObj.ORDER_ENTRY_SYMBOL,  %winTitle%	// Scrip Symbol
	}
It is working fine for both CrudeOil and Options !!:clap:

But there is a minor problem. When I place order for Option, everything is set well in the Order Form. But an annoying little windows pops up. It says 'Exchange or Series or Symbol' is not selected. However, when I see the Order Entry form, everything is set up properly !!
I dont understand, why did you need to change code?
Does this not work (XX removed). Please try it with only type and symbol order reversed (so that it works with options) and without above change

Scrip = MCX,FUTCOM,CRUDEOILM,,,1