Automated trading with stocks and 2 options

"First of all note that every time the robot closes the position this happens when there a price reversal. "
If you have a robot that could actually figure out that "there is a price reversal" before it happens, you would already be very rich... you don't need to do ANYTHING except trade the price reversal.

But unfortunately, such robots do not, can not exist. Maybe Goldman Sachs has spent a few billion dollars developing a high-frequency version that can take advantage of a price reversal that lasts a few seconds long.
 
Quote from heech:

If you have a robot that could actually figure out that "there is a price reversal" before it happens, you would already be very rich... you don't need to do ANYTHING except trade the price reversal.

But unfortunately, such robots do not, can not exist. Maybe Goldman Sachs has spent a few billion dollars developing a high-frequency version that can take advantage of a price reversal that lasts a few seconds long.

It does not need to "figure out" anything.

Imagine the "long" side. Since it is averaging down (protected by the options) to the max number of shares, whenever there is a price reversal which causes to exceed a small profit (eg. 20 $), it closes. This way you have covered the expenses (related to shares) to go down to that price level.

(This is possible because the size of the last orders is *much larger * compared to the size of the previous orders. This is the crucial point.)

Do not know if it's clear what I mean.
 
Quote from tommaso:


Imagine the "long" side. Since it is averaging down (protected by the options) to the max number of shares, whenever there is a price reversal which causes to exceed a small profit (eg. 20 $), it closes. This way you have covered the expenses (related to shares) to go down to that price level.
No offense, but it's clear to me you haven't gone very far with this strategy. I doubt you've actually paper-traded it, to this point. It simply will not work the way *you* think it does.

Paper-trade it, and you'll see the dilemma. If your robot buys the underlying before break-even point (on the option premium), you might lose money if the price keeps going. If your robot is waiting for the break-even point, you might miss out on oscillations *and* still lose money on the option premium.
 
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
 

Attachments

Your chart shows a final stock price of $28.03.

If TWM moves 20% in the next 3 weeks, then absolutely, your long volatility position will be profitable.
 
Quote from Maverickz:

I think I can clarify the question I think he is asking.

If you buy a 36Put and a 35Call what do you do if the stock stays between the two strikes.

It might also help to discuss the amount of time you are buying in your options since the more time you have the less likely a stock will stay between the strikes.
--------------------------------------------------------------------------------------------



If this isn't gamma scalping it is close enough that I think you may still run into the same pitfalls. For instance if you buy your options when volatility is high but it starts dropping while you are running this play you may lose value in your options faster than you make it by buying and selling the underlying stock shares....especially after commissions are figured in. Also as mentioned above if the underlying doesn't move much during your time frame it could also be detrimental.

I would also be interested to know the exit strategy once you have bought or shorted your 10k shares.

HI Maverickz,

I think i missed to reply to your interesting observations.

If the price would oscillate in a narrow range it's a good thing for the bot which be realizing profits. Unfortunately what happens is just the opposite; especially twm specifically does not seem that calm. This is an ultrashort and it's not easy to keep it flat..

It would be interesting to think also what are the most suitable candidates for this game. I have a good feeling about twm, but there may be pitfalls and better candidates. Any suggestion?

I think we want something very liquid and volatile. Right?

About the gamma scalping, I confess still have problem to understand the relevancy of the arguments. Probably I need to think more on that. I though that considering the intrinsic value only and subtracting the entire cost of the premium, in the "worst scenario", would exempt me from further considerations.
I need some more explanations on this point to understand. (But perhaps will be more clear when testing.)

About the exit strategy, I am not sure what you mean. I think we said we exercise one set of options and may even let in place the other one which is worthless (just in case!) Do you have something in mind?
 
I think the exit issue is you are locked in the game until you have scaled up to 10000 shares either long or short before your options expire. Based on your trade plan approx 20 % movement up or down.

If the market oscilates between say 32 and 38 you never scale up nor do you capture enough oscilation profits to cover the decay on your 40K of options.

You are churning less than 5% of your net options position in shares capturing 10.0 in profits to offset decay.

Do you let it ride a set amount of time, oscillation cycles, loss in options value before you just close out and exit.
 
Quote from PocketChange:

I think the exit issue is you are locked in the game until you have scaled up to 10000 shares either long or short before your options expire. Based on your trade plan approx 20 % movement up or down.

If the market oscilates between say 32 and 38 you never scale up nor do you capture enough oscilation profits to cover the decay on your 40K of options.

You are churning less than 5% of your net options position in shares capturing 10.0 in profits to offset decay.

Do you let it ride a set amount of time, oscillation cycles, loss in options value before you just close out and exit.


Hmm, perhaps making it more narrow may help (?) Here is another plan attempt.

Yes, perhaps its a good idea to close it early in case it's passing too much time.

Anyway sec like twm are quite wild and I think that most of the time we should pull it out... after all we cannot win each and every time (or someone would be soon chasing us! :-))
 

Attachments

Back
Top