Orders Execution
0
Views
0
Downloads
0
Favorites
Profitability Reports
AUD/USD
Oct 2024 - Jan 2025
12.00 %
Total Trades
6825
Won Trades
0
Lost trades
0
Win Rate
0.00 %
Expected payoff
-1.46
Gross Profit
1319.60
Gross Loss
-11303.60
Total Net Profit
-9984.00
-100%
-50%
0%
50%
100%
GBP/USD
Oct 2024 - Jan 2025
15.00 %
Total Trades
7439
Won Trades
1557
Lost trades
5882
Win Rate
0.21 %
Expected payoff
-1.34
Gross Profit
1801.10
Gross Loss
-11763.70
Total Net Profit
-9962.60
-100%
-50%
0%
50%
100%
MACDT
//+------------------------------------------------------------------+
//| MACDT.mq4 |
//+------------------------------------------------------------------+
#property copyright "Maloma"
#include <stdlib.mqh>
extern double Lot = 0.1;
extern double Take = 1;
extern double SL = 20;
double M00,M01,M10,M11,M20,M21;
int Magic=986234856;
int start(){
M00=iCustom(Symbol(),0,"MACDTrad",0,0);
M01=iCustom(Symbol(),0,"MACDTrad",0,1);
M10=iCustom(Symbol(),0,"MACDTrad",1,0);
M11=iCustom(Symbol(),0,"MACDTrad",1,1);
M20=iCustom(Symbol(),0,"MACDTrad",2,0);
M21=iCustom(Symbol(),0,"MACDTrad",2,1);
RefreshRates();
if(OrdersTotal()<1)
{
if(M00>M01 && M10>M11 && M20>M21) OrderSend(Symbol(),OP_BUY,Lot,Ask,2,Ask-SL*Point,0,NULL,Magic,0,CLR_NONE);
if(M00<M01 && M10<M11 && M20<M21) OrderSend(Symbol(),OP_SELL,Lot,Bid,2,Bid+SL*Point,0,NULL,Magic,0,CLR_NONE);
}
int c1=OrdersTotal();
for(int c2=c1;c2>=0;c2--)
{
OrderSelect(c2,SELECT_BY_POS,MODE_TRADES);
if(OrderProfit()>Take)
{
if(OrderType()==OP_BUY)
OrderClose(OrderTicket(),OrderLots(),Bid,2,CLR_NONE);
if(OrderType()==OP_SELL)
OrderClose(OrderTicket(),OrderLots(),Ask,2,CLR_NONE);
}
}
return (0);
}
Comments
Markdown Formatting Guide
# H1
## H2
### H3
**bold text**
*italicized text*
[title](https://www.example.com)

`code`
```
code block
```
> blockquote
- Item 1
- Item 2
1. First item
2. Second item
---