Orders Execution
0
Views
0
Downloads
0
Favorites
Profitability Reports
AUD/USD
Oct 2024 - Jan 2025
0.00 %
Total Trades
6800
Won Trades
0
Lost trades
0
Win Rate
0.00 %
Expected payoff
-1.47
Gross Profit
0.00
Gross Loss
-9966.10
Total Net Profit
-9966.10
-100%
-50%
0%
50%
100%
GBP/USD
Oct 2024 - Jan 2025
0.00 %
Total Trades
5702
Won Trades
0
Lost trades
5702
Win Rate
0.00 %
Expected payoff
-1.73
Gross Profit
0.00
Gross Loss
-9850.80
Total Net Profit
-9850.80
-100%
-50%
0%
50%
100%
tickscalping
//+------------------------------------------------------------------+
//| tickscalping.mq4 |
//| Copyright ?2008, MetaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright ?2008, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net"
double t[7];
double max=0,min=0;
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int init()
{
//----
ArrayInitialize(t,0);
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
//----
t[0]=t[1];
t[1]=t[2];
t[2]=t[3];
t[3]=t[4];
t[4]=t[5];
t[5]=t[6];
t[6]=Bid;
Print("t0=",t[0]," t1=",t[1]," t2=",t[2]," t3=",t[3]," t4=",t[4]," t5=",t[5]," t6=",t[6]);
Print("sum=",t[6]-t[0]);
closeprofit();
if(t[0]!=0)
{
max=ArrayMaximum(t);
min=ArrayMinimum(t);
Print("max=",max," min=",min);
if(max==4 && min==0)
{
OrderSend(Symbol(), OP_SELL, 0.1, Bid,1,Ask+5*Point,Ask-5*Point,NULL,0,0,Red);
return (0);
}
if(min==4 && max==0)
{
OrderSend(Symbol(), OP_BUY, 0.1, Ask,1,Bid-5*Point,Bid+5*Point,NULL,0,0,Red);
return (0);
}
}
//----
return(0);
}
//+------------------------------------------------------------------+
void closeprofit()
{
if(OrdersTotal()>0)
{
for (int i = 0; i < OrdersTotal(); i++)
{
OrderSelect(i, SELECT_BY_POS, MODE_TRADES);
if (OrderSymbol() == Symbol() && OrderProfit()>0)
{
OrderClose(OrderTicket(),OrderLots(),OrderClosePrice(),1);
}
}
}
}
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
---