Forex



Go Back   Forex Trading > Downloads > Indicators - Metatrader 4
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
Thread Tools Display Modes
  #11 (permalink)  
Old 05-28-2009, 07:11 PM
Senior Member
 
Join Date: Jan 2009
Posts: 493
Pava is an unknown quantity at this point
.

here it is:


//+------------------------------------------------------------------+
//| |
//| Copyright © 1999-2007, MetaQuotes Software Corp. |
//| Forex / Ôîðåêñ Òðåéäèíã: Òîðãîâàÿ Ïëàòôîðìà MetaTrader 4 äëÿ Forex |
//+------------------------------------------------------------------+
#property copyright "Copyright 2002, Finware.ru Ltd."
#property link "http://www.finware.ru/"
//----
#property indicator_separate_window
#property indicator_buffers 3
#property indicator_color1 Lime
#property indicator_color2 Red
#property indicator_color3 Gray
//---- input parameters
extern int Drow_style= 0; // —ÚËθ ËÒÔÓÎÌÂÌˡ „‡ÙË͇ 0 - ‚ ‚ˉ ÚӘ˜ÌÓÈ ÎËÌËË, ‰Û„Ó Á̇˜ÂÌË - ‚ ‚ˉ „ËÒÚÓ„‡ÏÏ˚
//---- indicator buffers
double Ind_Buffer1[];
double Ind_Buffer2[];
double Ind_Buffer3[];
//---- double vars
double value1,value2,Rezalt,trend;
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
if (Drow_style==0)
{
SetIndexStyle(0,DRAW_ARROW);
SetIndexStyle(1,DRAW_ARROW);
SetIndexStyle(2,DRAW_ARROW);
//----
SetIndexArrow(0,159);
SetIndexArrow(1,159);
SetIndexArrow(2,159);
}
else
{
SetIndexStyle(0,DRAW_HISTOGRAM);
SetIndexStyle(1,DRAW_HISTOGRAM);
SetIndexStyle(2,DRAW_HISTOGRAM);
}
//----
SetIndexEmptyValue(0,0.0);
SetIndexEmptyValue(1,0.0);
SetIndexEmptyValue(2,0.0);
//----
SetIndexBuffer(0,Ind_Buffer1);
SetIndexBuffer(1,Ind_Buffer2);
SetIndexBuffer(2,Ind_Buffer3);
//----
IndicatorShortName ("DM");
SetIndexLabel (0, "DM_Up");
SetIndexLabel (1, "DM_Down");
SetIndexLabel (2, "DM_Straight");
IndicatorDigits(MarketInfo(Symbol(),MODE_DIGITS));
return(0);
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
int start()
{
//---- get already counted bars
int shift,counted_bars=IndicatorCounted();
//---- check for possible errors
if (counted_bars<0) return(-1);
//----
if(counted_bars<64)for(shift=1;shift<=64;shift++)
{Ind_Buffer1[shift]=0.0;Ind_Buffer2[shift]=0.0;Ind_Buffer3[shift]=0.0;}
//----
shift=Bars-64-1;
if(counted_bars>64) shift=Bars-counted_bars-1;
while(shift>=0)
{
value1=
-0.057943686277445900*Open[shift+00]
-0.043658266634319700*Open[shift+01]
+0.016893339337967300*Open[shift+02]
+0.110448213843891000*Open[shift+03]
+0.205220247113110000*Open[shift+04]
+0.264664029548369000*Open[shift+05]
+0.264664029548369000*Open[shift+06]
+0.205220247113110000*Open[shift+07]
+0.110448213843891000*Open[shift+08]
+0.016893339337967300*Open[shift+09]
-0.043658266634319700*Open[shift+10]
-0.057943686277445900*Open[shift+11]
-0.034834636631794200*Open[shift+12]
+0.002212354734218340*Open[shift+13]
+0.028933121721909400*Open[shift+14]
+0.032424401776343200*Open[shift+15]
+0.015569833996195800*Open[shift+16]
-0.007660554868813180*Open[shift+17]
-0.022138347829420900*Open[shift+18]
-0.020552990368271800*Open[shift+19]
-0.006433347602730440*Open[shift+20]
+0.009627481503821010*Open[shift+21]
+0.017394469333231100*Open[shift+22]
+0.013176086997509700*Open[shift+23]
+0.001209424586624090*Open[shift+24]
-0.010002709133594700*Open[shift+25]
-0.013505578777899800*Open[shift+26]
-0.008035831519405070*Open[shift+27]
+0.001903891095510710*Open[shift+28]
+0.009480467257466930*Open[shift+29]
+0.010166090979082400*Open[shift+30]
+0.004303104789688430*Open[shift+31]
-0.003659787203963280*Open[shift+32]
-0.008411956859246820*Open[shift+33]
-0.007282846005800100*Open[shift+34]
-0.001620704470705190*Open[shift+35]
+0.004466014467332310*Open[shift+36]
+0.007048985722291220*Open[shift+37]
+0.004847799927165300*Open[shift+38]
-0.000217319809293247*Open[shift+39]
-0.004603538852047050*Open[shift+40]
-0.005574817063020290*Open[shift+41]
-0.002877047191674200*Open[shift+42]
+0.001371504969476030*Open[shift+43]
+0.004280506570424680*Open[shift+44]
+0.004136269885199370*Open[shift+45]
+0.001361513374633290*Open[shift+46]
-0.001973820228459360*Open[shift+47]
-0.003675699277522370*Open[shift+48]
-0.002836788589562860*Open[shift+49]
-0.000284631689719810*Open[shift+50]
+0.002153387731732640*Open[shift+51]
+0.002934855205103340*Open[shift+52]
+0.001758962821343280*Open[shift+53]
-0.000389897847025107*Open[shift+54]
-0.002031006983868290*Open[shift+55]
-0.002197277408694140*Open[shift+56]
-0.000975033303736501*Open[shift+57]
+0.000693883112457725*Open[shift+58]
+0.001751056105124850*Open[shift+59]
+0.001683817123497210*Open[shift+60]
+0.000645916394658871*Open[shift+61]
-0.001229513645906610*Open[shift+62]
-0.005497165615453070*Open[shift+63]
+0.001719892732445040*Open[shift+64];
value2=
0.210642090317950000*Open[shift+00]
+0.271656355551084000*Open[shift+01]
+0.271656355551084000*Open[shift+02]
+0.210642090317950000*Open[shift+03]
+0.113366214899538000*Open[shift+04]
+0.017339655129830400*Open[shift+05]
-0.044811701929405100*Open[shift+06]
-0.059474537088348700*Open[shift+07]
-0.035754954878029800*Open[shift+08]
+0.002270804329963180*Open[shift+09]
+0.029697524121816400*Open[shift+10]
+0.033281042507046500*Open[shift+11]
+0.015981183265287400*Open[shift+12]
-0.007862943901791450*Open[shift+13]
-0.022723234810281000*Open[shift+14]
-0.021095992789986800*Open[shift+15]
-0.006603314272564040*Open[shift+16]
+0.009881836012723110*Open[shift+17]
+0.017854024794657900*Open[shift+18]
+0.013524194354160800*Open[shift+19]
+0.001241377137939080*Open[shift+20]
-0.010266977018020800*Open[shift+21]
-0.013862391185810200*Open[shift+22]
-0.008248135223019260*Open[shift+23]
+0.001954191195740410*Open[shift+24]
+0.009730937704226890*Open[shift+25]
+0.010434675351580300*Open[shift+26]
+0.004416791230436310*Open[shift+27]
-0.003756477431473020*Open[shift+28]
-0.008634197655553740*Open[shift+29]
-0.007475256109987750*Open[shift+30]
-0.001663522884800100*Open[shift+31]
+0.004584004921651760*Open[shift+32]
+0.007235217324080300*Open[shift+33]
+0.004975877012459140*Open[shift+34]
-0.000223061318466289*Open[shift+35]
-0.004725162649865770*Open[shift+36]
-0.005722101672782540*Open[shift+37]
-0.002953057716881230*Open[shift+38]
+0.001407739624700190*Open[shift+39]
+0.004393595974558090*Open[shift+40]
+0.004245548609330800*Open[shift+41]
+0.001397484055608480*Open[shift+42]
-0.002025967830578520*Open[shift+43]
-0.003772809896144160*Open[shift+44]
-0.002911735497357070*Open[shift+45]
-0.000292151553936419*Open[shift+46]
+0.002210279441029960*Open[shift+47]
+0.003012392996694690*Open[shift+48]
+0.001805433970046320*Open[shift+49]
-0.000400198804275733*Open[shift+50]
-0.002084665438964100*Open[shift+51]
-0.002255328667062000*Open[shift+52]
-0.001000793323845250*Open[shift+53]
+0.000712215248254048*Open[shift+54]
+0.001797318361302890*Open[shift+55]
+0.001728302950591050*Open[shift+56]
+0.000662981267470111*Open[shift+57]
-0.001261996942755200*Open[shift+58]
-0.005642398702623070*Open[shift+59]
+0.001765331663815800*Open[shift+60];
//----
Rezalt=value2-value1;
//----
//---- +SSSSSSSSSSSSSSSS <<< Three colore code >>> SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS S+
trend=Rezalt-Ind_Buffer1[shift+1]-Ind_Buffer2[shift+1]-Ind_Buffer3[shift+1];
if(trend>0.0) {Ind_Buffer1[shift]=Rezalt; Ind_Buffer2[shift]=0; Ind_Buffer3[shift]=0;}
else{if(trend<0.0){Ind_Buffer1[shift]=0; Ind_Buffer2[shift]=Rezalt; Ind_Buffer3[shift]=0;}
else {Ind_Buffer1[shift]=0; Ind_Buffer2[shift]=0; Ind_Buffer3[shift]=Rezalt;}}
//---- +SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS+
shift--;
}
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
  #12 (permalink)  
Old 05-28-2009, 07:54 PM
Junior Member
 
Join Date: Nov 2005
Posts: 17
kasmodiah is on a distinguished road
Weird, you should skin your programmer, anyway here is the repaired version, though I think with the shifted MAs you actually cheat yourself. The Indicator will show you the Signals too late.

Last edited by kasmodiah; 05-28-2009 at 08:36 PM.
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
  #13 (permalink)  
Old 05-28-2009, 08:35 PM
Junior Member
 
Join Date: Nov 2005
Posts: 17
kasmodiah is on a distinguished road
Here we go ...
Attached Files
File Type: mq4 3_MA_Cross_Alert_v3.mq4 (5.4 KB, 82 views)
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
  #14 (permalink)  
Old 05-28-2009, 10:30 PM
Senior Member
 
Join Date: Jan 2009
Posts: 493
Pava is an unknown quantity at this point
.

now indicator acting crazy...it places dots all over the place
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
  #15 (permalink)  
Old 05-29-2009, 06:53 PM
Junior Member
 
Join Date: Mar 2008
Posts: 11
cannu is on a distinguished road
Indicator from 1st post is repainting...

But im not sure.
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
  #16 (permalink)  
Old 05-29-2009, 09:03 PM
Senior Member
 
Join Date: Jan 2009
Posts: 493
Pava is an unknown quantity at this point
.

not only it repaints...it places signal one or two bars behind))...that's insane...
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
  #17 (permalink)  
