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,785 views
    2. thumb_up 73 thanks given
    3. group 52 followers
    1. forum 111 posts
    2. attach_file 32 attachments




 
Search this Thread

Thinkscripts

  #71 (permalink)
jetablack4
New York/USA
 
Posts: 2 since Nov 2012
Thanks Given: 0
Thanks Received: 0

Hi optntdr13,

I would like to create a study that will allow me to graph a 90 day SMA of the Open, Close, High and Low and the 1 and 2 standard deviations for the Open, Close, High and Low of the past 90 days.

In total there will 5 lines the +2SD, +1SD, 90 day SMA, -1SD and -2SD. I do not want the Open, Close, High and Low graphed separately, rather, I want to use the average of them instead of the closing price.

I attached the excel spreadsheet I put together of this information if it will help you out. If you can help me with this it would be a great help. Thank you!

Attached Files
Elite Membership required to download: samplepivotchart (3).xlsx
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Exit Strategy
NinjaTrader
How to apply profiles
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
MC PL editor upgrade
MultiCharts
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
22 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #72 (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


jetablack4 View Post
Hi optntdr13,

I would like to create a study that will allow me to graph a 90 day SMA of the Open, Close, High and Low and the 1 and 2 standard deviations for the Open, Close, High and Low of the past 90 days.

In total there will 5 lines the +2SD, +1SD, 90 day SMA, -1SD and -2SD. I do not want the Open, Close, High and Low graphed separately, rather, I want to use the average of them instead of the closing price.

I attached the excel spreadsheet I put together of this information if it will help you out. If you can help me with this it would be a great help. Thank you!

you don't need a custom study for this, the BollingerBandSMA study built-in with ToS should give you what you need. add the study to your chart, then change the price type to Open or Close..etc .. the default is +/-2SD. add another study on top of it, and set the SD to +/-1SD and set it to same price type (Open, Close..etc). change the line colors and pattern until you get best visualization and you should be good to go,

cheers, RedK

Visit my NexusFi Trade Journal Reply With Quote
  #73 (permalink)
jetablack4
New York/USA
 
Posts: 2 since Nov 2012
Thanks Given: 0
Thanks Received: 0


This is very close to what I want, however, it is not exactly what I am looking for. I made a mistake in my prior post.

I want to use the standard deviation of the open, high, low and close prices for the past 90 days, rather than standard deviation of the average of those 4 prices for the past 90 days (price type = (O+C+H+L)/4). So where the bollinger bands are using 90 price points to determine the standard deviation, I want it to calculate 360 price points over the past 90 days.

Does this clarify? Thank you for your response

Reply With Quote
  #74 (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


jetablack4 View Post
This is very close to what I want, however, it is not exactly what I am looking for. I made a mistake in my prior post.

I want to use the standard deviation of the open, high, low and close prices for the past 90 days, rather than standard deviation of the average of those 4 prices for the past 90 days (price type = (O+C+H+L)/4). So where the bollinger bands are using 90 price points to determine the standard deviation, I want it to calculate 360 price points over the past 90 days.

Does this clarify? Thank you for your response

@jetablack4, methematically both are the same ..
Average of the 360 points, is the same as the 90-period average of the average of the 4 points. so you can safely use a BB of the length you need, and set the price type to (H+L+C+O)/4

you can test this in your spreadsheet to validate .. from there you can decide what is the SMA and which BB you'd like to use,

hope this helps,
RedK

Visit my NexusFi Trade Journal Reply With Quote
  #75 (permalink)
EventHorizon
New York N.Y.
 
Posts: 2 since Nov 2012
Thanks Given: 0
Thanks Received: 0

Hello T13
I am new to this forum and this is my first question did look around the site for
the answer but no luck additionally did some internet search and Tos learning
center and found some content on subject but in my opinion it was not complete.

A exact video or typed explanation and execution of trailing stops on single call or put options on the thinkorswim platform would be most appreciated.
I am about 90 % in the know with respect to previous queries I just cant fully understand

