Auto Fib (Fibonacci) Levels Indicator for ThinkorSwim

B

Buckbull

Member
@tomsk the whole point of a touch is 90% of the time on the 5 min chart when the stock rips up and touches the 161.8% its quite the resistance and it does a nice pullback i will instantly buy the put expiring that friday and run it down 1 or 2 fib levels ,believe it or not i grew my account this past week by 100% along with my brother and sister . Its a great technique. i want a watchlist that will alert me (a stock will pop up in it) when it hits the 161.8 on the 5 min . Then i will goto that stock and asses the situation . Dont know if you do options but the technique is great. Look at NFLX on 1/24/20 the 5 min chart the high was 161.8 as soon as i saw a hard time getting through i brought the put . As you can imagine it was a 400% trade. So what Im getting at if you can come up with something it will greatly benefit you as well . Im a moron when it comes to making scripts . But I do know what works but I cant make it .
 
B

Buckbull

Member

@BLT is there a setting im missing for it to become more responsive to the new high ? Because its 92.45 now this is ABT. Thanks
 
B

BLT

Member
@tomsk the whole point of a touch is 90% of the time on the 5 min chart when the stock rips up and touches the 161.8% its quite the resistance and it does a nice pullback i will instantly buy the put expiring that friday and run it down 1 or 2 fib levels ,believe it or not i grew my account this past week by 100% along with my brother and sister . Its a great technique. i want a watchlist that will alert me (a stock will pop up in it) when it hits the 161.8 on the 5 min . Then i will goto that stock and asses the situation . Dont know if you do options but the technique is great. Look at NFLX on 1/24/20 the 5 min chart the high was 161.8 as soon as i saw a hard time getting through i brought the put . As you can imagine it was a 400% trade. So what Im getting at if you can come up with something it will greatly benefit you as well . Im a moron when it comes to making scripts . But I do know what works but I cant make it .
To hopefully provide the results that you want, @Buckbull, you can append @tomsk's code as modified to the bottom of the swinghl_fibs_v15 script as follows:
def triggerLow = open > fib6 and low <= fib6;
def triggerHigh = open < fib6 and high >= fib6;
plot scan = triggerLow or triggerHigh;

Then in the scanner, add this as a custom study filter:
SwingHL_Fibs_v15()."scan" is true

Although you seem unhappy with the modifications to this code, I did them to respond to requests so that users may understand the code and eventually be able to do things on their own.

As to your last request as to responsiveness, you can adjust the inputs: swingback1 and/or swingforward1.
 
T

tomsk

Well-known member
VIP
@BLT Much appreciated in looking through this, a real novel approach in carving a workaround to the scanner complexity problem encountered earlier. Applying those three modified statements to V1.5 (I named this modified approach V1.5a on my end), I was able to obtain 42 results running a scan against the S&P 500 on a daily aggregation. A very nice fresh approach, very much obliged.
 
B

Buckbull

Member
Ok let me see if I got this right .....

Im copying the v15 script
then go in scan tab goto add study paste it in Thinkscript editor

then add this script to the bottom of it
like so.
def triggerLow = open > fib6 and low <= fib6;
def triggerHigh = open < fib6 and high >= fib6;
plot scan = triggerLow or triggerHigh;






Then I do this and its done ? I think I did it right . lol Probably not .

 
B

BLT

Member
No, you add the code to the study and save it. Then you go to the scanner and add the scanner code provided.
 
B

Buckbull

Member
No, you add the code to the study and save it. Then you go to the scanner and add the scanner code provided.
ok i added this to the actual study and saved it

def triggerLow = open > fib6 and low <= fib6;
def triggerHigh = open < fib6 and high >= fib6;
plot scan = triggerLow or triggerHigh;

then i went to scanner clicked add study pulled it up and this comes up . Now is it right ?
 
B

Buckbull

Member
No, almost. In the scanner change the plot from lastswing to SCAN from the dropdown.
ok Done . Now If i want to do different fib levels i just go into study and change it to to the level I want correct ?
 
B

Buckbull

Member
Although you seem unhappy with the modifications to this code, I did them to respond to requests so that users may understand the code and eventually be able to do things on their own.
I am not unhappy at all , I have been looking for a thing like this for a long time . I 100% appreciate your time and help . Cant thank you enough !
 
E

ezrollin

Member
Wouldnt this be more likely to work on longer time frames? tks
 
Last edited:
B

Buckbull

Member
@BLT Scan worked good but im trying to figure out the right settings . Whats the definition of MaxBars1 ? Is it how far back it looks in time ?
 
B

BLT

Member
Actually maxbars1 can be deleted/ignored as it is not used in this version. When I coded this, I borrowed from code I had previously used, which I found did not need this limiter, and deleted it the rest of the code, but not the input maxbars1. Just use the inputs for swingback1 and/or swingforward1 to adjust the swings to your best use.
 
raghavag2004

raghavag2004

New member
2019 Donor
VIP
Thanks guys for giving a nice script V15, i've a query here is there any setting to show the Fib % bubble towards left side instead of changing the Time axis settings? @Buckbull
 
B

BLT

Member
Yes, at the input: bubble_mover, enter minus numbers until the bubbles are moved to the left to where you would like them.
 
L

lindosskier

New member
Hello, I have a certain fib level from the previous month plotted onto this month's chart. I want to scan for when the price crosses this level on an intraday basis, but the problem is, they both (Price and Fib) need to be on a monthly period, which doesn't help me on an intraday basis. Does anyone have a solution for that? thanks in advance
 

Top