NexusFi: Find Your Edge


Home Menu

 





Fisher for NT7


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Fat Tails with 13 posts (36 thanks)
    2. looks_two emini_Holy_Grail with 7 posts (0 thanks)
    3. looks_3 trendisyourfriend with 6 posts (1 thanks)
    4. looks_4 zt379 with 4 posts (1 thanks)
      Best Posters
    1. looks_one Fat Tails with 2.8 thanks per post
    2. looks_two tellytub with 1.3 thanks per post
    3. looks_3 gordo with 1 thanks per post
    4. looks_4 zt379 with 0.3 thanks per post
    1. trending_up 20,288 views
    2. thumb_up 43 thanks given
    3. group 10 followers
    1. forum 39 posts
    2. attach_file 9 attachments




 
Search this Thread

Fisher for NT7

  #21 (permalink)
 emini_Holy_Grail 
Dallas,TX
 
Experience: Intermediate
Platform: NinjaTrader, OpenQuant
Broker: Zaner/Zen Fire
Trading: ES,6E,6B,GC,CL
Posts: 597 since Nov 2009
Thanks Given: 176
Thanks Received: 126

The default Fisher Transform with settings 100 matches exactly with what Fat tails got here in post 17. FisherYur5ik.zip
so we got the same as NT and not anythng diff. chart attached

Attached Thumbnails
Click image for larger version

Name:	6E_Fisher MQ vs Fisher NT.jpg
Views:	594
Size:	162.8 KB
ID:	29694  
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Could it be that currency futures are way easier to trade?
Currencies
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
How to apply profiles
Traders Hideout
Trade idea based off three indicators.
Traders Hideout
 
  #22 (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,103


trendisyourfriend View Post
Fat, if you don't know the MetaTrader language then how can we tell if this indicator does what it is supposed to do ? What have you translated exactly ? Is it based on the Fisher algo or something else ?

I have tried to translate the MetaTrader language into NT 7.0. Most of the formulae can be easily grasped, but I do not know the logic MetaTrader uses for calling bars.

As I do not have a MetaTrader installation, we need somebody who posts a MetaTrader chart of the indicator, so that we can compare it with a NinjaTrader chart.

Reply With Quote
  #23 (permalink)
 
tellytub's Avatar
 tellytub 
london uk
 
Experience: Beginner
Platform: NinjaTrader
Broker: Zen-Fire
Trading: Stocks
Posts: 410 since Jun 2009
Thanks Given: 333
Thanks Received: 121


Fat Tails has done a great job in making it work for Ninja, so thanks Fat Tails!!!

1. The Metatrader version of the FisherTransform paints BIG TIME
2. Fat Tails, FisherYur4ik repaints the same as Metatrader version
3. Fat Tails, FisherYur5ik DOES not repaint and it looks to be same as FisherTransform (NinjaTrader version)
4. If you download the FisherTransform for Metatrader that does NOT repaint, it will not give you any advantage at all. You may as well look at FisherTransform (NinjaTrader version)

Thanks guys

Reply With Quote
Thanked by:
  #24 (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,103


emini_Holy_Grail View Post
The default Fisher Transform with settings 100 matches exactly with what Fat tails got here in post 17. FisherYur5ik.zip
so we got the same as NT and not anythng diff. chart attached

This is really a good example to learn from.

The original MetaTrader indicator and the NT 6.5. version of this indicator heavily repaint. This means that the bars are faked with hindsight. You cannot trade off fake indicators. because they only generate the signal long after the fact.

On the chart below I have put

- the fake indicator
- the adapted version that does not repaint
- and the original Fisher Transform that comes with NinjaTrader

You will notice that the FisherYur4ik generates early signals. Unfortunately the early signal is only generated 100 bars later by falsifying what it had produced before. Actually the indicator will still modify the signal shown on the chart, as the 100 bars have not yet elapsed.

The non-repainting version generates the same signals, but later. You can see that the peaks and troughs are occurring between 5 and 8 bars later. Note that the further you get away from the last bar the larger the lead of the repainting indicator versus the correct one will be.

If you do not let the indicator repaint, it does not offer any advantages over the original Fisher Transform, which can be found below. The only thing that the FisherYur4ik offers is a mirage which can be used for self-delusion.

I am still not 100% sure that the non-repainting version is a correct adaptation of the MetaTrader indicator.

If there is any user of MetaTrader here please post a chart!


Reply With Quote
  #25 (permalink)
 
tellytub's Avatar
 tellytub 
london uk
 
Experience: Beginner
Platform: NinjaTrader
Broker: Zen-Fire
Trading: Stocks
Posts: 410 since Jun 2009
Thanks Given: 333
Thanks Received: 121

