Orders Execution
0
Views
0
Downloads
0
Favorites
Profitability Reports
AUD/USD
Oct 2024 - Jan 2025
82.00 %
Total Trades
390
Won Trades
0
Lost trades
0
Win Rate
0.00 %
Expected payoff
-10.26
Gross Profit
17913.00
Gross Loss
-21913.00
Total Net Profit
-4000.00
-100%
-50%
0%
50%
100%
NZD/USD
Oct 2024 - Jan 2025
59.00 %
Total Trades
397
Won Trades
119
Lost trades
278
Win Rate
0.30 %
Expected payoff
-24.19
Gross Profit
13991.00
Gross Loss
-23593.00
Total Net Profit
-9602.00
-100%
-50%
0%
50%
100%
heikinashi
//+------------------------------------------------------------------+
//| heikinashi.mq4 |
//| Copyright 2008, FX scalper |
//| |
//+------------------------------------------------------------------+
#property copyright "Copyright 2008, FXscalper"
#property link ""
// üÍp[^è`
extern double Lots = 1.0;
extern int SlipPage = 3;
extern int Profit = 1000;
extern int StopLoss = 1000;
// }WbNio[è`
int MagicNumber = 111111;
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int init()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
//----
// ¤ÊÏè`
int ticket, i;
// ½Ï«Ìæ¾
double haopen , haclose;
haopen=iCustom(NULL,0,"Heiken Ashi",2,1);
haclose=iCustom(NULL,0,"Heiken Ashi",3,1);
// |WVÌ`FbN
int buyTicket = -1; int sellTicket = -1;
for (i = 0; i < OrdersTotal(); i++) {
if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES) == true) {
if(OrderSymbol() == Symbol() && OrderMagicNumber()==MagicNumber) {
if (OrderType() == OP_BUY) buyTicket = OrderTicket();
else if (OrderType() == OP_SELL) sellTicket = OrderTicket();
}
}
}
if (buyTicket == -1 ) {
//o[ÌnlÅȯêγµ
if(Volume[0] > 1 || IsTradeAllowed() == false) return(0);
if ( haopen<haclose) {
// ¢¶ð·é
ticket = OrderSend(Symbol(), OP_BUY, Lots, Ask, SlipPage,
Ask-StopLoss*Point,Ask+Profit*Point, NULL, MagicNumber, 0, Blue);
}
}
if (sellTicket == -1 ) {
//o[ÌnlÅȯêγµ
if(Volume[0] > 1 || IsTradeAllowed() == false) return(0);
if (haopen>haclose) {
// è¶ð·é
ticket = OrderSend(Symbol(), OP_SELL, Lots, Bid, SlipPage,
Bid+StopLoss*Point,Bid-Profit*Point, NULL, MagicNumber,0 , Red);
}
}
// N[Yð
if (buyTicket != -1 && haopen>=haclose ) {
// ¢¶ðÏ·é
if (OrderClose(buyTicket, OrderLots(), Bid, SlipPage, Blue) == false) {
}
} else if (sellTicket != -1 && haopen<=haclose) {
// è¶ðÏ·é
if (OrderClose(sellTicket, OrderLots(), Ask, SlipPage, Red) == false) {
}
}
//----
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
---