MQL4 and MetaTrader 4 - page 992

[Deleted]
Hi everybody, I was messing around the other day with MT4's default ADX indicator. It has a apply-to price choice (close, high, low, typical, etc). It works great in the charts. However when I tried to extract the code for it using the ADX source code in MQL4 codebase. The choice is not available as...
MT4 trade history will show 'profit' on the footer pane. But some brokers are charging commission rather than spread. As an improvement - MT4 ought to add a total for the commission column footer (when unhidden) that reflects 'profit-commission'.
I was looking for a function where I can get the current quote rate, but was unable to find it . I found point while searching for it, but I don't think I understand the full functionality of point as of yet, so I need some clarification. I am going to try my best with coding examples of what I am...
I just started using a Hull MA. I've looked for a crossover alert that can use "names" to identify which moving averages to keep track of...but cannot find such an indicator. Does anyone know of such an indicator? It seems pretty simple. I just need a name field to "see" which moving
Any ideas on how to fill an array in a "clockwise spiral" fashion?. If I create a form whose seed number is 1. With an upper max of X*Y. The array dimensions will be the square root of X*Y or Array(X,Y). If I had another one dimensional array with the numbers 1 thru X*Y, how can I fill the main...
Hi all, again and sorry for misunderstanding: take a look to this indicator and you definitely figure what i meant with ("problem is that i have to wait to next day to draw if i put it on chart today") if you put it on live chart you will not see any thing (and that is the problem) so test it on...
[Deleted]
datetime current_bar_time;int file; int i; int pair_condition [2]; double lots [1]; int count;double high, low, close, volume;double assets;string pairs [21] = {"EURUSD","AUDUSD","EURCHF","EURJPY","GBPUSD","GBPJPY","NZDUSD","USDCAD","USDCHF","USDJPY","AUDCAD","AUDCHF","AUDJPY","EURNZD","CADJPY"...
//+------------------------------------------------------------------+//| RSI-3TF_ALERT_25.mq4 //+------------------------------------------------------------------+#property copyright "AHGduP"#property link "RSI-3TF_ALERT_25"#property indicator_separate_window#property indicator_buffers 8#property...
  Swap formula  (3)
Hi all, My broker uses MODE_SWAPTYPE=0, accordingly I am obtaining my swap in points. Asinstance, the swaps for the pair AUD/JPY is: Swap Long = +1.4234 Swap Short = -1.7759 Sincerely, I don't know what those number means. Where those number came from? In my strategy, Swap is the ruler. And I work...
[Deleted]
how to detect Stoch Cross Over? is this correct? stochMain = iStochastic(Symbol(),0,stochKperiod,stochDperiod,stochSlowing,stochMethod,0,0,0); stochSignal=iStochastic(Symbol(),0,stochKperiod,stochDperiod,stochSlowing,stochMethod,0,1,0); if(stochMain==stochSignal)//stoch cross each other...
looking for code that will enter all pairs listed in MT4 that are postive swap values and enter them based on that Thats it Anyone could help thanks
  date time math?  (2)
Hi, I would like to perform a function call after having done some calculations with date and/or time. If i.e. the time is 14:00, I would like to perform a function call at 14:00+5, meaning 19:00. I've googled and searched through the documentation/book but I didn't come up with any examples....
[Deleted]
Please can someone help me with a traditional trendline that automatically draws trendline(not Demark). Someone said it is called lineman. I have however searched here but i am yet to get it.
hello friends looking for indicator ZIG ZAG applied to obv data ? tryed to google it; just cannot find it ! please kindly help regards
[Deleted]
// test_file_funcs.mq4 : indicator#property indicator_chart_windowint init()  {//----   //----   return(0);  }int deinit()  {//----   //----   return(0);  }//+------------------------------------------------------------------+//| Custom indicator iteration...
[Deleted]
I would love to find a candle time (for m1,m5,m15) that actually shows every second passing. The timer I use now pauses, and I never know exactly when the next candle is about to open. Thanks.
I am reminded of the anecdote when the city boys caught a villager in the street, and he cries and begs them not to beat him so pitifully: "Don't beat me, guys, I am a city boy, I have already ridden on a trolleybus, but I do not understand how gasoline flows through the wires? So. Sorry for such a
Hi guys, I'm trying to plot arrows where the TDI crosses the RSI line but I get extra arrows, anyone got any ideas - it's been driving me crazy. It plots OK if I compile when MT4 is running, but changing time frames or restarting messes things up. Cheers. int start(){if(Bars <= 10)...
I am extracting all trades from account history as well from trades and storing in a MySQL database I would like to get the funding info too like deposits and withdrawals. Is it possible? Did not find any information in the MQL4 documentation.
[Deleted]
Hello i just create a custom indicator and it works well.. i decide to add some function using windows dll.. i use all different variable's name, so i'm 100% sure that no overlapped variable name. But its strange that after i add the function, the procedure affect the indicator calculation... so...
Trying to figure out how to suppress the Trades (TESTDETAILS) in both the Strategy Tester and Optimization reports. The htm files in the Templates folder provides the format for these report, but it is not what generates them. So far I have been unable to find & figure out what is generating them...
Hi, I made one dll that try call some function from metatrader platform.: Collapse | Copy Code  #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers#include <windows.h>#include <stdlib.h>#include <stdio.h>#include <string>#include <vector>#include <iostream>#include...
I have a custom indicator with only one buffer inside it, I want to run another indicator on the first indicator data set ... is any one help me out??
Hello, Does anyone can explain to me what is the problem with the following function ? It says to me : end_of_program : unbalanced left parenthesis. void fStopLimitMin(double iStop, double iLimite) { if ( iStop < MarketInfo(Symbol(), MODE_STOPLEVEL) iStop = MarketInfo(Symbol(),...
The terminal reports "No Connection" and can't connect to any of my accounts, tried scanning for the company server(s) but still report: "No Connection".. wanted to use the mql platform as against the two from my brokers (ie. have both accounts on the same platform), just turned out that this...
  Undock Charts!  (7)
Hi, Can we undock charts as at times it would be preferable to see multiple charts at the same time on different screens. Thanks.
This is kind of a stupid question but I can't find the answer anywhere. I've noticed that on the trade tab in ther terminal the prices, stoplosses and take profits are sometimes highlighted with a green or red background. What does that mean?
Hello, in this ea the number of bars is always zero.how can it be? <SNIP>
Hello MQL4 coderz, One problem is troubling me very much, when I load standard Moving Average Indicator, It ask for "apply to" option, where we can select previous indicator data, But same I tried with my custom indicator, there was no such option, can any one suggest me how to achieve such...
  zigzag question  (23   1 2 3)
Hi all! I am trying to understand the parameters of the custom indicator ZigZag. I am not familiar with it and am currently studying the code to become familiar with it. If anyone has experience with custom indicators specifically ZigZag and has the time to share their knowledge of it please feel...