Trading Articles
Article Categories
Article Tools
Inv fisher transform not plotting properly
Updated December 12, 2015
Top Posters
looks_one
Zen Trader
with 5 posts (4 thanks)
looks_two
Fat Tails
with 3 posts (9 thanks)
looks_3
DavidHP
with 1 posts (2 thanks)
looks_4
romus
with 1 posts (0 thanks)
Best Posters
looks_one
Fat Tails
with 3 thanks per post
looks_two
cory
with 3 thanks per post
looks_3
DavidHP
with 2 thanks per post
looks_4
Zen Trader
with 0.8 thanks per post
trending_up
2,736 views
thumb_up
18 thanks given
group
4 followers
forum
11 posts
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)
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...
The following user says Thank You to Zen Trader for this post:
Best Threads (Most Thanked) in the last 7 days on futures io
(login for full post details)
#3 (permalink )
the coin hunter
virginia
Experience: Intermediate
Platform: ninja
Trading: NQ
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);
}
.......
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
Posts: 9,855 since Mar 2010
Thanks: 4,238 given,
26,728
received
Zen Trader
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.
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.
(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.
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
Posts: 9,855 since Mar 2010
Thanks: 4,238 given,
26,728
received
Zen Trader
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
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!
(login for full post details)
#9 (permalink )
Market Wizard
Berlin, Europe
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,855 since Mar 2010
Thanks: 4,238 given,
26,728
received
Zen Trader
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!
(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.
(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
Posts: 1,347 since Aug 2009
Thanks: 9,428 given,
2,360
received
Zen Trader
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 ! ! !
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
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
Last Updated on December 12, 2015
Right now
Ongoing
Right now
February
Coming soon
March
Register to Attend
Elite only