Hi, there is simple code for Daily profit.
double DailyProfit() { double profit = 0; int i,hstTotal=OrdersHistoryTotal(); for(i=0; i<hstTotal; i++) { if(OrderSelect(i,SELECT_BY_POS,MODE_HISTORY)==TRUE && OrderSymbol()==Symbol()) { if(TimeToStr(TimeLocal(),TIME_DATE) == TimeToStr(OrderCloseTime(),TIME_DATE)) { profit += OrderProfit() + OrderSwap() + OrderCommission(); } } } ///////Alert(profit); return(profit); }The others can be displayed in a similar way.
Hi, there is simple code for Daily profit.
The OP asked for an MT5 indicator, not MT4.
Hi, there is simple code for Daily profit.
The others can be displayed in a similar way.Please insert your code correctly: when editing a post, press the button , then paste the code into the window that appears.
(this time I corrected your post and showed how to correctly insert the code)
Hi. Im trying to find a simple MT5 indicator that displays daily/weekly/monthly profit and loss. Thanks
Example: Simple Profit By Periods Panel
Panel based on objects OBJ_LABEL
The panel displays the profit for a trading account for a month, a week and a day. The starting point is the calculated date of the day. For example, if it is Saturday, then the date of the day is Friday. Accordingly, in calculating profit, you need to stay in the month of the settlement day.
Fig. Profit per month, per week and per day

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use