Orders Execution
Indicators Used
0
Views
0
Downloads
0
Favorites
Profitability Reports
AUD/USD
Oct 2024 - Jan 2025
0.00 %
Total Trades
2
Won Trades
0
Lost trades
0
Win Rate
0.00 %
Expected payoff
-328.45
Gross Profit
0.70
Gross Loss
-657.60
Total Net Profit
-656.90
-100%
-50%
0%
50%
100%
GBP/CAD
Oct 2024 - Jan 2025
36.00 %
Total Trades
48
Won Trades
0
Lost trades
0
Win Rate
0.00 %
Expected payoff
-0.89
Gross Profit
23.78
Gross Loss
-66.42
Total Net Profit
-42.64
-100%
-50%
0%
50%
100%
GBP/USD
Oct 2024 - Jan 2025
0.00 %
Total Trades
2
Won Trades
1
Lost trades
1
Win Rate
0.50 %
Expected payoff
-396.45
Gross Profit
0.70
Gross Loss
-793.60
Total Net Profit
-792.90
-100%
-50%
0%
50%
100%
UpDn-Alexander Piechotta
//+------------------------------------------------------------------+
extern double TakeProfit = 7;
extern double Lots = 0.1;
extern double TrailingStop = 5;
extern double StopLoss = 30;
int start()
{
double pos1pre=0;
double pos2cur=0;
int cnt=0;
int mode=0;
double openpozprice=0;
pos1pre = iBullsPower(NULL,0,13,PRICE_WEIGHTED,1);
pos2cur = iBullsPower(NULL,0,13,PRICE_WEIGHTED,0);
//Comment("??????? ??????? ",pos2cur,"Previous pos", pos1pre );
if (pos1pre >pos2cur) {
//????????? ??????? ???????
for (cnt=1; cnt<OrdersTotal(); cnt++)
{
OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
if( OrderSymbol()==Symbol() && OrderType()==OP_BUY )
{
if (Bid>(OrderOpenPrice()+TrailingStop*Point))
{
OrderClose(OrderTicket(),OrderLots(),Bid,5,Violet);
return(0);
}
}
}
}
if (pos2cur<0)
//????????? ???????? ???????
{
for (cnt=1; cnt<OrdersTotal(); cnt++)
{
OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
if( OrderSymbol()==Symbol() && OrderType()==OP_SELL )
{
if (Ask< (OrderOpenPrice()-TrailingStop*Point))
{
OrderClose(OrderTicket(),OrderLots(),Ask,5,Violet);
return(0);
} }
}
}
if (OrdersTotal() < 1 )
{
Print("pos1pre = "+pos1pre+" pos2cur ="+pos2cur);
if (pos1pre>pos2cur && pos2cur>0) {
int ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,Bid-TakeProfit*Point,"",0,0,Gold);
return(0);
}
// ????????? ?? ??????????? ?????? ? ??????? ??????? (BUY)
if (pos2cur<0) {
// print("K = "+K+" S ="+S);
ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,3,0,Ask+TakeProfit*Point,"",0,0,Gold);
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
---