David _Detnator_
David _Detnator_
Friends

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

David _Detnator_
Added topic Why won't `trade.PositionClose(PositionGetSymbol(0)` close positions?
I have tried multiple approaches to this, based on the documentation and on information I've found in this forum, and I can't get anything to work. Simple version: void CloseAllPositions() {     CTrade trade;
David _Detnator_
Added topic Trade, and Trade Transactions, with python integration
First some context:  As best I can tell, MQL5 can make use of events handled by the Terminal, but they python integration doesn't get or see those events. Mostly that's ok.  I don't particularly care about the events themselves (because I
David _Detnator_
Added topic python mt5.initialize() -> error -10005 'IPC timeout'. What does this mean? How to resolve?
Hi all. Trying to do   mt5.initialize()  (in python).  Works about half the time.  The other half of the time it times out, and then continues doing so on subsequent tries, for extended periods (sometimes hours) before it works
David _Detnator_
Added topic MT5 Python integration on Mac M1 (ARM)
Does anyone know if there's any way to get the MT5 python integration to work on Mac M1 (arm). Python installs and runs fine on a Mac, but unsurprisingly, when I try: pip install MetaTrader5 I get: ERROR: Could not find a version that satisfies
David _Detnator_
Added topic Another question about MT5's python integration with two computers.
I posted another similar question but maybe it's too complicated. Trying here for a related, but different/simpler question... The MQL5 documentation on this page  gives an example of a python script that can communicate with a broker, get some
David _Detnator_
Added topic MQL5, Python, Javascript integration. Two computers.
Hi all. It is my understanding (please correct me if I'm wrong) that I can follow the instructions here to build the equivalent of an EA in python instead of MQL5, calling the python functions on that documentation page to handle all the broker
David _Detnator_
Added topic From in EA, get time, or GMT offset, in any timezone, independent of server location or running EA location
Details a bit vague here, to try to keep it brief. Happy to elaborate if needed. The MQL5 date and time functions include functions for getting time information in the time zone the EA is running in, or the broker's server's time zone , or the GMT
David _Detnator_
Added topic Why no HistoryPosition functions?
Hello all. Short version:  I've read everything I can find on this. Particularly the  MQL5 Reference > Trade Functions , and this awesome article (ORDERS, POSITIONS AND DEALS IN METATRADER 5) . We have Functions for active orders
David _Detnator_
Added topic Difference between Trade and Position.
Hello all:   I've always understood a position to be an aggregate of all open trades for a given symbol, but from what I can tell , I think: MT5/MQL5 considers a position and a trade to be the same thing. eg. I send two distinct market buy
David _Detnator_
Added topic Order vs Deal vs Position vs TRADE (yes, again -- but more than past answers).
Hi all.  Thanks for all the help so far with a few questions I've posted recently.  Here's another.  Well, a bunch of related ones... I've read a number of posts and the doc'n about Order vs Deal vs Position, including  this
David _Detnator_
Added topic Query Account Balance at some point in the past (eg. yesterday 5pm EST)
Hi all.  I'm aware I can query the current account balance of course. I'm aware I can query historical data for bars, deals, and orders (for information at some point in the past). Is there any way to query what the account balance was at some
David _Detnator_
Left feedback to developer for job Pair programming. Help with my EA. Week 2.
David _Detnator_
Left feedback to developer for job Pair Programming Day 2.
David _Detnator_
Added topic printf() / PrintFormat() to specified file, or Write to specified file with printf/PrintFormat() format strings...?
Hello all. I've read the documentation, as best as I can find.  If the answers to the following are in the documentation, please do feel free to just point me there. As far as I can tell:  In my EA, I can use printf() or PrintFormat() (
David _Detnator_
Added topic Break up a bar into equal intervals. Trigger event at start of new interval.
Hello all.  Any help appreciated... I have a multi-symbol, chart independent EA. It has many inputs. There's two relevant to this question. Let's call them T = timeframe or bar seconds, and N = "action intervals per bar". I want to break each
David _Detnator_
Left feedback to developer for job Pair programming with me to help me finish my EA.
David _Detnator_
Added topic mt4setup.exe installs MT5????
Is this a new ploy by MetaQuotes to force everyone to MT5? For what it's worth I'd love to only have to use MT5 and not 4, but many BROKERS don't support MT5 yet, and that's very frustrating.  Dear MetaQuotes: if you want us users to all to move
David _Detnator_
Added topic Digits?
Hi all.  Confused...  On this page:  https://docs.mql4.com/customind/indicatordigits the 8th line of code is:  IndicatorDigits( Digits + 2 ); I also have the (MQL4)  source code for a Custom Indicator someone who knows what
David _Detnator_
Added topic MQL5 call/run javascript or bash or other external code
Hello all.  New here.  First post.  Would love some help on this if anyone can advise... I've written the guts of a complex strategy in Javascript (node).  It takes some input parameters, and returns some output. To implement all
David _Detnator_
Added topic MQL on the new (non-Intel) Macs. Any other IDE?
Hello all.   New here.  I've been learning MQL and doing some basic coding in the IDE.   The short TL;DR version of my question:  Is the MetaQuotes/MetaTrader IDE the ONLY way to code and build MQL solutions?  Or is there any
12