Inv fisher transform not plotting properly - futures io
futures io futures trading



Inv fisher transform not plotting properly


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Zen Trader with 5 posts (4 thanks)
    2. looks_two Fat Tails with 3 posts (9 thanks)
    3. looks_3 DavidHP with 1 posts (2 thanks)
    4. looks_4 romus with 1 posts (0 thanks)
      Best Posters
    1. looks_one Fat Tails with 3 thanks per post
    2. looks_two cory with 3 thanks per post
    3. looks_3 DavidHP with 2 thanks per post
    4. looks_4 Zen Trader with 0.8 thanks per post
    1. trending_up 2,736 views
    2. thumb_up 18 thanks given
    3. group 4 followers
    1. forum 11 posts
    2. attach_file 6 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Inv fisher transform not plotting properly

(login for full post details)
  #1 (permalink)
Asia
 
Experience: Beginner
Platform: InvestorRT, Ninjatrader
Broker: Zen-Fire
Trading: Bongos
 
Posts: 22 since Jan 2010
Thanks: 37 given, 25 received

Hi guys,

I'm trying to modify a script I found of Sylvain Vervoort's smoothed RSI inverse Fisher transform (as featured in TASC) to plot oversold and overbought levels, but it's plotting as a broken line. I have absolutely no idea what i'm doing wrong. Appreciate any help in implementing this properly. TIA.

I've attached the indicator script and this is how it's plotting...


Attached Files
Register to download File Type: cs SmoothedRsiInverseFisherTransform3.cs (10.8 KB, 25 views)
Started this thread Reply With Quote
The following user says Thank You to Zen Trader for this post:

Journal Challenge February 2021 results (so far):
Competing for $1500 in prizes from Topstep
looks_oneSBtrader82 's Trading Journalby SBtrader82
(169 thanks from 31 posts)
looks_twoJust BEING a Trader: Letting Go!!by iqgod
(116 thanks from 33 posts)
looks_3Wisdom is Emptinessby Mtype
(68 thanks from 25 posts)
looks_4Deetee’s DAX Trading Journal (time based)by Deetee
(31 thanks from 17 posts)
looks_5Journal for peanuts1956by peanuts1956
(23 thanks from 13 posts)
 
 
(login for full post details)
  #3 (permalink)
the coin hunter
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
 
cory's Avatar
 
Posts: 6,029 since Jun 2009
Thanks: 845 given, 7,893 received


they are there, you can make them more visible so its easier to see;
 
Code
.........
			Add(new Plot(new Pen(Color.Lime, 3), PlotStyle.Line, "InvFishOS"));
			Add(new Plot(new Pen(Color.Red, 3), PlotStyle.Line, "InvFishOB"));
.........
.........
.........
			// Plot plain line
			InvFish.Set(inv_fish_value);
            		
			//plot coloured lines
			
		//	if (inv_fish_value > 40 && inv_fish_value < 70)
		//	{
		//	InvFish.Set(inv_fish_value);
               //	}
			
			if (inv_fish_value > 70)
			{
			InvFishOB.Set(inv_fish_value);
        	        }
			
			if (inv_fish_value < 40)
			{
			InvFishOS.Set(inv_fish_value);
        	        }	
.......

Attached Thumbnails
Click image for larger version

Name:	ES 09-13 (1 Min)  6_28_2013.jpg
Views:	116
Size:	58.8 KB
ID:	117311  
Reply With Quote
The following 3 users say Thank You to cory for this post:
 
(login for full post details)
  #4 (permalink)
Market Wizard
Berlin, Europe
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,855 since Mar 2010
Thanks: 4,238 given, 26,728 received


Zen Trader View Post
Hi guys,

I'm trying to modify a script I found of Sylvain Vervoort's smoothed RSI inverse Fisher transform (as featured in TASC) to plot oversold and overbought levels, but it's plotting as a broken line. I have absolutely no idea what i'm doing wrong. Appreciate any help in implementing this properly. TIA.

I've attached the indicator script and this is how it's plotting...



There is no need to add further plots to the indicator. Just take the original code and add

 
Code
#region Variables

......
private Color overbought = Color.Lime;
private Color oversold = Color.Red;
private Color neutral = Color.Cyan;
......
#endregion 

protected override void OnBarUpdate()
{
        ........ 
        if (inv_fish_value > 10 && inv_fish_value < 90)
		PlotColors[0][0] = neutral;
	else if (inv_fish_value >= 90)
		PlotColors[0][0] = overbought;
	else if (inv_fish_value <= 10)
		PlotColors[0][0] = oversold;
}

You also may add properties for the colors and serialize them.

Reply With Quote
The following 4 users say Thank You to Fat Tails for this post:
 
(login for full post details)
  #5 (permalink)
Asia
 
Experience: Beginner
Platform: InvestorRT, Ninjatrader
Broker: Zen-Fire
Trading: Bongos
 
Posts: 22 since Jan 2010
Thanks: 37 given, 25 received

Thanks Fat Tails. I'll try that out and report back.

Started this thread Reply With Quote
 
(login for full post details)
  #6 (permalink)
Asia
 
Experience: Beginner
Platform: InvestorRT, Ninjatrader
Broker: Zen-Fire
Trading: Bongos
 
Posts: 22 since Jan 2010
Thanks: 37 given, 25 received

