NexusFi: Find Your Edge


Home Menu

 





Need a solid TOS developer to help me


Discussion in ThinkOrSwim

Updated
      Top Posters
    1. looks_one kjhosken with 8 posts (4 thanks)
    2. looks_two Imaginativeone with 4 posts (0 thanks)
    3. looks_3 Bonsaitrader with 3 posts (0 thanks)
    4. looks_4 mtzimmer1 with 2 posts (1 thanks)
    1. trending_up 8,894 views
    2. thumb_up 5 thanks given
    3. group 6 followers
    1. forum 17 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
mgandhi
Morganville, NJ
 
Posts: 2 since Jun 2019
Thanks Given: 0
Thanks Received: 0

Need someone to help me develop some code that will alert me when specific parameters are met.


Reply With Quote

 
  #2 (permalink)
 kjhosken 
Seattle, WA/USA
 
Experience: Intermediate
Platform: TOS, TS
Trading: Forex, crude
Posts: 96 since Sep 2016
Thanks Given: 7
Thanks Received: 35

I might be able to give you a hand


Follow me on X Reply With Quote
Thanked by:
  #3 (permalink)
 
mtzimmer1's Avatar
 mtzimmer1 
Upstate NY
Legendary Recovering Method Hopper
 
Experience: Intermediate
Platform: TOS
Broker: TD Ameritrade
Trading: Equities, Treasuries, Gold
Posts: 840 since Dec 2018
Thanks Given: 2,201
Thanks Received: 1,918


I am willing to help as well!


Follow me on X Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #4 (permalink)
 
mtzimmer1's Avatar
 mtzimmer1 
Upstate NY
Legendary Recovering Method Hopper
 
Experience: Intermediate
Platform: TOS
Broker: TD Ameritrade
Trading: Equities, Treasuries, Gold
Posts: 840 since Dec 2018
Thanks Given: 2,201
Thanks Received: 1,918


logosz View Post
Hello



I need to code in TOS the following



I d like to plot a chart for gamma of exact option I chose. plus the volatility of this gamma.

and then I need to analyze these two charts with some common indicators.



Can you do this for me?

Price?



I could be wrong but I believe there is no way to access specific options data in thinkscript as of now.


Follow me on X Visit my NexusFi Trade Journal Reply With Quote
  #5 (permalink)
 kjhosken 
Seattle, WA/USA
 
Experience: Intermediate
Platform: TOS, TS
Trading: Forex, crude
Posts: 96 since Sep 2016
Thanks Given: 7
Thanks Received: 35


mtzimmer1 View Post
I could be wrong but I believe there is no way to access specific options data in thinkscript as of now.

the greeks are a newer built-in indicator in TOS. Search for options rho, options gamma, etc. Without being more specific, try this on for size:

 
Code
declare lower;
def gamma = gamma();

input longLength = 252;
input shortLength = 10;

#Plot Implied Volatility
def ImpVol = IMP_VOLATILITY();
#Plot 10 day IV
plot HV = stdev(gamma, shortLength) * Sqrt(shortLength * longLength / (shortLength - 1));
HV.SetDefaultColor(GetColor(0));


Follow me on X Reply With Quote
Thanked by:
  #6 (permalink)
Bonsaitrader
Brooklyn NY
 
Posts: 4 since Nov 2019
Thanks Given: 7
Thanks Received: 1

Good morning,
Looking for some mark on the upper chart that would indicate when a higher low than the past 2 bars occurs
and a lower high then 2 bars ago.
Also the reverse - a lower high from 2 bars ago and higher than 2 bars ago.
Ideally, a dot above the high and/or a dot below low of the second bar if that is possible.
So your looking for a three bar set-up.
Thanks


Reply With Quote
  #7 (permalink)
 kjhosken 
Seattle, WA/USA
 
Experience: Intermediate
Platform: TOS, TS
Trading: Forex, crude
Posts: 96 since Sep 2016
Thanks Given: 7
Thanks Received: 35


Bonsaitrader View Post
Good morning,
Looking for some mark on the upper chart that would indicate when a higher low than the past 2 bars occurs
and a lower high then 2 bars ago.
Also the reverse - a lower high from 2 bars ago and higher than 2 bars ago.
Ideally, a dot above the high and/or a dot below low of the second bar if that is possible.
So your looking for a three bar set-up.
Thanks

Not sure if I fully understand what you are looking for, but this is what I interpreted. Take a look. If no good please send a picture.

 
Code
input _price = high; # for plot customizing
input price_= low; # for plot customizing
def condition1 = high < highest(high,2)[1];
def condition2 = low > lowest(low,2)[1];
def condition3 = high > highest(high,2)[1];
def condition4 = low < lowest(low,2)[1];
plot one = if (condition1 and condition2) then price_ else double.nan;
one.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
plot two = if (condition3 and condition4) then _price else double.nan;
two.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);


Follow me on X Reply With Quote
Thanked by:
  #8 (permalink)
Bonsaitrader
Brooklyn NY
 
Posts: 4 since Nov 2019
Thanks Given: 7
Thanks Received: 1

Thanks
I'm not seeing any indication of the condition on my chart - ESZ19, How should the conditions if met show itself?
I appreciate your efforts in this matter


Reply With Quote
  #9 (permalink)
 kjhosken 
Seattle, WA/USA
 
Experience: Intermediate
Platform: TOS, TS
Trading: Forex, crude
Posts: 96 since Sep 2016
Thanks Given: 7
Thanks Received: 35

It would be arrows. But like I said, I'm not really 100% sure what you are asking for. Also I wrote tat at work, so no clue if it works correctly


Follow me on X Reply With Quote
  #10 (permalink)
Bonsaitrader
Brooklyn NY
 
Posts: 4 since Nov 2019
Thanks Given: 7
Thanks Received: 1


Hello,
If one was to look at the high of 11/19 on the ESZ19 and the following bar, this is what I am hoping to capture. I'm not sure how to share a screenshot of the bars(but, I will figure that out). yours


Reply With Quote




Last Updated on May 18, 2020


© 2026 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 - Downloads - Top
no new posts