Autohiding for Fibonacci Retracements With Extentions - ThinkOrSwim Programming | futures io social day trading
futures io futures trading


Autohiding for Fibonacci Retracements With Extentions
Updated: Views / Replies:1,669 / 3
Created: by zentrade Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Autohiding for Fibonacci Retracements With Extentions

  #1 (permalink)
Elite Member
Wilson, NC
 
Futures Experience: Intermediate
Platform: thinkorswim
Favorite Futures: NQ
 
zentrade's Avatar
 
Posts: 18 since Dec 2010
Thanks: 1 given, 5 received

Autohiding for Fibonacci Retracements With Extentions

Can anyone with great thinkscript skills modify or know how to modify the "Fibonacci Retracements With Extentions" script in the downloads section to auto hide the lines that are far away from current price? I'm not good with thinkscript.

Reply With Quote
 
  #2 (permalink)
Elite Member
Portland, OR
 
Futures Experience: None
Platform: tos
Favorite Futures: NQ, SB, 6J, CL, GC
 
Massive l's Avatar
 
Posts: 1,458 since Mar 2011
Thanks: 922 given, 1,821 received

I didn't know that was a script, I just thought it was a drawing.

I don't know about auto hiding n points away from price or anything but Prospectus has
show yes or no in his auto fib script.

# Automatic Opening Range and Fibonacci Levels
# By Prospectus @ Read the Prospectus
# Inspired by Trader-X @ Trader-X...views from a distorted mind.
#
# This Thinkscript is designed to plot the OR high, low,
# 50% fib retrace, and fib extensions for the current day.
# This will only work correctly on time-based charts,
# where the OR timeframe is divisible by the bar period
# e.g. 30 minute OR, 10 min bars. An extra fib extension
# may be used if desired to create a target zone.
#
def na=double.nan;
#
# Define time that OR begins (in hhmm format,
# 0930 is the default):
#
input ORBegin = 0930;
#
# Define time that OR is finished (in hhmm format,
# 10:00 is the default):
#
input OREnd = 1000;
#
# Input first and second fib extension levels
# (default 1.382, 1.621):
#
Input FibExt1=1.382;
Input FibExt2=1.621;
#
# Show Today only? (Default Yes)
#
input ShowTodayOnly={"No", default "Yes"};
def s=ShowTodayOnly;
#
# Show Second fib extension? (Default No)
#
input ShowFibExt2={default "No", "Yes"};
def sf2=ShowFibExt2;
#
# Create logic for OR definition:
#
Def ORActive = if secondstilltime(OREnd)>0 AND secondsfromtime(ORBegin)>=0 then 1 else 0;
#
# Create logic to paint only current day post-open:
#
def today=if s==0 OR getday()==getlastday() AND secondsfromtime(ORBegin)>=0 then 1 else 0;
#
# Track OR High:
#
Rec ORHigh = if ORHigh[1]==0 or ORActive[1]==0 AND ORActive==1 then high else if ORActive AND high>ORHigh[1] then high else ORHigh[1];
#
# Track OR Low:
#
Rec ORLow = if ORLow[1]==0 or ORActive[1]==0 AND ORActive==1 then low else if ORActive AND low<ORLow[1] then low else ORLow[1];
#
# Calculate OR width:
#
Def ORWidth = ORHigh - ORLow;
#
# Calculate fib levels:
#
Def fib_mid = (ORHigh+ORLow)/2;
Def fib_ext_up1 = ORHigh + ORWidth*(FibExt1 - 1);
Def fib_ext_down1 = ORLow - ORWidth*(FibExt1 - 1);
Def fib_ext_up2= ORHigh + ORWidth*(FibExt2 - 1);
Def fib_ext_down2 = ORLow - ORWidth*(FibExt2 - 1);
#
# Define all the plots:
#
Plot ORH=if ORActive OR today<1 then na else ORHigh;
Plot ORL=if ORActive OR today<1 then na else ORLow;
Plot FibMid=if ORActive OR today<1 then na else fib_mid;
Plot FibExtUp1=if ORActive OR today<1 then na else fib_ext_up1;
Plot FibExtDown1=if ORActive OR today<1 then na else fib_ext_down1;
Plot FibExtUp2=if ORActive OR today<1 OR sf2<1 then na else fib_ext_up2;
Plot FibExtDown2=if ORActive OR today<1 OR sf2<1 then na else fib_ext_down2;
#
# Formatting:
#
ORH.setdefaultcolor(color.green);
ORH.setStyle(curve.Long_DASH);
ORH.setlineweight(3);
ORL.setdefaultcolor(color.red);
ORL.setStyle(curve.Long_DASH);
ORL.setlineweight(3);
FibMid.setdefaultcolor(color.gray);
FibMid.setStyle(curve.SHORT_DASH);
FibMid.setlineweight(3);
FibExtUp1.setdefaultcolor(color.green);
FibExtUp1.setStyle(curve.SHORT_DASH);
FibExtUp1.setlineweight(2);
FibExtDown1.setdefaultcolor(color.red);
FibExtDown1.setStyle(curve.SHORT_DASH);
FibExtDown1.setlineweight(2);
FibExtUp2.setdefaultcolor(color.green);
FibExtUp2.setStyle(curve.SHORT_DASH);
FibExtUp2.setlineweight(1);
FibExtDown2.setdefaultcolor(color.red);
FibExtDown2.setStyle(curve.SHORT_DASH);
FibExtDown2.setlineweight(1);

Psychology > Strategy ≥ Money
Reply With Quote
The following user says Thank You to Massive l for this post:
 
  #3 (permalink)
Elite Member
Wilson, NC
 
Futures Experience: Intermediate
Platform: thinkorswim
Favorite Futures: NQ
 
zentrade's Avatar
 
Posts: 18 since Dec 2010
Thanks: 1 given, 5 received


Thanks Massive for this script. But the lines in that script don't autohide like I was looking for. I wonder If what I'm looking for is even possible.

Reply With Quote
 
  #4 (permalink)
Elite Member
Los Angeles, CA
 
Futures Experience: Intermediate
Platform: TOS, TradeStation
Favorite Futures: TF
 
Posts: 6 since Sep 2012
Thanks: 10 given, 1 received

Thanks for this script -- just ran across it. It wasn't exactly what I was looking for either -- BUT -- it gave me enough of a start so that I could finish the job on my own. Like all repetitive and learned activities, learning how to code in thinkscript (or any other scripting language ) just takes practice and more practice. Seeing good examples of code like this has sure helped me more than any other thing in terms of getting started in learning this language.

Reply With Quote

Reply



futures io > > > > > Autohiding for Fibonacci Retracements With Extentions

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fibonacci Queen David_R Trading Reviews and Vendors 41 September 18th, 2017 11:55 PM
Fibonacci Extensions DavidHP NinjaTrader Programming 7 May 19th, 2010 11:50 PM
Drawing Fib Retracements in NT 7 - 2 charts Todd Traders Hideout 4 May 11th, 2010 09:26 AM
Fibonacci Retracements George NinjaTrader Programming 8 March 6th, 2010 06:19 PM
Fibonacci Prtester Off-Topic 1 June 13th, 2009 10:32 AM


All times are GMT -4. The time now is 05:26 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-13 in 0.11 seconds with 19 queries on phoenix via your IP 54.92.194.75