Forum

Function not defined error

I'm sure I'm making a newb mistake. if (whatever){ if (whatever && whoCares){ CloseBuyPositions(); /////// Gets error: 'CloseBuyPositions' - function not defined } } void CloseBuyPositions(){ /////// Gets error: 'CloseBuyPositions' - function declarations are allowed on global

This code makes Strategy Tester extremely slow

So I ran this, even in not visual mode, and it took approx 3 hours for 1 month of data on a Daily chart.. insane. //Custom indicator values extern int Price = 0 ; extern int Length = 52 ; extern int Displace = 0 ; //DispLace or Shift extern double PctFilter = 0 ; //Dynamic filter in decimal extern

Looping EA with different values

Hi all, Is there a way to run your EA and let it change the indicator values and run again? Basically letting it loop and running the chart against different indicator values? I'm changing the values manually now, but I'm looking for a way to automate this. Just need a push into the right direction

Running EA after finalising again automatic

Hi all, I want my EA, with strategy tester , to automatically run again after or just before the strategy tester is done. So: run with indicator values, change values after its done or almost done and run it again. I've got the running with indicator part, I also know how to change values I just

Buy and Sell EA when line crosses

I'm trying to test my EA with a MA line. If it crosses to the upside it's a buy and if it crosses to the downside it's a sell. I'm testing if this works before going on by letting it comment buy or sell. It's not working so far. extern int Price = 0 ; //Apply to

Using custom indicator with EA. Do I need to be a pro?!

I've got three objectives and I would like to know what or how much I would need to learn mql4/5 in order to accomplish it. Please do note that I'm not trying to disrespect any programmers by looking for a shortcut. I just want to know if the objectives I got can be accomplished without taking a

Creating an indicator for an indicator

Hi all, So I wanted to check if the following is possible by creating an indicator or if it needs some software. Let's take for example a volume indicator . I want to create a tool that takes the most recent point in time where the volume was above a certain value. When that happens, I want the tool