MacdPatternTraderv05cb

Author: FORTRADER.RU
Orders Execution
It automatically opens orders when conditions are reached
Indicators Used
MACD Histogram
0 Views
0 Downloads
0 Favorites

Profitability Reports

AUD/USD Oct 2024 - Jan 2025
0.00 %
Total Trades 3
Won Trades 0
Lost trades 0
Win Rate 0.00 %
Expected payoff -10.00
Gross Profit 0.00
Gross Loss -30.00
Total Net Profit -30.00
-100%
-50%
0%
50%
100%
GBP/USD Oct 2024 - Jan 2025
100.00 %
Total Trades 4
Won Trades 1
Lost trades 3
Win Rate 0.25 %
Expected payoff 0.00
Gross Profit 30.00
Gross Loss -30.00
Total Net Profit 0.00
-100%
-50%
0%
50%
100%
MacdPatternTraderv05cb
//+------------------------------------------------------------------+
//|                                            MacdPatternTrader.mq4 |
//|                                                     FORTRADER.RU |
//|                                              http://FORTRADER.RU |
//+------------------------------------------------------------------+
 
/*

Îáðàáàòûâàåì ïàòòåðí ïðîäîëæåíèÿ òðåíäà. Ðàñøèðåííàÿ âåðñèÿ ñîâåòíèêà ñ àäàïòèâíûìè óðîâíÿìè ñòîï ëîññà, òåéêïðîôèòà, 
óïðàâëåíèåì ïîçèöèé äîñòóïíà äëÿ ñêà÷èâàíèÿ â íàøåì íîìåðå 18 íîìåðå æóðíàëà.

Manufacturing double apex double bottom. The expanded version adviser with adaptive levels StopLoss, TakeProfit, 
management positions available for download in our room 18 issue of the journal.


Ïðèãëàøàåì àâòîðîâ ñòàòåé ïî òðåéäèíãó!
 
Original description strategies:
http://www.unfx.ru/strategies_to_trade/strategies_134.php
 
Ïîäðîáíîå îïèñàíèå ïàðàìåòðîâ ñîâåòíèêà äîñòóïíî â 18 íîìåðå æóðíàëà, 
ïðåäëîæåíèÿ è îòçûâû ìû áóäåì ðàäû âèäåòü â íàøåé ýëåêòðîïî÷òå: letters@fortrader.ru
http://www.fortrader.ru/arhiv.php
 
A detailed description of the parameters adviser available 18 issue of the journal., 
suggestions and feedback we will be glad to see in our e-mail: letters@fortrader.ru
http://www.fortrader.ru/arhiv.php
 
Looking for an interpreter for the English version of the magazine on partnership.
 
 
*/
 
#property copyright "FORTRADER.RU"
#property link      "http://FORTRADER.RU"
 
 
int buy,sell;int nummodb,nummods;int flaglot,bars_bup;
int start()
  {   
      Comment("FORTRADER.RU");
      AOPattern();
 
   return(0);
  }
int aop_maxur,aop_minur,aop_oksell,aop_okbuy,S,S1,H,H2,bS,bS1,bH,bH2,stops,stops1,sstops,sstops1;
double max1,max2,max3,min1,min2,min3;
int AOPattern()
{
   //çàãðóæàåì èíäèêàòîðû
   double macdcurr =iMACD(NULL,0,13,5,1,PRICE_CLOSE,MODE_MAIN,1);
   double macdlast =iMACD(NULL,0,13,5,1,PRICE_CLOSE,MODE_MAIN,2);
   double macdlast3 =iMACD(NULL,0,13,5,1,PRICE_CLOSE,MODE_MAIN,3);
  
   
   
   
   if(macdcurr<-0.0015 &&  stops1==0){stops1=1;}
 
   if(macdcurr>-0.0005 && stops1==1){stops1=0;S1=1;}
   
    if(S1==1 && macdcurr<macdlast && macdlast>macdlast3 && macdcurr<-0.0005 && macdlast>-0.0005){aop_oksell=1;S1=0;} 
   if(macdcurr>0 ){stops1=0;aop_oksell=0;S1=0;}

   if(aop_oksell==1)
   {max1=0;max2=0;max3=0;
      OrderSend(Symbol(),OP_SELL,0.1,Bid,3,Bid+100*Point,Bid-300*Point,"FORTRADER.RU",16385,0,Red);
      aop_oksell=0;
      aop_maxur=0;
      nummods=0;
      flaglot=0;
      bars_bup=0;
      stops1=0;aop_oksell=0;S1=0;
   }
   
   
   if(macdcurr>0.0015 &&  stops==0){stops=1;}
   if(macdcurr<0 ){stops=0;aop_okbuy=0;S=0;}
 
   if(macdcurr<0.0005 && stops==1){stops=0;S=1;}
   
    if(S==1 && macdcurr>macdlast && macdlast<macdlast3 && macdcurr>0.0005 && macdlast<0.0005){aop_okbuy=1;S=0;} 


   
   
   if(aop_okbuy==1 )
   {
       OrderSend(Symbol(),OP_BUY,0.1,Ask,3,Ask-100*Point,Ask+300*Point,"FORTRADER.RU",16385,0,Red);
      aop_okbuy=0;
      aop_minur=0;
      nummodb=0;
      flaglot=0;
      sstops1=0;
      min1=0;
      min2=0;
      min3=0;
   }
 
}
 


Comments

Markdown supported. Formatting help

Markdown Formatting Guide

Element Markdown Syntax
Heading # H1
## H2
### H3
Bold **bold text**
Italic *italicized text*
Link [title](https://www.example.com)
Image ![alt text](image.jpg)
Code `code`
Code Block ```
code block
```
Quote > blockquote
Unordered List - Item 1
- Item 2
Ordered List 1. First item
2. Second item
Horizontal Rule ---