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


Fisher Transform Colored Bars
Updated: Views / Replies:591 / 6
Created: by Azrael 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: 28 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
Bedford, Texas
 
Futures Experience: Beginner
Platform: ToS
Broker/Data: OEC
Favorite Futures: /ES
 
Posts: 28 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
Bedford, Texas
 
Futures Experience: Beginner
Platform: ToS
Broker/Data: OEC
Favorite Futures: /ES
 
Posts: 28 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)

FIO Journal Challenge featuring NinjaTrader ($2,000+ of prizes)

May

An overview of volumetric analytical tools w/Sergey Sokolov @ PTMC

Elite only

John Hoagland (TBA)

Elite only

FuturesTrader71 Extended Ask Me Anything (AMA)

Elite only

Pete @ Jigsaw Trading (TBA)

Elite only

John @ No BS Day Trading (TBA)

Elite only

An Afternoon with FIO member Softsoap (being rescheduled)

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 06:43 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-05-28 in 0.11 seconds with 20 queries on phoenix via your IP 54.162.168.187