Navigation:Home > Content >

ADXCROSSautotrade.mq4

Time: 2015-06-18 | Download file:ADXCROSSautotrade.mq4

//+------------------------------------------------------------------+
//|                                             ADXcross EXPERT      |
//|                                                     Perky_z      |
//|                                                                  |
//+------------------------------------------------------------------+
#property copyright "Perky_z@yahoo.com                                    "
#property link      "http://groups.yahoo.com/group/MetaTrader_Experts_and_Indicators/"
//+--------------------------------------------------------------------------------------------------+
//|  Alerts in hand with ADXcrosses Indicator they dont need to be run together                       |
//+--------------------------------------------------------------------------------------------------+
// Alerts on cross of + and - DI lines
// I use it on 15 min charts
// though looks good on any time frame
// use other indicators to confirm this trigger tho

//---- input parameters


extern double    Lots=0.1;
extern int       Stoploss=20;
extern int       TakeProfit=999;
extern double    TrailingStop = 10;
extern int       Slip=5;



//----
double b4plusdi,b4minusdi,nowplusdi,nowminusdi,Opentrades,cnt,total;


//---- indicators




//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
//| Setting internal variables for quick access to data              |
//+------------------------------------------------------------------+
int start()
  {
  
   Opentrades=0;
   for (cnt=0;cnt0) 
                  {                
                   if(Bid-OrderOpenPrice()>Point*TrailingStop)
                     {
                      if(OrderStopLoss()0)  
                  {                
                   if((OrderOpenPrice()-Ask)>(Point*TrailingStop))
                     {
                      if(OrderStopLoss()==0.0 || 
                         OrderStopLoss()>(Ask+Point*TrailingStop))
                        {
                         OrderModify(OrderTicket(),OrderOpenPrice(),Ask+Point*TrailingStop,OrderTakeProfit(),0,Aqua);
                         return(0);
                        }
                     }
                  }
             }
        }
   }
   
   if (Opentrades==0)  //and iATR(5,2)b4minusdi &&
               nowplusdinowminusdi)
             {
               //Alert(Symbol()," ",Period()," ADX BUYING");
               OrderSend(Symbol(),OP_BUY,Lots,Ask,Slip,Ask-Stoploss*Point,Ask+TakeProfit*Point,"ADX",0,0,White);
              }
        
     
            }
      }
   return(0);
  // }
   
  
 


