// // TradeHedge profit display // #property indicator_chart_window datetime bartime; int obj; int start() { if(bartime!=Time[0] ) { bartime=Time[0]; obj++; } int i; double myProfit=0; for(i = OrdersTotal(); i>=0; i--) { OrderSelect(i, SELECT_BY_POS); if(OrderMagicNumber()==200809241653) { myProfit=myProfit+OrderProfit(); } } ObjectDelete("myp"+DoubleToStr(obj,0)); ObjectCreate("myp"+DoubleToStr(obj,0), OBJ_TEXT, 0, Time[0], High[0]+(5*Point)); ObjectSetText("myp"+DoubleToStr(obj,0),DoubleToStr(myProfit,2),10,"Times New Roman", White); }
Sample
Analysis
Market Information Used:
Series array that contains open time of each bar
Series array that contains the highest prices of each bar
Indicator Curves created:
Indicators Used:
Custom Indicators Used:
Order Management characteristics:
Checks for the total of open orders
Other Features: