NexusFi: Find Your Edge


Home Menu

 





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 romus with 1 posts (0 thanks)
    4. looks_4 DavidHP with 1 posts (2 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 4,728 views
    2. thumb_up 18 thanks given
    3. group 4 followers
    1. forum 11 posts
    2. attach_file 6 attachments




 
Search this Thread

Inv fisher transform not plotting properly

  #1 (permalink)
 Zen Trader 
Asia
 
Experience: Beginner
Platform: InvestorRT, Ninjatrader
Broker: Zen-Fire
Trading: Bongos
Posts: 22 since Jan 2010
Thanks Given: 37
Thanks Received: 25

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
Elite Membership required to download: SmoothedRsiInverseFisherTransform3.cs
Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Are there any eval firms that allow you to sink to your …
Traders Hideout
 
  #3 (permalink)
 
cory's Avatar
 cory 
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090


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:	272
Size:	58.8 KB
ID:	117311  
Reply With Quote
  #4 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


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
  #5 (permalink)
 Zen Trader 
Asia
 
Experience: Beginner
Platform: InvestorRT, Ninjatrader
Broker: Zen-Fire
Trading: Bongos
Posts: 22 since Jan 2010
Thanks Given: 37
Thanks Received: 25

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

Started this thread Reply With Quote
  #6 (permalink)
 Zen Trader 
Asia
 
Experience: Beginner
Platform: InvestorRT, Ninjatrader
Broker: Zen-Fire
Trading: Bongos
Posts: 22 since Jan 2010
Thanks Given: 37
Thanks Received: 25

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
Elite Membership required to download: SmoothedRsiInverseFisherTransform.cs
Started this thread Reply With Quote
Thanked by:
  #7 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


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 - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum

Attached Files
Elite Membership required to download: T3Colored.zip
Reply With Quote
  #8 (permalink)
 Zen Trader 
Asia
 
Experience: Beginner
Platform: InvestorRT, Ninjatrader
Broker: Zen-Fire
Trading: Bongos
Posts: 22 since Jan 2010
Thanks Given: 37
Thanks Received: 25

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
  #9 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


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)
 Zen Trader 
Asia
 
Experience: Beginner
Platform: InvestorRT, Ninjatrader
Broker: Zen-Fire
Trading: Bongos
Posts: 22 since Jan 2010
Thanks Given: 37
Thanks Received: 25


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

Attached Files
Elite Membership required to download: SmoothedRsiInverseFisherTransform.cs
Started this thread Reply With Quote




Last Updated on December 12, 2015


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts