Fisher Transform Colored Bars - ThinkOrSwim | futures io social day trading
futures io futures trading


Fisher Transform Colored Bars
Updated: Views / Replies:653 / 6
Created: by Azrael Attachments:2

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
 

Fisher Transform Colored Bars

  #1 (permalink)
Elite Member
Jurong Singapore
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: Optimus Futures/Rithmic
Favorite Futures: TF
 
Posts: 72 since Jul 2012
Thanks: 39 given, 7 received

Fisher Transform Colored Bars

Hi guys,

I was wondering how do I color the Fisher Transform bars in TOS like the Fisher Transform Multicolor indicator in Ninjatrader?

Warmest regards
Azrael

Reply With Quote
 
  #2 (permalink)
Trading Apprentice
Dallas, Texas
 
Futures Experience: Intermediate
Platform: TOS and GAIN Capital
Broker/Data: TD Ameritrade and Gain Capital
Favorite Futures: ES and CL
 
Posts: 31 since Jun 2015
Thanks: 2 given, 13 received


Azrael View Post
Hi guys,

I was wondering how do I color the Fisher Transform bars in TOS like the Fisher Transform Multicolor indicator in Ninjatrader?

Warmest regards
Azrael

Do you know the conditions?
Is it simply above and below, green and red?

Reply With Quote
 
  #3 (permalink)
Elite Member
Jurong Singapore
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: Optimus Futures/Rithmic
Favorite Futures: TF
 
Posts: 72 since Jul 2012
Thanks: 39 given, 7 received



devildriver6 View Post
Do you know the conditions?
Is it simply above and below, green and red?

Not just that.

Something like:
If the values are rising, plot the up color,
If the values are falling, plot the down color.

Something like this:
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
 
  #4 (permalink)
Trading Apprentice
Dallas, Texas
 
Futures Experience: Intermediate
Platform: TOS and GAIN Capital
Broker/Data: TD Ameritrade and Gain Capital
Favorite Futures: ES and CL
 
Posts: 31 since Jun 2015
Thanks: 2 given, 13 received


Azrael View Post
Not just that.

Something like:
If the values are rising, plot the up color,
If the values are falling, plot the down color.

Something like this:
Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

You're just trying to assign the value rise and fall color...it looks something like this...

assignvaluecolor(if fish >= fish[1] then color.green else color.red);

Reply With Quote
The following user says Thank You to devildriver6 for this post:
 
  #5 (permalink)
Elite Member
Jurong Singapore
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: Optimus Futures/Rithmic
Favorite Futures: TF
 
Posts: 72 since Jul 2012
Thanks: 39 given, 7 received


devildriver6 View Post
You're just trying to assign the value rise and fall color...it looks something like this...

assignvaluecolor(if fish >= fish[1] then color.green else color.red);

Thanks!

I tried doing the script up myself with your code:

 
Code
declare lower;

input price = hl2;
input length = 10;

def maxHigh = Highest(price, length);
def minLow = Lowest(price, length);
def range = maxHigh - minLow;
def value = if IsNaN(price)
    then Double.NaN
    else if IsNaN(range)
        then value[1]
        else if range == 0
            then 0
            else 0.66 * ((price - 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]);

plot FTOneBarBack = fish[1];
plot FT = fish;
plot ZeroLine = 0;

FTOneBarBack.SetDefaultColor(GetColor(1));
FT.SetDefaultColor(GetColor(8));
ZeroLine.SetDefaultColor(GetColor(5));

FT.assignvaluecolor(if fish >= fish[1] then CreateColor(153, 204, 255) else CreateColor(255, 102, 102));
I got the colors I wanted but the bars look faint and fuzzy. Any ideas to make them darker or maybe to put an black outline around them?

(If it is not too much trouble, is there a way to set the colors for the bars at will using the studies settings?)

Reply With Quote
 
  #6 (permalink)
Trading Apprentice
Dallas, Texas
 
Futures Experience: Intermediate
Platform: TOS and GAIN Capital
Broker/Data: TD Ameritrade and Gain Capital
Favorite Futures: ES and CL
 
Posts: 31 since Jun 2015
Thanks: 2 given, 13 received


Azrael View Post
Thanks!

I tried doing the script up myself with your code:

 
Code
declare lower;

input price = hl2;
input length = 10;

def maxHigh = Highest(price, length);
def minLow = Lowest(price, length);
def range = maxHigh - minLow;
def value = if IsNaN(price)
    then Double.NaN
    else if IsNaN(range)
        then value[1]
        else if range == 0
            then 0
            else 0.66 * ((price - 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]);

