Orders Execution
0
Views
0
Downloads
0
Favorites
Profitability Reports
AUD/USD
Oct 2024 - Jan 2025
0.00 %
Total Trades
1
Won Trades
0
Lost trades
0
Win Rate
0.00 %
Expected payoff
-6553.00
Gross Profit
0.00
Gross Loss
-6553.00
Total Net Profit
-6553.00
-100%
-50%
0%
50%
100%
GBP/USD
Oct 2024 - Jan 2025
0.00 %
Total Trades
1
Won Trades
0
Lost trades
1
Win Rate
0.00 %
Expected payoff
-7912.00
Gross Profit
0.00
Gross Loss
-7912.00
Total Net Profit
-7912.00
-100%
-50%
0%
50%
100%
test_swap
//+------------------------------------------------------------------+
//| test_swap.mq4 |
//| Copyright © 2007, MQL Service |
//| http://www.mqlservice.com |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2007, MQL Service"
#property link "http://www.mqlservice.com"
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int init()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
//----
for(int i = OrdersTotal()-1; i>=0; i--)
if(OrderSelect(i, SELECT_BY_POS))
{
if(OrderSwap() != 0) Print("Swap is not zero", OrderSwap());
return(0);
}
OrderSend(Symbol(), OP_BUY, 1.0, Ask, 3, 0, 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
---