NexusFi: Find Your Edge


Home Menu

 





FLIPPER_FISHER_CCI THINORSWIM ejoy


Discussion in ThinkOrSwim

Updated
    1. trending_up 962 views
    2. thumb_up 2 thanks given
    3. group 1 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread

FLIPPER_FISHER_CCI THINORSWIM ejoy

  #1 (permalink)
alagrande
glendale ca usa
 
Posts: 97 since Sep 2017
Thanks Given: 11
Thanks Received: 88

declare lower;
#FLIPPER_FISHER_CCI

def hh0 = Highest(high, 30);
def ll0 = Lowest(low, 30);
def result0 = if hh0 == ll0 then -100 else (hh0 - high) / (hh0 - ll0)* (-100);

plot WR0 = if result0 >= 0 then 30 else result0 +4;
#WR0.ASSignValueColor(if wr0 >WR0[1] then color.green ELSE if wr0<WR0[1] then color.RED else color.gray);
WR0.SETDefaultColor(COLOR.WHITE);
WR0.SETLineWeight(2);


input lengthPercent = 30;#60#30
input over_BoughtPercent = -20;
input over_SoldPercent = -80;
#input price = close;
input averageTypePercent = AverageType.WILDERS;
#William
PLOT MIDDLE = 0;
middle.setStyle(curve.LONG_DASH);
#PLOT line = -20;
#line.setPaintingStrategy(paintingStrategy.DASHES);

def hh = Highest(high, lengthPercent);
def ll = Lowest(low, lengthPercent);
def result = if hh == ll then -100 else (hh - close) / (hh - ll) * (-30);

plot WR = if result >= -20 then 20 else result;
WR.HIDE();
WR.ASSignValueColor(if wr >0 then color.green ELSE if wr <0 then color.RED else color.gray);


def hh_ = Highest(high, lengthPercent);
def ll_ = Lowest(low, lengthPercent);
def result_ = if hh_ == ll_ then -30 else (hh_ - close) / (hh_ - ll_) * (-100);

#plot WR2_ = -if result_ >= -20 then 20 else result_;
#white line
plot WR_ = -if result_ <= -20 then 20 else result_;
WR_.SETLineWeight(2);
WR_.SETDefaultColor(COLOR.WHITE);
WR_.assignValueColor(if wr_<= -20 then color.red else color.white);
WR_.HIDE();
##============================================

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




#####################################
##FIHER###############################
input priceF = hl2;
input lengthF = 4;

def maxHigh = Highest(priceF, lengthF);
def minLow = Lowest(priceF, lengthF);
def range = maxHigh - minLow;
def value = if IsNaN(priceF)
then Double.NaN
else if IsNaN(range)
then value[1]
else if range == 0
then 0
else 0.66 * ((priceF - minLow) / range - 0.5) + 0.67 * value[1];
def truncValue = if value > 0.99 then 0.999 else if value < -0.99 then -0.999 else value;
def fish = 0.5 * (Log((1 + truncValue) / (1 - truncValue)) + fish[1]);

##PERCENT WILLIAM RSI ### ### 5MIN####
###########################
input lengthPercent5 = 14;#30
input over_BoughtPercent5 = -20;#20
input over_SoldPercent5 = -100;#80
#input price = close;
input averageTypePercent5 = AverageType.WILDERS;

def hh5 = Highest( high, lengthPercent5);
def ll5 = Lowest(low, lengthPercent5);
def result5 = if hh5 == ll5 then -100 else (hh5 - close) / (hh5 - ll5) * (-100);

plot WR5 = if result5 > 0 then 0 else result5 / 100;
WR5.HideBubble();
WR5.Hide();
WR5.SetDefaultColor(GetColor(1));
WR5.AssignValueColor(if WR5 < over_SoldPercent then Color.MAGENTA else if WR5 > over_BoughtPercent then Color.CYAN else Color.YELLOW);
WR5. SetLineWeight (2);
WR5.HIDE();


###########################################################
#MIXED FT WITH WR5 ################ ADDED SMA FOR SMOOTHING
plot FTWR5 = -4 * fish / .3 * WR5 ;#/SMA;
FTWR5.HideBubble();
#FTWR5.SetDefaultColor (Color.YELLOW);
FTWR5.AssignValueColor(if FTWR5 > 0 then Color.YELLOW else if FTWR5 < 0 then Color.DARK_GRAY else Color.CURRENT);
#FTWR5.SetLineWeight(2);
FTWR5.SetLineWeight(2);


FTWR5.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
FTWR5.setLineWeight(5);

FTWR5.AssignValueColor( IF FTWR5>0 AND FTWR5<.9 THEN COLOR.WHITE ELSE IF FTWR5 > 0 then Color.yellow ELSE IF FTWR5>FTWR5[1] AND FTWR5<0 THEN COLOR.CYAN else Color.white);


input lengthC = 14;

def priceC = close + low + high;
def linDev = LinDev(priceC, lengthC);
plot CCI = 20* if linDev == 0 then 0 else (priceC - Average(priceC, lengthC)) / linDev / 4;
#CCI.SETDefaultColor(COLOR.LIME);
CCI.HideBubble();
CCI.SetLineWeight(1);
CCI.DefineColor("Up", Color.CYAN);
CCI.DefineColor("Down", Color.red);
CCI.AssignValueColor(if CCI > 0 then CCI.Color("Up") else if CCI < 0 then CCI.Color("Down") else GetColor(1));
cci.setLineWeight(2);

cci.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
cci.setLineWeight(5);

#END CODE

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Increase in trading performance by 75%
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Exit Strategy
NinjaTrader
MC PL editor upgrade
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
35 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
19 thanks
GFIs1 1 DAX trade per day journal
16 thanks
Spoo-nalysis ES e-mini futures S&P 500
14 thanks
  #3 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,440 since Jun 2009
Thanks Given: 33,214
Thanks Received: 101,599


This time you posted in Traders Hideout. See my last message - please take better note of where you are when you make a new thread. ThinkOrSwim content belongs in the ThinkOrSwim forum. I'll move it for you for now.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote




Last Updated on April 3, 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