Disliked{quote} Now the default is Off. It will remember the state of the button when switching TF's. {file}Ignored
1
I will code your pivot EAs for no charge 25 replies
I will code your scalping EAs for no charge 163 replies
Oanda MT4 - Indicators and EAs not showing 2 replies
EAs and indicators relating to moutaki... 22 replies
InterbankFX has loaded its MT4 platform with custom EAs, indicators and scripts 1 reply
Disliked{quote} Now the default is Off. It will remember the state of the button when switching TF's. {file}Ignored
Disliked{quote} Use google to lookup icustom and how to use it for mt4. In the pic below, icustom is shown from the documentation, and a sample inputs list of an indicator is shown. Say you want to get some buffer value of the indicator at some candle, but you want to change the 1st and 3rd inputs instead of the defaults: - with no inputs, icustom will use the default values the indicator has - with inputs, icustom will treat each consecutive input as the input for the indicator, so their order and data type needs to match - any inputs left out will use...Ignored
Disliked{quote} Start with the pseudo code then fill it out. Below gives you a struct array of every traded symbol with it's trade history and p/l total, from that you can do further per-symbol stats. Or you could just use a simple array for names and p/l, then sort the names and p/l arrays by size, giving you an ordered list of p/l. Off the cuff untested- struct s{ string sym_name; double trades_profit[]; double trades_profit_sum; }; s stats[]; //loop through all closed trades void trade_history_symbols_sort() { int count_sym = 0;//start off with 0 symbols...Ignored
Disliked{quote} The input parameters passed by iCustom must be in order. You can't omit some parameters and start passing them from some point further down the list of input parameters. I'm not sure what you're trying to create, but it's practically impossible to create a universal alert indicator to service any other indicator. This can be done for buffers, and there are such indicators, already. However, you can't create a universal one for any indicator which requires to input some parameters, because they are all different. And, if you get just one...Ignored
Disliked{quote} Hi jeanlouie, thank you so much for you response I almost finished it.{image} Well, it still needs some corrections, like it doesn't correctly calculates percentage. For that I need more ideas and coding, such like I need to get first deposit amount, then when I opened/closed a trade on symbol and add its profit to balance and calculate percentage and then sum up all that, it looks a big thing for me since I need to add all that calculations, next deposits, withdrawals and also credit in/outs And also...Ignored
Disliked{quote} https://docs.mql4.com/account If you can calculate P/L's, you can calculate deposits. However, you also need to calculate the withdrawals...Ignored
//+------------------------------------------------------------------+ //| Function to get Account Summary | //+------------------------------------------------------------------+ AccountSummary GetAccountSummary() { datetime startTime = 0; // beginning of history datetime endTime = TimeCurrent(); // current time HistorySelect(startTime, endTime); int totalDeals = HistoryDealsTotal(); AccountSummary summary = {0.0, 0.0, 0.0, 0.0}; for(int i = 0; i < totalDeals; i++) { ulong ticket = HistoryDealGetTicket(i); if(ticket > 0) { int dealType = (int)HistoryDealGetInteger(ticket, DEAL_TYPE); double dealCredits = HistoryDealGetDouble(ticket, DEAL_PROFIT); if (dealType == DEAL_TYPE_CREDIT) { if(dealCredits > 0.0) { summary.creditsIn += dealCredits; } else if(dealCredits < 0.0) { summary.creditsOut += dealCredits; } } else if(dealType == DEAL_TYPE_BALANCE) { if(dealCredits > 0.0) { summary.deposit += dealCredits; } else if(dealCredits < 0.0) { summary.withdrawal += dealCredits; } } } } return summary; }
Dislikedcould anyone fix the lag caused by this indicator ? its a fabulous indi but makes MT4 lag when applied to chart . many thanks nelly {file}Ignored
Dislikedim even happy to pay someone for their time to fix the lagging bugIgnored
Disliked...a few people saying it was lagging...i do already have the obvious settings in MT4 to try speed it up...Ignored