Slippage Settings - Limit Orders
Author: Christos
Creation Date: 1/8/2013 3:12 AM
profile picture

Christos

#1
Is it possible to activate slippage for limit orders and at the same time deactivate slippage for market close and stop orders?
profile picture

Eugene

#2
No, it is not.
profile picture

Cone

#3
You could create your own limit orders functions so that they trigger based on a limit slippage percent. e.g.

CODE:
Please log in to see this code.
profile picture

Christos

#4
Thanks a lot for the workaround Cone
profile picture

Carova

#5
I am showing my ignorance again, but I was attempting to convert this concept to SellAtLimit and I am obviously missing something.
CODE:
Please log in to see this code.

I am getting the error "cannot implicitly convert type 'bool' to "WealthLab.Position". What am I missing?

Vince
profile picture

Eugene

#6
Vince, SellAt* return a boolean value - not a Position like BuyAt*:

CODE:
Please log in to see this code.
profile picture

Carova

#7
Of course! (stupid error!!)

Never would have caught the problem with the "return" however. :(

Thanks Eugene!