Forum

Weird custom indicator behaviour?

Hi! I am struggling to make a simple indicator, probably by the lack of coding experience. My excuses for my silly mistakes! I am trying to get a indicator, similar to the AO, to show a bar of a different timeframe. So for example: I have the chart on a daily timeframe. But I want the indicator to

XAUUSD historical tick data

Hi, Where do you get your XAUUSD historical tick data? I am looking for data from 2000 to current date. I need this to train my models. I hope to hear from you! Daan

MT4 || Getting data of a order and closing it after x-amount of time

Hi, I am learning how to code, so I am struggling with some basic stuff. Normally I try to make a program that has only one trade open at the same time, with a already determined stoploss and takeprofit. I do not have to track these trades because all the variables are already set. This is probably

Security function to code

Hi, I am working on a indicator that can be put on a different timeframe than the chart is in. This is a option for a lot of indicators on trading view. A pine scripter explained that to achieve this in trading view you must use the so called: "security function". This function is explained in the

Awesome Oscillator 5min and 30min variable

Hi! I am trying to code a Awesome Oscillator that works on different timeframes. So for example the chart is a 30min timeframe, but the indicator works on a 5min timeframe. This is available on the trading view Awesome Oscillator, but I can't figure out how to code it. When you add or change the

Tradingview Awesome indicator difference to the standard MT4 indicator

Hi All, I am always charting on tradingview, but I want to code a strategy of mine into mt4. The standard Awesome oscillator on mt4 has only the option to apply the indicator on the current timeframe that the chart is in. This is fine, but to make the strategy I use work, it has to be on a different

Getting a EMA out of a data instead of the iMA function

hi, I am trying to make a EA that needs a standard MACD, not the one that is available with the iMACD function. I know that the MACD line is made by subtracting the 26EMA from the 12EMA, this can be easily done with the iMA function. But after that there needs to be a EMA made out of the MACD line

MACD mt4 crossover into EA

Hi all! I am new to MQL4 programming , and I have started to learn programming outside the MQL4 language. So my experience is very lacking. Now I am trying to make my first EA that only gives at a alert when something is happening. I think it isn't a huge deal to change the alert to a buy, or sell