Technical Indicators - page 52

Hi i know about iMA function but my indicator isnt finished like that yet and iMa does not work for my purpose. int inpPeriod = 5; int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time[], const double &open[], const double &high[], const double &low[], const double
[Deleted]
I have been a big fan of accurate reversal indicators which are really useful in joining the trend after a pullback. Over the last few months I figured out that the standard Bollinger Bnads. RSI and Stochastic indicators require some sort of extra enhancements with Fractals to pin point the most...
My custom indicator does not update with new bars. I tried to create a handle that I can use with CopyBuffer() to increment the bars to no avail. Not sure if correct method so I deleted it from source code. Please help
Hi guys, I am looking to draw new bars from the OHLC information of a bar. I want to draw four new bars from the information of open, high, low and close of just one bar. Can someone tell me where to start
  Spread between two futures  (61   1 2 3 4 5 6 7)
Good afternoon everyone! I have written an indicator that draws the spread between two futures. I have two problems: 1) the indicator is wildly glitchy, sometimes it is displayed, sometimes it is not displayed, then it shows some nonsense (I have to press refresh, and then it seems to fall into
Hello everyone, I'm a newbie to MQL5 and I've tried to search on this forum but couldn't find a solution for my problem. I'm coding an indicator which is used for my EA. The main purpose of this indicator is counting the number of bars of each peak or trough (in other words, it forms the highest
Can't seem to find an example anywhere. For example, I'd like to have the RSI indicator with a moving average on top of it. Any oscillator is fine, once I have an example I can adapt it to my own needs. Thanks
  The Simba Con Man  (338   1 2 3 4 5 ... 33 34)
Hi everybody, As you read these words,you may just start wondering if I have discovered something that can make you rich..Well..it can,but the end result depends on you. What I have discovered is something that can skew the probabilities in your favour..imagine playing roulette,knowing that Red has...
Hi , Greetings I need help to modify a indicator 1) I need to compare the close price of lower time frame (Min/Hr) to day open price. 2) Comparing daily ,weekly ,monthly open price to same time frame close price . Need support to do both in single indicator. Thanks in advance
There are indicators which shift their values to the future, e.g. Gator or Ichimoku. I've noticed that CopyBuffer(ind_h, 0, 0, 9999, valc) returns the most recent value that corresponds to time[rates_total-1] bar, so the shifted future values are not available. Is there any workaround for that
Indicator compiles fine but when loaded gets error stating 'zero divide in line 190.' Looks like volumes are returning a value of 0 in the divisor. Using iVolumes to retrieve volume not sure what is missing. Please help
I have re-coded an indicator that I used previously with TC2000. When I run it on history, it only plots every value either above or below 0 but not both. I set it up with test data that definitely had positive and negative values, it showed the 2 different colors, but still would plot ALL values
Hi, how to get the below metaquotes indicator to draw bars without gaps ? where all "open" equals to previous "close". Can someone please help on this //+------------------------------------------------------------------+ //| ColorBars.mq5 | //|
Hello. I am a beginner in programming. I heard that MQL5 is based on the concept of the C++ programming language, so I searched the net for C++ and learned about it, but I just couldn't understand the following, so I asked in the forum. Please help me. I'm using a translation tool to convert it to
Hi everyone I'm pretty new into coding with MQL. I'd like to creat a horizontal line and I have seen two ways to do it: I just see that the first option is just more code but easyer to analyse... Is there any difference for the compiler or something? First Option: ObjectCreate ( 0
I am trying to create a simple mt5 indicator which plot the sum of the all open positions on chart , for example if there is 3 open positions with 0.5 lot size, it must print "1.5 lot" on chart . can somebody help me please
Hi, How can I get the price of each Fibo level in this indicator
I bought a very sofisticated Indicator that has about 150 input parameters . iCustom has a limit of about 60 something. I want to use this indicator in my EA that I am writing. However, I need to change some of the default parameters when using the purchased indicator. When loading all of the
Hi, I created a custom indicator that doesn't update or move along with new candles on the chart. I think it has something to do with the way I am using rates_total and prev_caculated but I'm not sure. Currently, my array buffers are "TRUE" for ArraySetAsSeries() and I have tried several different
Hi, Just testing to draw dots on the chart in its simplest way. So i wrote this simple piece of code : void OnTick () { SetParameters(); static datetime bar_time= 0 ; datetime this_bar_time= iTime ( Symbol (), PERIOD_M1 , 0 ); if (bar_time!=this_bar_time) {
  Arrow colour  (6)
Hi, I am a complete noob, and trying to learn how to code an indicator. At the moment I am simply trying to draw an arrow when a moving average cross occurs. It is working, except that I would like the colour of the arrow to correspond with the direction of the cross. I have tried the simplest
Hi, I created a realtive complex indicator. It is drawn in the graph, but when a candle is added, it is not calculated. I used to create indicators that were slower but they were calculated on a next candle
Hi guys, If you can help me with this, I will be really grateful! I need a simple code which prints on the screen as Comment() the following parameters: TotalProfit Max Drawdown These 2 values should be calculated over all the history for orders with the same Magic # I couldn't find anything similar
Dear MT-friends, I programmed a simple clock-indicator that should show the current time in HH:MM:SS-format in the right upper corner of the chart. So far so good. The problem is that this clock is supposed to update every second ( EventSetTimer(1) ), but it doesn't: there are many, frequent
Hey guys please do anyone know the name of this indicator that show the pips of running trade and the % generated by the trade like on this picture. Thanks
Hello, my name is João and I am studying the programming language of MT5 for approximately 5 months. I got a source code on the internet to test and see if I was learning the language, I fixed all the errors in the code, until finally I managed to compile the indicator without any error, but at the
Hi guys, I would need an indicator to be applied to the chart that inserts a line every time that from one price to another price there is a variation of consecutive points inserted by input. ex. 190 points have passed from point X to point Y, without the price going into stop loss of tot point this
Hi, I have created an indicator that makes multiple calls (50+) to iCustom. I am pretty new to coding but feel maybe this isn't an optimal way to do it. Is there a better way
Hi, Unfortunately my search didn't yield any results in the MQL5 constants/functions. Is there any way to read out the current value that was put into the one click trade panel? Your help is much appreciated. I am getting back to MQL5 programming after some time of absent, so please be patient with...
Hello, I have about 1-50 mb data in memory and for access/analysis I need fast access to this memory. I have to inserts my Array of structs (sometimes 60 double pairs) in the large Array, move memory around and so on. struct stMyStruct { double dblD1; double dblD2; }; ... stMyStruct mySt;