Forex



Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4






Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 01-25-2007, 03:28 PM
Junior Member
 
Join Date: Jan 2007
Posts: 5
mrb1234 is on a distinguished road
Better Fisher EA? Is possible?

I really like this #BetterFisher_Yur4ik_2 indicator...I was wondering if its possible to code an EA from the code attached below:



#property indicator_separate_window
#property indicator_buffers 3
#property indicator_color2 Lime
#property indicator_color3 Red
#property indicator_style2 STYLE_SOLID
#property indicator_style3 STYLE_SOLID
#property indicator_width2 3
#property indicator_width3 3
extern int period=19;

extern bool SendAlert = false;

double ExtBuffer0[];
double ExtBuffer1[];
double ExtBuffer2[];


int init()
{

SetIndexStyle(0,DRAW_NONE);
SetIndexStyle(1,DRAW_HISTOGRAM);
SetIndexStyle(2,DRAW_HISTOGRAM);
IndicatorDigits(Digits+1);

SetIndexBuffer(0,ExtBuffer0);
SetIndexBuffer(1,ExtBuffer1);
SetIndexBuffer(2,ExtBuffer2);

IndicatorShortName("Fisher_Yur4ik");
SetIndexLabel(1,NULL);
SetIndexLabel(2,NULL);

return(0);
}


int start()
{
//int period=19;
int limit;
int counted_bars=IndicatorCounted();
double prev,current,old;
double Value=0,Value1=0,Value2=0,Fish=0,Fish1=0,Fish2=0;
double price;
double MinL=0;
double MaxH=0;


if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;


for(int i=0; i<Bars; i++)
{
MaxH = High[Highest(NULL,0,MODE_HIGH,period,i)];
MinL = Low[Lowest(NULL,0,MODE_LOW,period,i)];
price = (High[i]+Low[i])/2;

if(MaxH-MinL == 0) Value = 0.33*2*(0-0.5) + 0.67*Value1;
else Value = 0.33*2*((price-MinL)/(MaxH-MinL)-0.5) + 0.67*Value1;

Value=MathMin(MathMax(Value,-0.999),0.999);

if(1-Value == 0) ExtBuffer0[i]=0.5+0.5*Fish1;
else ExtBuffer0[i]=0.5*MathLog((1+Value)/(1-Value))+0.5*Fish1;

Value1=Value;
Fish1=ExtBuffer0[i];
}


bool up=true;
for(i=Bars; i>=0; i--)
{
current=ExtBuffer0[i];
prev=ExtBuffer0[i+1];
if(SendAlert) Alert("Look for Buying opportunity soon");
if (((current<0)&&(prev>0))||(current<0)) up= false;
Alert("Better Fisher ",Period()," ",Symbol()," BUY");

if (SendAlert)Alert("Look for Selling opportunity soon");
if (((current>0)&&(prev<0))||(current>0)) up= true;
Alert("Better Fisher ",Period()," ",Symbol()," SELL");
if(!up)
{
ExtBuffer2[i]=current;
ExtBuffer1[i]=0.0;
}

else
{
ExtBuffer1[i]=current;
ExtBuffer2[i]=0.0;
}
}

return(0);
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 02-01-2007, 03:20 PM
Junior Member
 
Join Date: Jan 2007
Posts: 5
mrb1234 is on a distinguished road
How about just adding alerts?

Is it posible for someone to at least code some alerts to this, for when the bars cross over the zero line?
TIA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 02-01-2007, 03:22 PM
leeb's Avatar
Senior Member
 
Join Date: Dec 2005
Posts: 366
leeb is on a distinguished road
In my opinion its not worth making an EA as the indicator repaints the past
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 06-20-2009, 04:01 PM
Junior Member
 
Join Date: Oct 2008
Posts: 19
Dawns_Mist is on a distinguished road
Please attach the indicator to test it .. becouse fisher indicator we have may repaint .. and we don't know any way make it not repaint .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 06-20-2009, 04:27 PM
Senior Member
 
Join Date: Mar 2008
Posts: 419
ChicagoRob is on a distinguished road
Quote:
Originally Posted by leeb View Post
In my opinion its not worth making an EA as the indicator repaints the past
Leeb is right. I've used this indicator and it looks great in
retrospect, but it's another story when trading live.

Rob
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 06-20-2009, 05:17 PM
Administrator
 
Join Date: Sep 2005
Posts: 20,017
Blog Entries: 235
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Author of repainted version was posted on this thread (many posts with many versions) Fisher

Not repainted version by Igorad:
- this post http://www.forex-tsd.com/6479-post47.html
- improved version http://www.forex-tsd.com/6510-post52.html
- next improved version: http://www.forex-tsd.com/6620-post56.html

Repainted version was improved by Igorad: http://www.forex-tsd.com/19623-post71.html

Fisher exit indicator by Kalenzo (I used it for asctrend system): http://www.forex-tsd.com/6507-post51.html

Why 'Fish'? What is 'Fish'? Read this post with attachment http://www.forex-tsd.com/6580-post54.html

And so on.

-------------

You can read the whole discussion with codes/indicators between the author of repainted versions and Igorad (author of non-repainted versions) on this thread Fisher
__________________
My blog on TSD
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #7 (permalink)  
Old 06-20-2009, 05:32 PM
Junior Member
 
Join Date: Oct 2008
Posts: 19
Dawns_Mist is on a distinguished road
yeah

Quote:
Originally Posted by newdigital View Post
Author of repainted version was posted on this thread (many posts with many versions) Fisher

Not repainted version by Igorad:
- this post http://www.forex-tsd.com/6479-post47.html
- improved version http://www.forex-tsd.com/6510-post52.html
- next improved version: http://www.forex-tsd.com/6620-post56.html

Repainted version was improved by Igorad: http://www.forex-tsd.com/19623-post71.html

Fisher exit indicator by Kalenzo (I used it for asctrend system): http://www.forex-tsd.com/6507-post51.html

Why 'Fish'? What is 'Fish'? Read this post with attachment http://www.forex-tsd.com/6580-post54.html

And so on.

-------------

You can read the whole discussion with codes/indicators between the author of repainted versions and Igorad (author of non-repainted versions) on this thread Fisher

Thank you very much .. you helped me alot .
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fisher nina Metatrader 4 185 09-15-2009 11:33 AM
Fisher newdigital Indicators - Metatrader 4 25 12-27-2007 03:52 PM
fisher t-rex mazmaz Indicators - Metatrader 4 0 12-17-2006 12:54 AM


All times are GMT. The time now is 04:43 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.