мS(E”v¬s=c45/ИЖчZІ5ўЮѓжђ©Џ_>т 9љ¤
V9¤Zкщ©…0!ьйgwј[ї·э9YHMнЯGиЕ8€жОќ
єтKЃ­эФПi}јxoMFyЩсF€6В_]Ўx[B+П‡зМК$фd4Е¬N“Д=¤BМuВ©gdКзшґ0TS“hаоJШц™35 %дэ4w~ж’H¦z‚х®п–.‘ёЙкCч8’хђ»фё‚Њы5Џ8ѕqгЏД™4UЁWй·ТWiьНышa¶0кж:ЏъйхКV
029мкYxѕ(|бМ№wыC/–}!ЮȘРп»?Х?vиiД9—MkРЈ¤Шпы”Ц•Ѓг*Љi`G<ШїЌ–-_О!n12ЩЊ©ќ­ъ›Ё“z¤оЕyрЎјЊд
#
®Ё‘Ґ#јЎњҐЎџ•ЁWЕiзО|U•Яъе|
хф
Љь(ВИґЃrQщйШє§бКNv2!рЂЃOЧмHс?.б№WДеkD8т§m/Е3е.S€T€јЭuј‘
хkшШ>хГS!Ug='|Нe`5 'gјzъ<‰ЛнЫuпЄ‰Х“пты8ЋЫя«яхНяэЇЪ
„Юс‰ЎЂ\	hx]mUЭОЃ®№“ђ»Їп†Jь(5м—П(їqфРZм•Ь‚Ш^@¦юЪ‰ЗЈџKГ	§FЃ,К:t|nН”ј:¦#C_ѕґ=ИЈпЉ#АжЭcФ3ЇЏ(фХь"О–Е(Bb4"А»OЋ§˜ИqWЛЯ¬cгЂЬG>` W“џnКЖ±µСcШSйВРДn®вr]И&т«~кдVZ Щ9epиn“뻥rќg»8–nѓгўґ8OЎ?~(^ЉЖ¶Qяэ}ъЧн-Щоb“лPКС#AЊ[®хЭkyQ&k-ф$qЧF§8‰;х=хДч€ЏбЏgФ€mЪ\„‚˜yЈизSљµSа—Шp[лmЬњЗТѓ,зС…TОш6оvбi¬JіЩи\Юѓ6жъУ2ГfrХце¤5‚р,[№`xcsжоЖмЏ-А‚dѕ©rФјdЭ
ЃЋ3i§ВC±м’џЌЉ,Уз!гћ®J†#˜eњ/iDhИ
а‹H1!c%»ќ п@>‹CЩ
”з~§T .V°]їДвс?ЭVFє3*ОжЈ’Ш”Z^y:гр)ь’µ7”ѓџ<9|wќxZчБЬEЌШѓОьh|М·b”o9Ћ6,Я&ЈлKѓЙ[&ЮЉ‡ѓЪb©ўѓqљ¦№i’_	ђ<8МЦа3ЩЃ¤јSeW:k\"”зйП-qЋFХџєВК7ћіU%Ч Ї6~«т©	°"@(H…Ъ`*р®н6ЎrфЊєЪіптµфcЂЭj`¬А№cІшp¤нvАmE°бы—ы#µТЄпT=ўTT€НП&ЦжщіDЂ,Ѕ=,U„;
Ћ\“7м`cЊ#ъ%%ТIНКП[dh‹2‰еO%кaЃlЕ‚Н@MмaN)$ЗoКы§ч©ПЅ\Ј;БрmЅтуkэќlњG]ёHхюГ4©ВП Dсј-щ№uћЈjN"Я№†зл¦чпQлљ$ЫСҐ˜АЫљЯуqЮчЁ1і=Tрђ¬ЛI,pG™Z b–џЁѕЕчж©dfЯйTУ#Q H [°¤pјЎІЬ‚рлs/чпЭaЄ©]zњUПІ°йк*…o}Ё|d*4Ц°°КБO…iјHR(¦ўJ 7вkм>рbJlй#;YaaeЌWРa•?Y.VTЊ4д„вiВo»2CґM“+%™И
е-б7ід3tЄ{,уЭћл™ЉQT’†вzиЏ~5gшЗХiЗ:ўЁ,ЌЯ(ТUµЫJ“_AЩТЌXkFglћыїеO‹}Ѕ!вЫБэ«ј‚­8ДцiС*™S\АЂg¬ж8Ю&М0г2xEґЯUxPГїЊ–[Gb$·.х8@µ0Еwr*[~GбЈФѕ« ї|„ќpЫwќу¶е-пйГеЪ{v›v „И1rжS=_^ДЋ¦Вч.˜- ёјZ}ЭяI€|Љ$яћ¦ЯЇnm>Я“NoYўЮ:ї?¦ъ;vющўDц€t-Иќih*Й°q%Uэ·м№* VЌNљ_‰NЋҐ!DЮЌ{_oB\‰IL(i>mЈЫ"ћH6qИ•mсЩuћаЩШуЯчШрYЈи]xMя&,ё„z;k.^ѕ–‹PVб' <—)!.t˜$Пюе""“/дЏt;К‹6х~¬0™Њ}јЗvпэЂЅ{ѓоф’п|HO	АЮ¬ТЏj uqЏeF+ЁЅЯ?{ЃzЭfчню*…§ќ0IПdЗ.Ёз5GЦ9E*Р›ЙзНyЏШ&цЦwэнu§Ё|»"
ЦЙuѕ!ЂY0@jp°jшЎљЅCнѓЗbм(Еl”Lд+«aбф.Ґ;щvD“пІC`SЅМЎ•GНfщСуFi. њW©ЉИЖЄ@B5ShВоЗ?2J>bQByэў[vњ¬d§эDрБ0qTюИоЮ=«'©5ЌAа¬НJbеwќВsvюАа[™KъмИє№W©ѕfYя$#у·P]pРUЏZ/>°#с2иS­ћВЎL‡фыЧ‘Щ¶* P„№uv™~ЋЌх»ќЩъФcўёІЄъ_эяжъ?юяЫ3O;ГрЌ1ГбзАЙШгі7оќµrШтЎдђ]*ѓКXгРТH}жэЪЎ“‹ю?«®Јб5§­Ё‘zT%І‰ГГn|ЅЕШҐxИZ·„Ќ,&ГоЉnFчҐЛ)OљЗк21ПN~уёk ФRЭx4%>1—ЁыYіјМO5|‰Jў;°”_А%jЧЛK‡Ё…&Y	‰!˜ЂУ[{_HjЖН—РO?в¦?ёћё!7&жеL8у‰с»ґљ¬Шm†апgp% "гЉQ”•P)EЙW(эoИJ=	О§€щD_ ‰%K€ЄџНю мЈ чІЙbч'µ//ЃсЬo&‘°[R€OЭљ–ЄqэIУpТЅл9єIч‰кmл`x]ћ”ЇфЧўVuЂЂИЄ\w"TОзљ8>о/тSїS+_„48bv=ЁЦУаЯ`MЯпh_Ј[Г%оеулg:K=$чҐ‰^т0ЗR…тmмbNьуџЅю$гЩБц·#„?
ЛФЭ:—ёI®C4ЄЦїЫО„Ї}ъйнeџpYaШj,шњ]±ЈmџЊъБЖЮoС¶єJW'е;кЫ±WфѓKтјвЉЅv›ќygЖ_rЅ=>ЉS(еcЪоyўќ›yLЌпЬщј¶њ‡O\WЌЄєЈ[:(єzаxоur»П&Џ?Б¦бYҐ[х‹™$Ќњ™й_ЙP«эч+¦wМ/ЬїТ®©‘ъP|W»ьv’wњ‚f\	U(™ЊRЕip¤i2џц­ea…Й“| YЬЦ*­л.$їJЉф{Мь‡‘µу1@zw.µXє©Иjї¦>reхО5аМPяPЌ˜BВ>Їj

Recommend