This problem has stopped my ability to move forward in a trading system that fits my style.

Thanks in advance for any assistance with this question

Respectfully
EventHorizon

Reply With Quote
  #76 (permalink)
Lepanto
Monrovia, California USA
 
Posts: 8 since Jul 2012
Thanks Given: 26
Thanks Received: 4

Hi RedK,

I have a Metastock code that applies a 20EMA to an Average True Range (20) on a histogram.
Can you help code this for TOS? Here's the code, as shared in a webinar:

0-(ATR(20)-Mov(ATR(20),20,E))

Would appreciate your assistance.

VR

Reply With Quote
  #77 (permalink)
 vit007 
toronto
 
Posts: 6 since Dec 2012

Hi Hi optntdr13.
Thanks for your effort helping other traders .
I find most of the traders biggest weakness to let profit run . Im looking for trailing stop for TOS. Ex AAPl So if Im in with 20 contracts I wont to sell first 10 at +0.2 and trail the rest 10 at 0.3 .I do this manually but in a fust moving market its to much and I tend to take profits prematurely . If you have some thing like this or similar it would be great . Or I can pay you to cod it.
Thanks in advance
Vit

Reply With Quote
  #78 (permalink)
shanemcdonald28
new york
 
Posts: 355 since Mar 2012
Thanks Given: 665
Thanks Received: 582

hi
Would it be possible to route a signal from a TOS strategy to place the trades at another broker through ninja trader ?
I like a strategy in TOS, but the strategies wont allow you to actually place the trade at TOS. I dont understand the purpose of the strategies if you cant actually use them !

anyway, is something like that possible ?

I asked this question in the TOS thinkscript chat room and was lectured about asking questions about "other" platforms.

TOS has so many obstacles for futures trading, IMO.

thanks

shane

Reply With Quote
  #79 (permalink)
 
plethora's Avatar
 plethora 
Los Angeles, CA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Rithmic
Trading: GC
Posts: 629 since Dec 2010
Thanks Given: 1,174
Thanks Received: 425


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 optntdr-

Could you possibly develop a simple buy/sell strategy for the stock Momentum Bars. They work exceptionally well on high-flyers.

I just posted a boat load of screenshots on another TOS thread.

Much appreciation.

TIA.

Reply With Quote
  #80 (permalink)
 Cloudy 
desert CA
 
Experience: Intermediate
Platform: NT7, various
Broker: various, TDA
Trading: NQ,ES
Posts: 2,124 since Jul 2011
Thanks Given: 2,396
Thanks Received: 1,748



Cloudy View Post
Hi Redk, thanks for the trade ribbon indicator. I'm working on translating it to NT. The idea of taking another average on the WMA looks very interesting and helpful when graphically shown. Could be a nice scalping indicator.

TOS is one of the best all-for-one platforms today I would agree. It was my first broker and platform. They recently opened up new commodity futures and other chat rooms yesterday where live audio can be heard from the pit floor.


RedK View Post
@Cloudy, thanks for that .. i know some on the forum will appreciate your effort converting to NT ..

another intriguing concept i also looked at is to use a single WMA of some length and combine it with same WMA length but shifted by one period. You get signals from the crossing..

a quick note, in the Trader_Ribbon, the Mid line has a big role though, as it acts as a "reversal threshold" .. so can be used to indicate exit loss levels.

glad you find value in that concept,
RedK



I got to finishing up a indicator dual average of WMA with a ribbon option for NT. It's similar in idea to the original tRibbon for TOS by @RedK . Here at:

But I like the settings in this one also. Credit to modified code of Fat Tail's triggerlines indicator:

First MA is EMA(5) of WMA(7).
Second MA is EMA(4) of WMA(30).

Then there is the option to switch it to a ribbon. Settings to do so are shown in the .jpg ; Enjoy.

Attached Thumbnails
Click image for larger version

Name:	wma2avg_settings.JPG
Views:	287
Size:	272.6 KB
ID:	104085  
Attached Files
Elite Membership required to download: wma2avg.zip
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