Forum

EA loads and unloads indicators multiple times before commencing trades in Strategy Tester

Anyone have experience using Strategy Tester with an EA which goes through a long process of loading and unloading indicators before it begins to make trades? (like, 100 times on 5 min bars). I experience this using imported tick data, so I'm wondering if that has anything to do with the issue

explanation of some MT4 code so I can understand it

This is part of a longer MT4 EA. It is supposed to be a trailing stop based on % of equity and % of floating profit. It probably works but I'd like an explanation in plain language what each step of the code does. I also need to know if the inputs for this are whole numbers (1,2,3) or %. I can send

Find Trailing Stop Code in an existing EA

I have an EA coded which contains a Trailing Stop I like. I know that there are other standalone TS EAs or Scripts out there but their instructions aren't clear to me. This TS works on the floating P/L of the account and closes all positions when the stop is triggered. This is the code: Can

Excel bridge

Is anyone aware of a MT4 script which would read from and write to Excel? I know that there's one product easily found with googling. But the reviews aren't that great. I can get python or other code written for this but I assume someone else already has the pieces. Thanks

mysql connections

My EA connects to a mysql database. But when I run strategy tester , I see a huge number of error messages stating "errorn 1040 too many connections" Since I control the db I took a look at it to see if I could detect the prob. There were 65 connections which is way too high. I rebooted the db

trailing stop

I'm not a coder but I hope I'm giving enough info here for one of you MT4 geniuses to answer! I have a custom EA which was designed according to a set of trading rules and formulas. When I run it through strategy tester , the trailing stop seems to work properly. But in my demo account it's not

EA text cases

I have an EA created by a freelancer here. I don't understand the code, but perhaps someone here can provide some guidance. The (possible) challenge is this: The EA not only obtains price history data for its calculations, it also obtains data from an external mysql database. That db contains daily

backtester freezing

I'm having multiple issues using my back tester. As I try to solve these problems, another one pops up. My EA runs on daily bars, EXCEPT stop losses and a trailing stop. One of the errors which occurred about 9,000 times on a back test was: TestGenerator: unmatched data error (volume limit 63362

Display or Record Calculations in an EA

I designed a trading system using Excel, and then had the system coded into an EA. Is there a way to either display the individual calculations in the EA... or record the values in the trading history? Essentially I want to verify the math and logic to see if it conforms to the math and logic of

how to query an external database

I'm a newbie with MT4/5 but I'm very good at Excel, which I've used to create a strategy. I want to convert my logic and formulas into a working EA. Part of the EA's job is to fetch (or read) data from an external database. This database contains sentiment data which we mine from the web. The