Forum

ObjectGetDouble returns "object does not exist" error even though object exists

This has me baffled. I'm drawing a horizontal line on my chart, and allowing the user to select and drag it to vary a value. I'm handling a CHARTEVENT_OBJECT_DRAG event, and the object is recognized, raises the event, and passes the name of the object in the sparam. But when I do an

Debugger terminated with "initialization failed" error

While I've written programs in MQL4 before, I've recently downloaded Build 600 with its upgrade to MQL5. I have downloads from two different brokers: IBFX (build 600/MetaEditor build 883), and MBTrading (build 610/MetaEditor build 887). When I create a simple Custom Indicator in the MetaEditor from

Symbol GBPCAD is not available for strategy tester

Please forgive me, I'm relatively new to using the Strategy tester . I'm trying to test an EA I've written to implement a strategy on GBPCAD. But when I click in the "Symbol" box on the Strategy Tester Settings, I get a drop down list of Symbols, and GBPCAD is not there. I see no options for

Help with Error 130

I am attempting to write my first EA, and have read the documentation and the MQL4 tutorial book. I believe I understand about minimum stop distances. But try as I might, I'm still getting Error 130 when I submit my orders, and I don't understand why. Here is the code: minDistance =