Forum

Account Protection from Signals

Hi, The signals are looking good. However, I was wondering if there's a way that I can program an EA to add additional protection to my account. For instance, if the signal provider decides to open up like 20 trades at once, I would like my EA to prevent that from happening. Basically, this will be

Moving from MQL4 to MQL5 Questions

Hi everyone, So far, I like the fact that I can run multiple strategies on multiple assets to get a better picture of my DD. Also, I can forward test, use the debugger, in addition to other things. One thing I'm having trouble with, is the ability to read information about positions. For instance

Using Control Point with Imported Data

Hi, I would love to backtest my strategies using 2 years' worth of data. I was able to find a source to import the data, which is 1-min OHLC. However, my strategy is based on hourly candles and I would like to use control point and obviously I need to import data to go back as far as I want to go. I

Why Do People Say That the Optimizer is Inaccurate

Hi, I'm very serious about taking advantage of algotrading. However, the modelling quality of my bactest is 50% or less. Even with that number, I'm printing out the time of the tick and I'm getting it every 3 seconds or so. My strategy is based on hourly candlesticks and getting a price update every

Trouble with OnChartEvent

Hi MQL4 community, I'm trying to at least get this code to work and I can build from there. I was able to successfully load up a button, however, when I click on it, my code is not sending a message to inform me that the action has happened. I'm doing this in strategy testing mode and wish to

Using a Custom .EX4 File in EA

Hi everyone, Thanks in advance for future answers. I'm liking what I've learned today in regards to dealing with iCustom and interacting with objects on the charts. However, I have this .ex4 file and I don't know how to get the color of the indicator at a specific time or whether or not an arrow is

My MQL4 Backtester Is Running Slow

There are 32 different speeds for MT4. The first 31 seem to go at the same speed which have me doing a minute bar in 5 seconds. The last one, has me doing about 15 bars in one second. Way too fast. I tried using different MT4 platforms to correct this. Anyone else is having this problem

Graphical User Interface

Hi, I'm really big on making programs that not only just bug free, but also look nice. I noticed that MQL5 has some features to create GUI's. I know with the latest MQL4 upgrade, some of the features from MQL5 are now available on MQL4. Does that mean I can now use the graphical libraries from MQL5

How to debug in MQL4

Hi, I'm looking for some strategies on how to debug. I can't run an EA on a simulator because MT4 doesn't have one. Print function doesn't work in the strategy backtester and finally the Comment function only show one statement at a time. Any tips? Thanks

Switching from Ninjascript to MQL4

Hi, I'm thinking about learning MQL4; I wasn't at first because I thought that Ninjatrader would be enough. Pretty much all of my strategies created be me to enter a trade as soon as the conditions are satisfied--not after the bar has been completed. It was a reason why it is done like that with