Technical Indicators - page 2

to import an indicator into my ea should I make it a resource? or would the effort to change my indicator into an include file, be worth it? NOTE: i will be using the ea on several symbols + charts. NOTE II: working on a mt5 ea
  Zigzag indicators  (646   1 2 3 4 5 ... 64 65)
Different zigzag's indicators please post here
Getting the ChartID is easy. You'd think there would be a corresponding human-readable name or description or at least that little readout at the top left corner of every chart: Anything would be better than nothing. How can I get that info out of a function or the terminal given the ChartID
Hello Everyone, I am currently in the process of translating one of my mt4 codes to mt5. I've noticed something unusual when working with my code and its that when having an event take place in OnChartEvent, the event isn't processed until after a new tick. The code below shows the isolated
  iCustom not working  (15   1 2)
Hello everyone I can't get the call to iCustom to work. The called indicator is located in the \Indicators folder. It returns INVALID_HANDLE. I have also tried the path "\\Indicators\\Bollinger_bands_1b.ex5" and "Indicators\\Bollinger_bands_1b.ex5". The calling indicator program is in the Indicators
Does anyone has a MQL5 version of the Chande Kroll Stop indicator willing to share? I found the MQL4 version of it, but before start translating, wanted to ask if maybe someone already has it and is willing to share/post it
Is there any way to do this, such as maybe the indicator could run a script that kills the indicator somehow, or tells the terminal to do it? There are times I'd like a logic path to end in "quit" or "KillMe" or something
  ATR Trailing Stop - Help  (98   1 2 3 4 5 ... 9 10)
Hi everyone: I have absolutely no coding experience in mq4 indicators, and am asking for help in creating an indicator. The volatility trailing stop that uses a multiple of ATR has been of great use to me in Metastock when I used to trade equities, and I've been looking for an equivalent in
int OnInit () { cMASlow = new CiVWMA(gSymbol,gTimeFrame,MAPeriodSlow,VWMA_AppliedPrice,VWMA_MAMethod); cMAMid = new CiVWMA(gSymbol,gTimeFrame,MAPeriodMid,VWMA_AppliedPrice,VWMA_MAMethod); cMAFast = new
What and where is the setting/function that stops the input parameters panel from popping up when I add my indicator to a chart? I was surprised to see it because my indicator has no input parameters declared. I thought there would be an #property that controls if it's displayed or suppressed, but I
#property copyright "CopyLeft, Aad Slingerland aka 2733, januari 2024." #property version "1.11" #property link "https://www.youtube.com/playlist?list=PLCNIo-MSrmGdD7pCCGh7-uPxdXxnBn0Da" #property description "https://www.youtube.com/playlist?list=PLCNIo-MSrmGdD7pCCGh7-uPxdXxnBn0Da"
Learning for MQL5 coding for the past two weeks. This is how far I have gotten trying to translate a pine script code. It is working but not giving me the signals as in the TradingView version. What did I do wrong? Trying to convert this Pine Script: //@version=4 //Full credit to AlexGrover: study(
Hello guys please I need help in fixing a bug i've been having a problem with for some time now. So basically i'm trying to build a portion of code that helps me to identify peaks in the market and store them in a 2D array so that I can access them later to use them in drawing trendlines and
Never seen the like. I have a simple test for a boolean value... // bDoDirPvt = false ; iPvtTrdIX = - 1 ; if (bIs1stPsn == false ) { if (iTrdIX > 0 ) bDoDirPvt = (iaTrdDir[iTrdIX- 1 ] !=
Unfortunately, in the strategy tester of MQL5, the crosshair does not display the price change, as the crosshair does in the main chart. This is critical to quantify changes in prices while debuging codes. As such, I am exploring the option of creating an indicator that performs the function of the
I am proud of myself with how far I have come with my coding knowledge without any experience and relying only on YouTube and Google for help. I have been trying to convert an indicator from Trading View Pine Script into a MT5 indicator and have learned so much along the way. I have learned how to
Hello all, i'm new here, as the title says, (MT5) i'm trying to overlay an M3 line-chart onto an M1 line-chart by creating a custom indicator that uses M1 as the data source, however i've run into lots of problems, nothing gets draw even after initializing my buffers, any pointers in the right
So far, all I'm aware of is: IndicatorSetInteger ( INDICATOR_DIGITS , 0 ); which suppresses the decimal portion of ALL the buffer readouts in an indicator. How can I suppress only specific buffers that I already know ahead of time will have no decimal values, making them integers (in effect). I'd
This baffles me. Here is the IDE with the platform showing behind it, including a cleared Experts tab in its Toolbox: Here is what I get when I run the debugger (green "play" icon)... And this is what I see when I click OK to accept the default input parameter value, clearly showing the code paused
I want to display the indicator short name, but choose to display or suppress the buffer readouts to the right of the name. How is this done? Sometimes I'm fine with the default, show the readouts: But if I so choose, sometimes I want only the indicator's short name to appear
Say I have an indicator that generates values of higher time frame in lower time frame charts (A so-call MTF indicator). If I were to copy the values of that MTF for say creating a custom indicator at a lower TF. How do I copy the data from the MTF indicator? I am using a code that does the job
Hello community, when trying to place a Buy Limit order programmatically, i get error 4765. It turned out, that the limit price is too close to market. It seems there is no information about an offset accepted by the broker for such orders. This is my workaround code , which simply repeatedly steps
Hi again, So this is my second indicator. And this indicator is created to be able to follow Jperl's Market Statistics thread on Traders Laboratory. Please read this summary document of that thread first. After reading that document lets discuss how can we use this approach in Forex trading... I am...
Here is the code for this, my RSI always returns as 12 for every symbol i use my script on Moving averages always return at 10 and 11 as well I Cannot for the life of me figure out why. // Calculate Moving Averages correctly double maShort = iMA(_Symbol, PERIOD_H1, 50, 0, MODE_SMA, PRICE_CLOSE);
Hi, I am sure I am doing something wrong, but I did my research and couldn't find the answer. Well, it is my first time creating an indicator, and I am confused with the results; the idea on my indicator is simple: I check the candle to see if it is bullish and closing above the high of the previous
Here's the code: Here's what the compiler says: Why does line 6 compile fine, but line 7 triggers an error
Hi, There is an issue with the <Deleted> indicator that I purchased here, its not working again when I attach it to a chart. And removing it and again installing it on the same account is using up all the available activations. My activations are getting wasted and soon there will be zero
Completely flummoxed now. I hope someone can help. I'll put the code and test results below, but in a nutshell, I've got 2 arrays declared exactly the same way: double MABuffer[]; int ma_handle; double DMABuffer[]; int
Hi Sorry if this is not the correct sub-forum for this question, I am unsure of the exact nature of my issue. Whether it is an indicator issue, strategy tester or MT5. I have recently had an issue on one symbol, where the Ichimoku indicator does not seem to work as expected. I was running an EA I'm