NexusFi: Find Your Edge


Home Menu

 





Thinkscripts


Discussion in ThinkOrSwim

Updated
      Top Posters
    1. looks_one RedK with 20 posts (15 thanks)
    2. looks_two pbenson68 with 15 posts (1 thanks)
    3. looks_3 RemoWilliams with 5 posts (1 thanks)
    4. looks_4 courier12 with 5 posts (0 thanks)
      Best Posters
    1. looks_one optntdr13 with 8.3 thanks per post
    2. looks_two Silvester17 with 8 thanks per post
    3. looks_3 Massive l with 3 thanks per post
    4. looks_4 RedK with 0.8 thanks per post
    1. trending_up 77,263 views
    2. thumb_up 73 thanks given
    3. group 52 followers
    1. forum 111 posts
    2. attach_file 32 attachments




 
Search this Thread

Thinkscripts

  #21 (permalink)
 
Cudashark's Avatar
 Cudashark 
Sarasota Florida
 
Experience: Advanced
Platform: TOS,NT, Jigsaw
Trading: Treasuries/ZB
Posts: 33 since Dec 2011
Thanks Given: 18
Thanks Received: 75

Dear optntdr13,

Thanks in advance for your altruistic nature and your willingness to help others with TOS programming.

I trade ZN futures with level II Bid/Ask screens. I am interested in “Depth of Market” (DOM) “Accumulated Volume” (ACV) ratios.

For example; when the fifth position from the price the Bid is 600> and the Ask in the same position is 185>.

I would like to track the ratio some way along with the price action.

My goal would be to pick up on the actual buy/sell volume in relation to the DOM to see where large traders are pulling the price.

Have you any ideas on DOM, ACV ?

This may help to see where I'm comming from.

seekingalpha.com/article/161854-reading-market-volume-flow


Thanks

Ray

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Deepmoney LLM
Elite Quantitative GenAI/LLM
Better Renko Gaps
The Elite Circle
Online prop firm The Funded Trader (TFT) going under?
Traders Hideout
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
Build trailing stop for micro index(s)
Psychology and Money Management
 
  #22 (permalink)
moonmist
New York
 
Posts: 1 since Dec 2011
Thanks Given: 1
Thanks Received: 0


optntdr13 View Post
I just wanted to let folks know that if you are looking for something specific, chances are I have it or wrote it and am more than happy to share with any and all. If you would like to have any T.....D......ARK stuff, I have coded almost every single one of them but won't share publically due to the maketstudies goons I will however send via PM or e-mail and am happy to do so.

Hi,

Is there any indicator that can detect RSI divergences ? This problem has been around for many years. For Ninja Trader, there are D3Spotter and DivergenceSpotter. Are there any thinkscripts that can do something similar ?

Thanks in advance.

Reply With Quote
  #23 (permalink)
 binary 
Des Moines
 
Experience: Intermediate
Platform: td ameritrade
Trading: gold,oil
Posts: 716 since Feb 2012
Thanks Given: 270
Thanks Received: 286



optntdr13 View Post
I just wanted to let folks know that if you are looking for something specific, chances are I have it or wrote it and am more than happy to share with any and all. If you would like to have any T.....D......ARK stuff, I have coded almost every single one of them but won't share publically due to the maketstudies goons I will however send via PM or e-mail and am happy to do so.

hi optntdr13,
i am new to thinkscript. i would appreciate a little bit of debugging help. i am trying to code an opening range; for a certain timeframe eg; 8.30 to 9.30 am. i thought i coded it right. but it picks lows of its own will. here is the code. can you please point out any mistake you see.
#############


input ORCalculationStart = 0830;
input ORCalculationEnd = 0930;

Def ORActive = if secondsTillTime(ORCalculationEnd) > 0 AND secondsFromTime(ORCalculationStart) >= 0 then 1 else 0;

Rec ORHighBWNTimes = if( ORHighBWNTimes[1] == 0 or ORActive[1] == 0 AND ORActive == 1 , high , ORHighBWNTimes[1]);
Rec ORLowBWNTimes = if( ORLowBWNTimes[1] == 0 or ORActive[1] == 0 AND ORActive == 1, low , ORLowBWNTimes[1]);


Plot ORHigh = HighestAll(ORHighBWNTimes);
ORHigh.SetDefaultColor(color.green);
ORHigh.SetStyle(curve.firm);
ORHigh.SetLineWeight(1);

Plot ORLow = LowestAll(ORLowBWNTimes);
ORLow.SetDefaultColor(color.red);
ORLow.SetStyle(curve.firm);
ORLow.SetLineWeight(1);

#############

Reply With Quote
  #24 (permalink)
cycomyco
riverdale georgia
 
