Ian Flanagan
Ian Flanagan
  • Information
10+ years
experience
0
products
0
demo versions
0
jobs
0
signals
0
subscribers
Friends

Add friends via their profile or user search and you will be able to see if they are online

Ian Flanagan
Added topic ObjectFind always true.
I've been away a while.. lots changed! But today I'm getting ObjectFind return "true" when there is no object with that name... void OnStart () {    if ( ObjectFind ( 0 , "456" )) Alert ( "found: 456" );    else Alert ( "not
Ian Flanagan
Added topic Data Type limits
Just found exceeding the data type max and min values doesn't trigger any kind of error message... just silently wraps around :/ e.g. int a = 2147483647 ; int b = a+ 1 ;   //b is -2147483648 !? Are there are any simple ways of safeguarding
Ian Flanagan
Added topic EA slower processing ticks than Indicator
Hi, I used simple code to write the ticks to file and found that indicators wrote more ticks than the same code in an EA. I used two EURUSD M1 charts in the same instance of MT4. I swapped the charts and got the same results Here is the results from
Ian Flanagan
Added topic DLLs and passing control
Is there a way to call a function in a DLL file (I'm using C++) and let it run while MT4 retains control. Specifically, it's for a tick collector. I would like the DLL to periodically write the logs to file, but I don't want to miss any incoming
Ian Flanagan
Added topic Backtesting: pattern finding, any ideas?
Hi all, hoping for some input on this from your experience or viewpoint. After a getting results from a parameter sweep, how do you analyse the data to find 'patches' of good results. I mean, if you have a good set, but change one parameter slightly
Ian Flanagan
Added topic Anyone experienced 4055 (ERR_CUSTOM_INDICATOR_ERROR)?
A custom indicator generated this error but unfortunately it's one I gave to my friend and I've ben unable to replicate it myself. The very general error description doesn't really help with where to start looking for this. Has anyone else
Ian Flanagan
Registered at MQL5.community
Ian Flanagan
Added topic Cross rates
Hi all, I'm trying to calculate a cross currency price from two majors. I get close but not exactly. The broker is variable spread. E.G. EURUSD bid:1.35000 ask:1.35002 GBPUSD bid:1.59290 ask:1.59297 EURGBP bid: 0.84747 ask: 0.84756 dividing the bids
Ian Flanagan
Added topic OrderSend / OrderModify live processing times
Well. Stage 1 of my MT4 life is complete. I have an EA that earns a good profit on demo accounts. But I think it's too good to be true as profits are directly affected by the brokers' processing times of OrderSend and, in particular, OrderModify. Am
Ian Flanagan
Added topic While loop in crashes when reopening MT4
In many of my indicators I record data in folders organised by brokers. I just 'improved' my code for getting the broker name. If I add the indicator, no problems. However, if I close and reopen Mt4, it crashes. Can't see the program, CPU 100%. If I
Ian Flanagan
Added topic efficiency of user-defined functions
I think somewhere in "The Book" if says having user defined functions is slightly less efficient (but much clearer to read and program). I'm wondering if I can use user defined functions while writing the EA, and then, when it's time to
Ian Flanagan
Added topic int and double
Feel free to ignore this if you want, it's a little simple, but I hope someone can explain this aspect of programming to me? I tried to find the number of points between 2 prices (i.e. an integer like 10 points, or 2 points)
Ian Flanagan
Added topic Varying size of an array
At the moment I'm creating an array with 7 entries like this: string      readline[ 7 ]; But I'd like to put the code in a .mqh file and then #include it in many files, with different sizes of the array. I tried to do this: int
Ian Flanagan
Added topic Export price data
Amazingly, I can't find easy free historical price data so I'm going to write a script to export to csv for us in excel. Just before I start I wanted to check that I'm not missing an easier way to do this...? Also, is there an easy mql way to make it
Ian Flanagan
Added topic extern variables for script
I wrote a script to add lines to a chart (once) Now I want to be able to input some boolean variables as it runs. Is it possible to have a script ask you for inputs? Alternatively, to the same end, can a custom indicator remove itself after it's
Ian Flanagan
Added topic Small questions
Hi all, I've been saving a few small questions to ask in 1 go: 1) is there any disadvantage to use Ask, Bid, Digits, Time[] etc. many times within a function ... I see many people assign it to a variable such as "askprice" etc. and then use that
Ian Flanagan
Added topic Bid and Ask lines wrong
Hi, on two brokers, I have the lines appearing wrongly. On the first one, the ask price is consistantly 1 points too low. The pink box is my indicator showing what the spread should be based on the Market Watch window figures and it SHOULD match up
Ian Flanagan
Added topic Other charts' objects
Hi all, I want a script that copies the objects of all open charts and pastes them on all open charts. Searching tells me I will need to use winAPI to access other charts? Any tips one what commands I'll need to use? In the end would it be faster to
Ian Flanagan
Added topic GetTickCount question
Hi all, I often use the following to check times and efficiency int timing = GetTickCount (); //lots of stuff here timing = GetTickCount () - timing; I get values of 0 or high value but I never seen values 1-14 One part of code fluctuates between 15
Ian Flanagan
Added topic Speeding up script
Hi all, I'm wondering if imports and includes are all done at the start of a file, or done when they are first needed?  I have a script that places an immediate buy or sell order with OrderSend, then uses OrderModifty to add stops, and finally
12