NexusFi: Find Your Edge


Home Menu

 





EL Strategy with auto buy (Call/Put) ITM option strike


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one DirtyGoats with 3 posts (0 thanks)
    2. looks_two ABCTG with 2 posts (0 thanks)
    3. looks_3 Anka Software with 1 posts (0 thanks)
    4. looks_4 greymatter with 1 posts (0 thanks)
    1. trending_up 4,399 views
    2. thumb_up 0 thanks given
    3. group 5 followers
    1. forum 7 posts
    2. attach_file 0 attachments




 
Search this Thread

EL Strategy with auto buy (Call/Put) ITM option strike

  #1 (permalink)
DirtyGoats
Lakeville
 
Posts: 11 since Dec 2017
Thanks Given: 3
Thanks Received: 1

Evening, All. It's now been 3yrs since i've posted this and still wondering if it's possible.

I'm 'still' a beginner to EasyLanguage and have been running a Strategy (Algorithm) and looking to take it to the next level: auto selection of ITM Calls/Puts that are 1 strike from the current underlying price.

My current Strategy uses the Price Series Provider function (and 10 windows: 5 calls/5puts) where I have to open the TradeStation: Option Station Pro window...find my strike price of choice...right click it (copy symbol)...and then go back to each chart and paste that symbol (example: SPY 180209C267) into the "Type a Symbol/Command" and hit enter. Not difficult by any means. But if the price of the underlying really starts to move, then I have to repeat that process over and over.

I've been reading the EasyLanguage reference guide...watching MarkPlex videos....and I can't come up with the "how to" to connect the dots.

So I guess my first question is:
Can the automation of selecting an ITM contract be possible within a Strategy/Indicator?
...and then the follow up...
If yes, could someone kindly toss me a bone (link/manual/keywords/example) of how to code this?

Appreciate your time in reading and providing comments.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
What broker to use for trading palladium futures
Commodities
How to apply profiles
Traders Hideout
Trade idea based off three indicators.
Traders Hideout
REcommedations for programming help
Sierra Chart
Better Renko Gaps
The Elite Circle
 
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629


DirtyGoats,

you might find the OptionChainProvider Class useful: https://community.tradestation.com/Discussions/Topic.aspx?Topic_ID=153143.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
  #4 (permalink)
DirtyGoats
Lakeville
 
Posts: 11 since Dec 2017
Thanks Given: 3
Thanks Received: 1

Skimming it briefly, looks like a promising avenue. I appreciate the quick response.

Thank you.

Reply With Quote
  #5 (permalink)
 greymatter 
Johns Creek GA/USA
 
Experience: Intermediate
Platform: ThinkorSwim, IB
Trading: Emini ES
Posts: 6 since Aug 2016
Thanks Given: 49
Thanks Received: 0

I successfully imported the ELD, but I'm stuck after that. Are there any samples of using OptionChainProvider? I am a newbie with EL, and I'm not even sure how to instantiate it.

Reply With Quote
  #6 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

greymatter,

I am not sure there are any besides the demo posted in the forum thread, but you might want to take a look in the official TS forum.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
  #7 (permalink)
DirtyGoats
Lakeville
 
Posts: 11 since Dec 2017
Thanks Given: 3
Thanks Received: 1

It's been 3yrs and wondering if anyone has produced a better way/answer to my quest.

Reply With Quote
  #8 (permalink)
 Anka Software   is a Vendor
 
Posts: 19 since Jan 2013
Thanks Given: 0
Thanks Received: 9

"find my strike price of choice..."
If there are 'programmable' rules to find rules to find the strike price of your choice, the same can be programmed in the strategy. After selecting the strike price, the next step is 'synthesizing' or getting the the option symbol name from OptionChainProvider class, and subscribing a PSP to same, and further on opening orders on this symbol.

Reply With Quote




Last Updated on September 22, 2021


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts