OrderMan - Ordering interface for NOW + Amibroker

josh1

Well-Known Member
Does it show if you click on NOW window? Sometimes i have seen sub-windows becoming invisible, not sure why it happens, but clicking on NOW window brings them back.
Also, Automatic Order = false is meant for only initial testing. Once comfortable switch to true. I only test it with true and it should be more reliable.
Yes it shows by clicking on NOW. bit irritating.
 

TracerBullet

Well-Known Member
Hi everyone please share me the setup and installation guide I shall be very thankful you
Take it from git here, This link will always have latest code.

I use NOW, so thats the main platform. Nest is tested for few brokers now so hopefully should work.
To keep it simple, install AHK and then run OrderMan.ahk. You will have to add some columns in Orderbook. SnakeHead had written some instructions earlier in thread, can look at it if stuck.
 

TracerBullet

Well-Known Member
TB I downloaded the file but there is no exe file in ordermam how to install??������������

As i said install AHK, then can 'run' OrderMan.ahk.
AHK is interpretor, Can 'compile' to exe but i dont want hassle after every update.

Otherwise can use portable version of AHK and batch script to run it ( This is what i do). Modify as needed depending on exe path.
Code:
START ./../AHK/AutoHotkey.exe OrderMan.ahk
Also make sure Nest is running as normal user ( not as admin ).
 

josh1

Well-Known Member
@Tracerbullet,

When I start a transaction with SL order, orderman defaults to Limit for my Stop Loss order. e.g. -
I put in New order of type SL for Axisbank - Buy if Price goes above 540. SL is 538.5
The Order is executed when Axis bank rises to 540.10.
Orderman puts Limit Sale order for 538.5. So the order is executed immediately and generally for small loss.
Please guide me where to look for correction.
 
@Tracerbullet,

When I start a transaction with SL order, orderman defaults to Limit for my Stop Loss order. e.g. -
I put in New order of type SL for Axisbank - Buy if Price goes above 540. SL is 538.5
The Order is executed when Axis bank rises to 540.10.
Orderman puts Limit Sale order for 538.5. So the order is executed immediately and generally for small loss.
Please guide me where to look for correction.
Really? Its very different for me.
For me, the Stop Loss Order is by default "SL-M" Order. And the Order Type cannot be changed (As far as Stop Order is concerned).

My request to TracerBullet is:
Plz make a provision for choosing Stop Order Type. I want to choose SL-Limit type order. But I can't do it.

Thanks
Sunil
 

TracerBullet

Well-Known Member
@Tracerbullet,

When I start a transaction with SL order, orderman defaults to Limit for my Stop Loss order. e.g. -
I put in New order of type SL for Axisbank - Buy if Price goes above 540. SL is 538.5
The Order is executed when Axis bank rises to 540.10.
Orderman puts Limit Sale order for 538.5. So the order is executed immediately and generally for small loss.
Please guide me where to look for correction.
Never seen this, Stop is supposed to be SLM only. Just to be sure, Take latest git code and set its settings separately ( ie dont overwrite with old one). Then test it with 1 size in cash stock. If the problem is persistant, try to debug it with scite or zip the folder and ill check it.

To avoid actual execution of trades while testing you can do this
1) In GUIControls/Now.ahk - change below. This is status that says entry order is complete.You can put rejected or cancelled, then OM will think entry is triggered when you cancel / reject entry order
Code:
static ORDER_STATUS_COMPLETE := "complete"
2) You can input values outside allowed range (circuit) in entry/stop order so they get rejected always

Really? Its very different for me.
For me, the Stop Loss Order is by default "SL-M" Order. And the Order Type cannot be changed (As far as Stop Order is concerned).

My request to TracerBullet is:
Plz make a provision for choosing Stop Order Type. I want to choose SL-Limit type order. But I can't do it.

Thanks
Sunil
I dont intend to change it as SL Limit will create complications. If you are willing to check manually when stop does not fill you can try setting order type in settings.ahk. Change
Code:
STOP_ORDER_TYPE := "SLM"
to
Code:
STOP_ORDER_TYPE := "SL"
It should work, but this is not tested. It will take limit price using MaxSlippage set in settings.
 

josh1

Well-Known Member
Never seen this, Stop is supposed to be SLM only. Just to be sure, Take latest git code and set its settings separately ( ie dont overwrite with old one). Then test it with 1 size in cash stock. If the problem is persistant, try to debug it with scite or zip the folder and ill check it.

To avoid actual execution of trades while testing you can do this
1) In GUIControls/Now.ahk - change below. This is status that says entry order is complete.You can put rejected or cancelled, then OM will think entry is triggered when you cancel / reject entry order
Code:
static ORDER_STATUS_COMPLETE := "complete"
2) You can input values outside allowed range (circuit) in entry/stop order so they get rejected always


I dont intend to change it as SL Limit will create complications. If you are willing to check manually when stop does not fill you can try setting order type in settings.ahk. Change
Code:
STOP_ORDER_TYPE := "SLM"
to
Code:
STOP_ORDER_TYPE := "SL"
It should work, but this is not tested. It will take limit price using MaxSlippage set in settings.
I downloaded latest code from Github today.

Case 1.
Axisbank opened and went down, then started rising. It was howevering around 527.85
I clicked a New order 'SL' at trigger price 528.0 Stop 527 and target 0
Order Trigered at 9:38:21 for 528.05 when Axisbank rose above 528.
Orderman immediately sold the share at 527.8 and closed the trade

Case 2. At 10:53, Axisbank was going down It was around 527.9. I changed STOP_ORDER_TYPE := "SLM" to STOP_ORDER_TYPE := "SL".
Entry for Sale at 527.8 Order Type 'SL'
Stop at 529
Target 0
Orderman complained "STOP Order Type 'SL' is invalid"

Case 3. Changed STOP_ORDER_TYPE := "SL" to STOP_ORDER_TYPE := "SLM"
Entry for Sale at 527.8 Order Type 'SL'
Stop at 529
Target 0
Sale executed at 527.75
Stop executed at 527.80.
Message " Trade Closed Verify"

Note: I do not see 'SLM' type of order in NOW. However, when I type SLM in OrderType, it goes to SL.