plot FTOneBarBack = fish[1];
plot FT = fish;
plot ZeroLine = 0;

FTOneBarBack.SetDefaultColor(GetColor(1));
FT.SetDefaultColor(GetColor(8));
ZeroLine.SetDefaultColor(GetColor(5));

FT.assignvaluecolor(if fish >= fish[1] then CreateColor(153, 204, 255) else CreateColor(255, 102, 102));
I got the colors I wanted but the bars look faint and fuzzy. Any ideas to make them darker or maybe to put an black outline around them?

(If it is not too much trouble, is there a way to set the colors for the bars at will using the studies settings?)


Use this....

declare lower;

input price = hl2;
input length = 10;

def maxHigh = Highest(price, length);
def minLow = Lowest(price, length);
def range = maxHigh - minLow;
def value = if IsNaN(price)
then Double.NaN
else if IsNaN(range)
then value[1]
else if range == 0
then 0
else 0.66 * ((price - 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]);

plot FTOneBarBack = fish[1];
plot FT = fish;
plot ZeroLine = 0;

FTOneBarBack.SetDefaultColor(color.cyan);
FT.SetDefaultColor(color.yellow);
ZeroLine.SetDefaultColor(color.white);

input paintbars = yes;

DefineglobalColor("Bullish", color.green);
DefineglobalColor("Bearish", color.red);

assignPriceColor(if !paintbars then color.current else if paintbars && FT >= FTOneBarBack then globalColor("Bullish") else if paintbars && FT < FTOneBarBack then globalColor("Bearish") else color.current);

Reply With Quote
The following user says Thank You to devildriver6 for this post:
 
  #7 (permalink)
Elite Member
Jurong Singapore
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: Optimus Futures/Rithmic
Favorite Futures: TF
 
Posts: 72 since Jul 2012
Thanks: 39 given, 7 received


devildriver6 View Post
Use this....

declare lower;

input price = hl2;
input length = 10;

def maxHigh = Highest(price, length);
def minLow = Lowest(price, length);
def range = maxHigh - minLow;
def value = if IsNaN(price)
then Double.NaN
else if IsNaN(range)
then value[1]
else if range == 0
then 0
else 0.66 * ((price - 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]);

plot FTOneBarBack = fish[1];
plot FT = fish;
plot ZeroLine = 0;

FTOneBarBack.SetDefaultColor(color.cyan);
FT.SetDefaultColor(color.yellow);
ZeroLine.SetDefaultColor(color.white);

input paintbars = yes;

DefineglobalColor("Bullish", color.green);
DefineglobalColor("Bearish", color.red);

assignPriceColor(if !paintbars then color.current else if paintbars && FT >= FTOneBarBack then globalColor("Bullish") else if paintbars && FT < FTOneBarBack then globalColor("Bearish") else color.current);

Thank you so much!

Just before you replied, I actually manually search for the color I wanted on the RGB scale and end up with CreateColor(63, 143, 255) for the upbar and just used the normal Red for the downbar

Thank you so much again

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


Will figure out the volume stop when I get the time


Last edited by Azrael; July 31st, 2016 at 04:07 PM.
Reply With Quote

Reply



futures io > > > > Fisher Transform Colored Bars

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

July Journal Challenge w/$1100 in prizes from TopstepTrader

July
 

An Afternoon with FIO member Softsoap

Elite only

Battlestations: Show us your trading desks and win $750 in prizes

August
 

Extended Ask Me Anything w/Brett Steenbarger

Elite only

Prototyping Python Strategies (part 3) w/Ran Aroussi

Elite only

Brannigan Barrett w/Axia Futures

Elite only

Introduction to Phillip Capital futures brokerage services

Aug TBD

How Monte Carlo Analysis Can Help Your Trading w/Kevin Davey

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Colored Time Regions milburnperry Traders Hideout 9 April 28th, 2017 10:55 AM
Inv fisher transform not plotting properly Zen Trader NinjaTrader Programming 11 December 12th, 2015 09:53 PM
MACD with Colored Histogram timefreedom The Elite Circle 8 March 30th, 2013 01:30 AM
Fisher Transform - a sample size problem? drolles NinjaTrader Programming 16 March 15th, 2011 07:06 AM
Can bars be 'colored' by another bar state? Trader.Jon NinjaTrader Programming 8 August 13th, 2010 04:19 PM


All times are GMT -4. The time now is 03:05 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-07-27 in 0.11 seconds with 20 queries on phoenix via your IP 54.158.198.141