Quote from PocketChange:
Tommaso.
I think your going to get spread out on this if your not careful.
ie. your averaging down and you've sized to 10K with only a few oscilation scalps along the way. Not enough to cover your cost, time decay and the counter bot.
Your chances to be risk neutral may increase if you startout with OTM options say 3 - 5 strikes from your market entry and start both bots buying and selling at market. Use the options as your safety to reduce your runaway losses. Average down at set trade increments until the options are ITM and close out the entire trade set.
As the trade set progresses... market dips down and reverses allowing the averaged down long to exit profitably. Take profits and close out the entire tradeset... Reset and reenter.
The modification to your idea is to create a pseudo stepped trade set. ie 3 - 5 steps with fixed trigger points and closeout triggers.
Time is not your friend...
May work well with future options: ie.
just an untested idea:
10 OESU9 P955 and 10 OESU9 C995 market at 975.
(4 strikes OTM)
5 step tradeset
Step 1: Long enters 1 at 975 with Exit at 980
Step 2: Average Down Add 1 @ 965 Exit 975
Step 3 Average Down Add 3 @ 955 Exit 965
Step 4: Average Down Add 5 @ 945 Exit 955
Step 5: Close out when the Short closes out
Obviously as the long is being drawn down the short is capturing profits. When the Long is checking up and able to exit the Short is being drawn down. Ping - Ponging within your 50 point range should generate oscilation profits with the peace of mind that any break out will at least have a cover.
The trick is being able to close out the entire tradeset cause you get into situations where both the short and long are averaging down and creating a gap. Starting OTM may keep the Gap inside your trading range.
Just some ideas to churn...
Good PocketChange!
I confess I am not able to check your proposal because I am not familiar with that kind instruments.
I just "suspect" that using stocks there is more flexibility in creating the optimal order size and the step "Delta".
But I may be wrong.
As I said in the first post, I am coding right know a small "calculator" which would compute what I have been calling the "worst scenario profit, conditional on exercise" (hope this name makes sense).
This profit does not include what the bot gains from oscillation, and the possibility of "slippage" which increases the distance from the strike.
Actually I posted a screenshot of the calculator to make more understandable the general algorithm.
The funny thing is that as soon as I saw it posted I spotted a bug and deleted, in big shame and embarrassment, the post!
Now I will retry, but keep in mind I am coding it right now in VS. It's not debugged and may contain all sort of the most stupid and embarrassing errors. If you see errors please tell me so that I can correct it.
=> One thing. Before bothering Raymund, is anybody able to drop a code snippet for option exercise (IB API) ? I would like to prepare to make some tests to see what are the practical problems and dilemma as heech rightly suggests ...
T