Orders Execution
Indicators Used
0
Views
0
Downloads
0
Favorites
Profitability Reports
AUD/USD
Oct 2024 - Jan 2025
415.00 %
Total Trades
308
Won Trades
0
Lost trades
0
Win Rate
0.00 %
Expected payoff
0.53
Gross Profit
214.90
Gross Loss
-51.80
Total Net Profit
163.10
-100%
-50%
0%
50%
100%
GBP/CAD
Oct 2024 - Jan 2025
3.00 %
Total Trades
17
Won Trades
0
Lost trades
0
Win Rate
0.00 %
Expected payoff
-18.44
Gross Profit
8.09
Gross Loss
-321.54
Total Net Profit
-313.45
-100%
-50%
0%
50%
100%
GBP/USD
Oct 2024 - Jan 2025
222.00 %
Total Trades
398
Won Trades
397
Lost trades
1
Win Rate
1.00 %
Expected payoff
0.38
Gross Profit
277.90
Gross Loss
-125.40
Total Net Profit
152.50
-100%
-50%
0%
50%
100%
UpDn-Alexander Piechotta-30
//+------------------------------------------------------------------+
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,1,PRICE_WEIGHTED,1);
pos2cur = iBullsPower(NULL,0,1,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
---