Old 05-30-2009, 01:00 AM
Senior Member
 
Join Date: Jan 2007
Location: not so remote
Posts: 3,272
fxbs is on a distinguished road
just 4 info- also ind. 3MA_Cross_AlertWarnSigL_NegShift (mladen) here:http://www.forex-tsd.com/183059-post1276.html
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
  #18 (permalink)  
Old 05-30-2009, 08:59 AM
Cryten's Avatar
Senior Member
 
Join Date: Sep 2006
Location: UK
Posts: 209
Cryten is on a distinguished road
.........................................

Last edited by Cryten; 10-16-2009 at 06:03 PM.
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
  #19 (permalink)  
Old 05-30-2009, 09:17 AM
Cryten's Avatar
Senior Member
 
Join Date: Sep 2006
Location: UK
Posts: 209
Cryten is on a distinguished road
.........................................

Last edited by Cryten; 10-16-2009 at 06:04 PM.
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
  #20 (permalink)  
Old 09-18-2009, 03:11 AM
Junior Member
 
Join Date: Apr 2008
Posts: 10
vikram88 is on a distinguished road
Need Help adding an filter

I am testing attached artificial intelligence on EUR/USD 15 min After optimising Get good results Fixed stop loss, Trailing Stop & Reverse orders are excellent However The number of losing trades is high Can Somebody add a filter to reduce the number of losing trades I am also attaching another EA which is self optimising Maybe both of them can be combined
Attached Files
File Type: mq4 ArtificialIntelligence.mq4 (5.7 KB, 44 views)
File Type: mq4 Universum_3.0.mq4 (3.3 KB, 41 views)

Last edited by vikram88; 09-18-2009 at 03:13 AM.
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


Currently Active Users Viewing This Thread: 2 (1 members and 1 guests)
Sadly
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


All times are GMT. The time now is 12:30 AM.



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