Posts: 5 since Aug 2012
Thanks Given: 0
Thanks Received: 0

Does anybody know how how to create a study for TOS that sends an alert when a candlestick UP/Down reaches a specified size/amount.

This will be for the day 1m chart, Also it would be nice if it can mark it on the chart.

Let me know if there is a TOS import for this already or if some one can write the code down for me thank you.

Reply With Quote
  #25 (permalink)
 pbenson68 
San Diego CA
 
Experience: Beginner
Platform: TOS
Trading: StocKs
Posts: 26 since May 2012
Thanks Given: 14
Thanks Received: 5


optntdr13 View Post
I just wanted to let folks know that if you are looking for something specific, chances are I have it or wrote it and am more than happy to share with any and all. If you would like to have any T.....D......ARK stuff, I have coded almost every single one of them but won't share publically due to the maketstudies goons I will however send via PM or e-mail and am happy to do so.

Hey Much thanks for doing this.
I am still learning Thinkscript. Would you be able to take a crack at the following CCIcounter found at this link.



It's a bar counter for CCI. I will eventually figure it out but I thought I'd ask.

Reply With Quote
  #26 (permalink)
 
RedK's Avatar
 RedK 
Dubai, UAE
 
Experience: Intermediate
Platform: TOS, TradeStation
Broker: OX, TradeStation
Trading: Stocks & Basic Options
Posts: 171 since May 2012
Thanks Given: 44
Thanks Received: 145


pbenson68 View Post
Hey Much thanks for doing this.
I am still learning Thinkscript. Would you be able to take a crack at the following CCIcounter found at this link.



It's a bar counter for CCI. I will eventually figure it out but I thought I'd ask.

i'll try to help, it looks interesting and fairly easy in ToS script. but i got lost in the thread.. if you can explain in a simple way how the counting works? i see --11235 and some dots .. so not sure what's the logic behind it and what's the signal we need to capture..

Cheers,
RedK

Visit my NexusFi Trade Journal Reply With Quote
  #27 (permalink)
Vince
Chicago, IL USA
 
Posts: 4 since Sep 2012
Thanks Given: 1
Thanks Received: 0

Hi optntfr13! I am new to forum and relatively new to trading. I am learning to trade the emini thru TOS and wanted to have the charts to automatically plot the monthly resistance/support, the weekly resistance & support, the daily resistance & support and, the first 15 min high/low. Have you come across or have written scripts for this purpose? Your guidance would be greatly appreciated.

Thanks,

Vince

Reply With Quote
  #28 (permalink)
 
RedK's Avatar
 RedK 
Dubai, UAE
 
Experience: Intermediate
Platform: TOS, TradeStation
Broker: OX, TradeStation
Trading: Stocks & Basic Options
Posts: 171 since May 2012
Thanks Given: 44
Thanks Received: 145


Vince View Post
Hi optntfr13! I am new to forum and relatively new to trading. I am learning to trade the emini thru TOS and wanted to have the charts to automatically plot the monthly resistance/support, the weekly resistance & support, the daily resistance & support and, the first 15 min high/low. Have you come across or have written scripts for this purpose? Your guidance would be greatly appreciated.

Thanks,

Vince

Hi Vince, there are 3 pivot studies built-in with ToS, Woddies & Person's beside ToS's own pivot studies.. did you look into using these? i think all 3 will do monthly, weekly and daily levels.
hope this helps,
RedK

Visit my NexusFi Trade Journal Reply With Quote
  #29 (permalink)
Vince
Chicago, IL USA
 
Posts: 4 since Sep 2012
Thanks Given: 1
Thanks Received: 0

Thanks RedK! I just explored your suggestion and I am thinking this is close but not exactly what I was looking for. The three you referenced do provide pivot points based on specific formulas. I am looking for just the current monthly high/low, the current weekly high/low and the daily high/low to automatically plot. In addition the 15 mihigh/low form the open.

Any thoughts/

Regards,

Vince

Reply With Quote
  #30 (permalink)
 
RedK's Avatar
 RedK 
Dubai, UAE
 
Experience: Intermediate
Platform: TOS, TradeStation
Broker: OX, TradeStation
Trading: Stocks & Basic Options
Posts: 171 since May 2012
Thanks Given: 44
Thanks Received: 145


Hi Vince, can be done though the resulting chart can look out of proportions as you need to look at the smallest aggregation to view all the lines.
One thought, have you tried the Price_levels study in the elite download section.. You will get the highest/lowest regardless of aggregation. If it still doesn't help, let me know and I'll see what I can come up with.
cheers, RedK

Visit my NexusFi Trade Journal Reply With Quote




Last Updated on March 25, 2019


© 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