Technical Indicators - page 51

Hello, in mql4 i can set style and color for an indicator dynamically usign function SetIndexStyle(index, DRAW_LINE ,EMPTY, 1 ,my_clr); Is there something similar in mql5 or do i need to use #property indicator_type1 DRAW_LINE #property indicator_color1 Cyan Thank you
I came across with the following functions: CopyTickVolume , CopyTicks , iTickVolume Is there any chance to work with each historical data ? For example if on 1min chart there are 100 ticks, is there any chance i can go through all 100 ticks and sum that volume up ? I just tried to use iTickVolume
Hi! I'm experiencing an issue I don't recall seeing before: when OnCalculate inside a custom indicator is called for the first time, "prev_calculated" comes with 0. Once the first processing happens, the OnCalculate is finished with "return rates_total". So, in the next call of OnCalculate
I bought EA, and when installing it indicated that it was old. I have to do with it? How to update this software. This EA is: <Deleted> Thanks
Dear MQL community for now just sorry for my question. Maybe for you it sounds silly, but there is no other professional which I could ask. My issue: I try to download a Oscillator from one of your developer: <link removed> And also I try to buy another products on the MQL-Market. But when I press...
There is an option for Moving averages named "use on: Previous Indicator's data ". So if we have an indicator which current value is about 1000, but the value of ma indicator is 1.229, the ma value get an offset to be around 1000. (i dont exactly know how this works) This works perfectly on mt5 in
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
Hey , I have not yet worked on indicators that much and therefore I'm now facing a problem that might be easy to solve for soeme or does not make any sense. The Indicator Automatic Trendlines paints a candle which fufills certain criteria in a colour. Now I want to create an indicator thats relys on
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