Fisher Transform Colored Bars - ThinkOrSwim | futures.io
futures.io futures trading


Fisher Transform Colored Bars
Started: by Azrael Views / Replies:433 / 6
Last Reply: Attachments:2

Welcome to futures.io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • 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, and we will never resell your private information.

-- Big Mike

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
Bedford, Texas
 
Futures Experience: Beginner
Platform: ToS
Broker/Data: OEC
Favorite Futures: /ES
 
Posts: 20 since Jun 2015
Thanks: 2 given, 12 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
Bedford, Texas
 
Futures Experience: Beginner
Platform: ToS
Broker/Data: OEC
Favorite Futures: /ES
 
Posts: 20 since Jun 2015
Thanks: 2 given, 12 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

Futures Edge on FIO

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
Bedford, Texas
 
Futures Experience: Beginner
Platform: ToS
Broker/Data: OEC
Favorite Futures: /ES
 
Posts: 20 since Jun 2015
Thanks: 2 given, 12 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 05: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)

2016 True Edge Awards: Voting is open until Jan 21!

Now
 

Anthony Drager: Pulling the trigger with confidence

Elite only
 

Leo Murphy: The Art and Science of Technical Analysis

Elite only
 

FuturesTrader71: Ask Me Anything

Elite only
     

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


All times are GMT -4. The time now is 04:43 AM.

no new posts
Page generated 2017-01-21 in 0.12 seconds with 21 queries on phoenix via your IP 54.145.218.90