This might be of interest

Three Fisher Yur4ik Indicators For Metatrader | Great Trading Systems

Reply With Quote
Thanked by:
  #26 (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,103



The charts show a 4-bar lag between the repainting and non-repainting version. As I used a comparatively large lookback period of 100 bars in the chart above, this is consistent with the 5 to 8 bars that I found. Thanks for posting!

Reply With Quote
  #27 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,527 since Oct 2009
Thanks Given: 4,176
Thanks Received: 6,020

I remember when i was using this tool i used to have two instances of the Fisher on my chart. A 10 periods and a 50 periods. Both versions needed to match. I used them mostly for confirmation during a pullback after a breakout. At that time, i was using 3 MA's (21, 34 or 55 and 89) When there was some separation between these three MA's and price was breaking in the opposite direction of the trend by two or three bars max. then i was checking the Fishers on a pullback and would enter into the new direction only if both Fishers were showing the same color. My winning rate on this setup was above 85% if i remember and i was using the version that was repainting.

Here is a rough example:

Reply With Quote
  #28 (permalink)
 
tellytub's Avatar
 tellytub 
london uk
 
Experience: Beginner
Platform: NinjaTrader
Broker: Zen-Fire
Trading: Stocks
Posts: 410 since Jun 2009
Thanks Given: 333
Thanks Received: 121

MetaTrader has EURUSD whereas Ninja has 6E, but its almost there

this is a better res image




I'm sure you can guess which one repaints

Reply With Quote
Thanked by:
  #29 (permalink)
 emini_Holy_Grail 
Dallas,TX
 
Experience: Intermediate
Platform: NinjaTrader, OpenQuant
Broker: Zaner/Zen Fire
Trading: ES,6E,6B,GC,CL
Posts: 597 since Nov 2009
Thanks Given: 176
Thanks Received: 126

FT or TIYF
Can you help to add an arrow when cross over on NT's default Fisher Transform.
or you can tell me where to add "DrawArrowUp and Down". appreciate the help

Reply With Quote
  #30 (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,103



emini_Holy_Grail View Post
FT or TIYF
Can you help to add an arrow when cross over on NT's default Fisher Transform.
or you can tell me where to add "DrawArrowUp and Down". appreciate the help


So what you want to do - in language terms - is:

Condition1: when current value > 0 and prior value <= 0 then bullish crossover
Condition2: when current value < 0 and prior value >= 0 then bearish crossover

Translated to code:

 
Code
double lastFishValue = Value[1];
double margin = 2* ATR(14)[0];
if (fishValue > 0 && lastFishValue <=0)
	DrawArrowUp("Up"+CurrentBar,true, 0, Low[0]- margin, Color.Green);				
if (fishValue < 0 && lastFishValue >= 0)
	DrawArrowUp("Up"+CurrentBar,true, 0, High[0]+ margin, Color.Red);
Now this code will run you into trouble for two reasons:

(1) Value[1] is not defined for the first bar -> indicator will not display anything
(2) If the crossover is triggered intrabar (when connected realtime) and then cancelled again, the arrow will remain on the chart, so you need to remove all the false arrows that have been created prior to the bar close.

Declare new int variables:

 
Code
private int	arrowUpIndex 	= 0;
private int 	arrowDownIndex	= 0;
Then write modified code and insert:

 
Code
if (CurrentBar > 0) // to avoid the problem with the first bar
{
	double lastFishValue = Value[1];
	double margin = 2* ATR(14)[0];
	if (fishValue > 0 && lastFishValue <=0)
	{
		DrawArrowUp("Up"+CurrentBar,true, 0, Low[0]- margin, Color.Green);
		arrowUpIndex = CurrentBar;
	}
	else if (arrowUpIndex == CurrentBar)
	{
		RemoveDrawObject ("Up"+CurrentBar);
		arrowUpIndex = 0;
	}
	if (fishValue < 0 && lastFishValue >= 0)
	{
		DrawArrowDown("Down"+CurrentBar,true, 0, High[0]+ margin, Color.Red);
		arrowDownIndex = CurrentBar;	
	}
	else if (arrowDownIndex == CurrentBar)
	{
		RemoveDrawObject ("Down" + CurrentBar);
		arrowDownIndex = 0;
	}
}
Now to finish the indicator off, put this in the Initialize section to make sure that the arrows are plotted on the price panel

 
Code
DrawOnPricePanel	= true;
Indicator attached.

Attached Files
Elite Membership required to download: FisherTransformArrows.zip
Reply With Quote




Last Updated on September 15, 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