Thanks again Fat Tails. Works like a charm. Did not know about the PlotColors syntax.

I've attached the tweaked code for anyone interested.

Attached Files
Register to download File Type: cs SmoothedRsiInverseFisherTransform.cs (10.1 KB, 46 views)
Started this thread Reply With Quote
The following 3 users say Thank You to Zen Trader for this post:
 
(login for full post details)
  #7 (permalink)
Market Wizard
Berlin, Europe
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,855 since Mar 2010
Thanks: 4,238 given, 26,728 received


Zen Trader View Post
Thanks again Fat Tails. Works like a charm. Did not know about the PlotColors syntax.

I've attached the tweaked code for anyone interested.


You can even improve this approach, by making the colors user selectable. To achieve this you would first
add one line to the Intialize() section of the indicator.

 
Code
PlotsConfigurable = false;


This takes away the configuration options for the plot. Now you can manually add the properties of the plot such as width, PlotStyle, DashStyle and colors. You can declare variables for all of those and then add the properites to access them in the Properties region of the indicator.

The attached indicator T3Colored is a simple example how to do that. Pay attention to the proper serialization of the colors, which is explained here:

User Definable Color Inputs - NinjaTrader Support Forum

Attached Files
Register to download File Type: zip T3Colored.zip (4.6 KB, 58 views)
Reply With Quote
The following 5 users say Thank You to Fat Tails for this post:
 
(login for full post details)
  #8 (permalink)
Asia
 
Experience: Beginner
Platform: InvestorRT, Ninjatrader
Broker: Zen-Fire
Trading: Bongos
 
Posts: 22 since Jan 2010
Thanks: 37 given, 25 received

I guess you're giving me this tip because you can't bear to see untidy, half written indicators!

Seriously, thanks for the tip. I'll tidy it up and re-upload!

Started this thread Reply With Quote
 
(login for full post details)
  #9 (permalink)
Market Wizard
Berlin, Europe
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,855 since Mar 2010
Thanks: 4,238 given, 26,728 received


Zen Trader View Post
I guess you're giving me this tip because you can't bear to see untidy, half written indicators!

Seriously, thanks for the tip. I'll tidy it up and re-upload!

If you have done this once, you can use the same approach for other indicators, and people will ask you for help and not me anymore!

Reply With Quote
 
(login for full post details)
  #10 (permalink)
Asia
 
Experience: Beginner
Platform: InvestorRT, Ninjatrader
Broker: Zen-Fire
Trading: Bongos
 
Posts: 22 since Jan 2010
Thanks: 37 given, 25 received


Smoothed Inverse Fisher Transform indicator, now with user selectable line plot options, and overbought and oversold levels. Thanks.

Attached Files
Register to download File Type: cs SmoothedRsiInverseFisherTransform.cs (13.7 KB, 87 views)
Started this thread Reply With Quote
 
(login for full post details)
  #11 (permalink)
New Orleans, La (Mardi Gras City)
 
Experience: Advanced
Platform: NinjaTrader
Broker: Ninjatrader / Optimus Futures / AmpFutures
Trading: ES / 6E / 6B / CL
 
DavidHP's Avatar
 
Posts: 1,347 since Aug 2009
Thanks: 9,428 given, 2,360 received


Zen Trader View Post
Smoothed Inverse Fisher Transform indicator, now with user selectable line plot options, and overbought and oversold levels. Thanks.

This may have been revised and I missed it.
I noticed the code has settings for user selectable line width, stlye etc but an essential part of the code was missing.
The user changeable settings won't be applied without this:

 
Code
		protected override void OnStartUp()
		{
			Plots[0].Pen.Width = plot0Width;
			Plots[0].PlotStyle = plot0Style;
			Plots[0].Pen.DashStyle = dash0Style;
		}
I'm sure it was just an oversight.

Rejoice in the Thunderstorms of Life . . .
Knowing it's not about Clouds or Wind. . .
But Learning to Dance in the Rain ! ! !
Follow me on Twitter Reply With Quote
The following 2 users say Thank You to DavidHP for this post:
 
(login for full post details)
  #12 (permalink)
Melbourne, VIC, Australia
 
Experience: Intermediate
Platform: NinjaTrader
Trading: SPI
 
Posts: 269 since Dec 2010
Thanks: 666 given, 547 received


DavidHP View Post
This may have been revised and I missed it.
I noticed the code has settings for user selectable line width, stlye etc but an essential part of the code was missing.
The user changeable settings won't be applied without this:

 
Code
		protected override void OnStartUp()
		{
			Plots[0].Pen.Width = plot0Width;
			Plots[0].PlotStyle = plot0Style;
			Plots[0].Pen.DashStyle = dash0Style;
		}
I'm sure it was just an oversight.

Hi @DavidHP,

Thank you for this.
I have never modified any indicator this way - and it worked!
I still cannot see the levels (OB and OS lines), even though I have removed indi, restarted NT and some of known tricks.
Can anyone post it here in .zip format?
This could make a life easier, at least for me.

Cheers,
romus

When nothing goes right... go left
Reply With Quote


futures io Trading Community Platforms and Indicators NinjaTrader > Inv fisher transform not plotting properly


Last Updated on December 12, 2015


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Journal Challenge w/$1500 prizes from Topstep!

February
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Call Option Buying: The New Pain Trade? w/Carley Garner

Elite only
     



Copyright © 2021 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