Price Data Components
Orders Execution
Miscellaneous
0
Views
0
Downloads
0
Favorites
Profitability Reports
AUD/USD
Oct 2024 - Jan 2025
100.00 %
Total Trades
429
Won Trades
0
Lost trades
0
Win Rate
0.00 %
Expected payoff
0.00
Gross Profit
1747.00
Gross Loss
-1746.10
Total Net Profit
0.90
-100%
-50%
0%
50%
100%
GBP/CAD
Oct 2024 - Jan 2025
12.00 %
Total Trades
396
Won Trades
0
Lost trades
0
Win Rate
0.00 %
Expected payoff
-16.76
Gross Profit
875.45
Gross Loss
-7511.10
Total Net Profit
-6635.65
-100%
-50%
0%
50%
100%
GBP/USD
Oct 2024 - Jan 2025
89.00 %
Total Trades
435
Won Trades
199
Lost trades
236
Win Rate
0.46 %
Expected payoff
-0.85
Gross Profit
2933.10
Gross Loss
-3300.70
Total Net Profit
-367.60
-100%
-50%
0%
50%
100%
Volume_trader_v2_www.forex-instruments.info
//+------------------------------------------------------------------+
//| Developed by www.forex-tsd.com |
//| Idea from John Taylor v.2.0 |
//| |
//+------------------------------------------------------------------+
#include <stdlib.mqh>
#define MySuperMagic 111020051110
//----
extern int StartHour=8;
extern int EndHour =20;
extern double Lots =0.1;
//----
double LastBarChecked;
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
int init()
{
//----
LastBarChecked=Time[0];
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
return(0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
string cm="Volume ";
if (Period()==1) cm=cm + "1M";
if (Period()==5) cm=cm + "5M";
if (Period()==15) cm=cm + "15M";
if (Period()==30) cm=cm + "30M";
if (Period()==60) cm=cm + "1H";
if (Period()==240) cm=cm + "4H";
if (Period()==1440) cm=cm + "1D";
if (Period()==10080) cm=cm + "1W";
if (Period()==43200) cm=cm + "1M";
cm=cm + " - ";
cm=cm + TimeToStr(CurTime(),TIME_DATE|TIME_SECONDS);
int EAMagic=MySuperMagic + Period();
//------------------------------------------------------------------------------------------------
bool doShort=false;
bool doLong =false;
bool hourValid=(Hour()>=StartHour) && (Hour()<=EndHour);
if((Volume[1] < Volume[2]) && hourValid)
{
doLong=true;
Comment("Up trend");
}
if((Volume[1] > Volume[2]) && hourValid)
{
doShort=true;
Comment("Down trend");
}
if(Volume[1]==Volume[2] )
{
Comment("No trend...");
}
if(LastBarChecked!=Time[0])
{
int cnt=0;
while(cnt<OrdersTotal())
{
if(OrderSelect (cnt, SELECT_BY_POS)==false) continue;
if(OrderSymbol()==Symbol() && OrderMagicNumber()==EAMagic)
{
int ticket=OrderTicket();
double oLots=OrderLots();
double priceClose;
if (OrderType()==OP_BUY)
{
priceClose=Bid;
if(doLong)
{
LastBarChecked=Time[0];
return(0);
}
}
else
{
priceClose=Ask;
if(doShort)
{
LastBarChecked=Time[0];
return(0);
}
}
if(!OrderClose(ticket,oLots,priceClose,7,Red))
{
Alert("Error closing trade: " + ErrorDescription(GetLastError()));
return(0);
}
}
else
{
cnt ++;
}
}
if (hourValid)
{
if(Volume[1] < Volume[2])
{
OrderSend(Symbol(),OP_BUY,Lots,Ask,3,0,0,cm,EAMagic,0,White);
}
if(Volume[1] > Volume[2] )
{
OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,0,cm,EAMagic,0,Red);
}
}
LastBarChecked=Time[0];
}
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
---