Inv fisher transform not plotting properly - NinjaTrader Programming | futures io social day trading
futures io futures trading


Inv fisher transform not plotting properly
Updated: Views / Replies:1,598 / 11
Created: by Zen Trader Attachments:6

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
 6  
 
Thread Tools Search this Thread
 

Inv fisher transform not plotting properly

  #1 (permalink)
Elite Member
Asia
 
Futures Experience: Beginner
Platform: InvestorRT, Ninjatrader
Broker/Data: Zen-Fire
Favorite Futures: Bongos
 
Posts: 20 since Jan 2010
Thanks: 31 given, 24 received

Inv fisher transform not plotting properly

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...

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

Attached Files
Register to download File Type: cs SmoothedRsiInverseFisherTransform3.cs (10.8 KB, 22 views)
Reply With Quote
The following user says Thank You to Zen Trader for this post:
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,220 since Jun 2009
Thanks: 628 given, 6,318 received
Forum Reputation: Legendary


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
Inv fisher transform not plotting properly-es-09-13-1-min-6_28_2013.jpg  
Reply With Quote
The following 3 users say Thank You to cory for this post:
 
  #4 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,602 received
Forum Reputation: Legendary


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...

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


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:
 
  #5 (permalink)
Elite Member
Asia
 
Futures Experience: Beginner
Platform: InvestorRT, Ninjatrader
Broker/Data: Zen-Fire
Favorite Futures: Bongos
 
Posts: 20 since Jan 2010
Thanks: 31 given, 24 received

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

Reply With Quote
 
  #6 (permalink)
Elite Member
Asia
 
Futures Experience: Beginner
Platform: InvestorRT, Ninjatrader
Broker/Data: Zen-Fire
Favorite Futures: Bongos
 
Posts: 20 since Jan 2010
Thanks: 31 given, 24 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, 40 views)
Reply With Quote
The following 3 users say Thank You to Zen Trader for this post:
 
  #7 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,602 received
Forum Reputation: Legendary


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, 52 views)
Reply With Quote
The following 5 users say Thank You to Fat Tails for this post:
 
  #8 (permalink)
Elite Member
Asia
 
Futures Experience: Beginner
Platform: InvestorRT, Ninjatrader
Broker/Data: Zen-Fire
Favorite Futures: Bongos
 
Posts: 20 since Jan 2010
Thanks: 31 given, 24 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!

Reply With Quote
 
  #9 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,602 received
Forum Reputation: Legendary


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
 
  #10 (permalink)
Elite Member
Asia
 
Futures Experience: Beginner
Platform: InvestorRT, Ninjatrader
Broker/Data: Zen-Fire
Favorite Futures: Bongos
 
Posts: 20 since Jan 2010
Thanks: 31 given, 24 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, 79 views)
Reply With Quote

Reply



futures io > > > > > Inv fisher transform not plotting properly

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set my chart properly for the RUSSELL (TF) trendisyourfriend Emini Index Futures Trading 13 July 9th, 2017 07:36 PM
How to properly optimize an strategy? pakricard NinjaTrader Programming 3 April 3rd, 2011 06:41 PM
Fisher Transform - a sample size problem? drolles NinjaTrader Programming 16 March 15th, 2011 08:06 AM
How can I get this counter to work properly - TD Sequential kaywai NinjaTrader Programming 56 December 8th, 2010 03:53 PM
How to set renko chart properly in NT7 roadshow NinjaTrader 1 August 31st, 2010 07:26 AM


All times are GMT -4. The time now is 06:23 PM.

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-12-18 in 0.13 seconds with 21 queries on phoenix via your IP 54.221.93.187