Forum

OnInit and OnTick never called when ea on offline chart

I was able to get some period converter indicators online. and generate different time period offline charts ATM_P4L_PeriodConverter_I ATM_Period_Converter_opt However I can't get my EA to run on these offline charts. I can see the offline chart price moving so I assume they are getting price

EA inputs limit

Hi. Does anyone know if there is a maximum number of inputs a Metatrader 4 EA can have? thanks, Milford T

ShellExecuteA call only works one time

#import "shell32.dll" int ShellExecuteA( int hWnd, int lpVerb, string lpFile, int lpParameters, int lpDirectory, int nCmdShow); #import ... ... int init() { // open init file ShellExecuteA( 0 , 0 , "C:\\Users\\OSR2\\EA2.bat" , 0 , 0 ,SW_SHOW); ... The above ShellExecuteA call only works the

keystroke trigger while metatrader chart is open

Is there any way to cause a script to run when a particular function key is pressed like F9? thanks in advance MilfordT

cause script to run

Hi was wondering, could a GUI associated with a dll raise an event that will cause a MetaTrader script to call a dll routine to get data or input that the GUI has collected from a user? thanks, MilfordT

cause script to run

Hi was wondering, could a GUI associated with a dll raise an event that will cause a Metatrader script to call a dll routine to get data or input that the GUI has collected from a user? thanks, MilfordT

keystroke triggers

Is there any way to cause a script to run when a particular function key is pressed like F9? thanks in advance

OBJ_FIBO lines

Hi. In my EA I'm trying to find the closest fibonacci line that is below my last close price However I can't figure out how to get the y-axis (or price) value of the fibonacci lines. The ObjectGet call below is returning something else. // check FiboUp lines for (int ix = 0; ix <= 14; ix++) {

Metatrader automatically starting bad indicator

Hi I am having a problem getting control over my MetaTrader platform. I got an indicator that a friend asked me to try to look at. Since I loaded it on the chart yesterday it seems to use all the CPU so that MetaTrader is effectively disabled. There seems to be no way to unload it. If you close

tester agent synchronization error

I tried to run an EA in the strategy tester and am getting a "tester agent synchronization error". Does anyone know the cause of this and how to resolve it? thanks