Expert Advisors and Automated Trading - page 270

I want to be able to see how many milliseconds have passed since a particular position has been opened. If I do PositionGetInteger ( POSITION_TIME ) The returned datetime value does not appear to have millisecond precision, even though I can see the open time for that position down to milliseconds
Hello, I wrote an EA and ran it on two different machines (Desktop and Hyper-V). The EA executes the trades with the exact same specifications but delivers different results in terms of profit and loss. What can be the reason for this? The differences are already enormous. See appendix. Thanks for
every time I run a backtest with the trades of the backtest, appears a lot of another trades that I have never made, could someone guide me what to delete or what to do to get rid of those
Why does this not work? overshoots is an array of struct... int h= FileOpen ( "test.csv" , FILE_WRITE | FILE_ANSI | FILE_CSV , "," ); if (h== INVALID_HANDLE ) { Comment ( "Error opening file" ); } int _size = ArraySize (overshoots); for ( int i= 0 ;i<_size;i++) { FileWrite
I'm looking to create an EA that will scan multiple symbols and will then deploy the best suited EA to it. How can I deploy EAs from another to a specific symbol
Hi - Does anyone have this EA? I would really enjoy learning from it. Ideally I want to trade equities and buy and/or sell when a Bollinger Band is crossed. Typical method. Although I may want to tweak things in the script. I can learn/do so once I have access to one. For instance, I can change the
Ok, so I think I have a pretty good EA but if I am trading all of currency pairs 3 of them show that I lose money. When I run the currency pairs individually the ones that lose money show this stop out occurred. What does that mean? I thought it meant the end of the test but wouldn't that show on
hello everyone, i have a simple Question, I am using an EA for trading and i also have an active subscription of VPS. Will the EA do the trading if I turn off my PC
Hi @ll, just asking if you have any idea for my problem: Is it in any case possible to send chart data from an exchange (here crypto), that is not available via a broker, to a metatrader client and let the application work with indicators or experts with it? Best would be to create a chart out of
Hi I have this EA working, I didn't code it myself, I used an EA builder tool, It should work fine but it doesn't, maybe someone could tell me if there is another way to code it to work better (just want to know if it's possible so I can look into it) The EA purpose is to help me execute my
I checked the forum and even existing solutions in the market, but what I see is the you definitely can send a screenshot of the terminal to any messenger (say Telegram) when smth is changed in the terminal like - new object is being created by an Indicator, or an order is closed, or opened etc. But
  EA BAsed on Heiken ASHI  (203   1 2 3 4 5 ... 20 21)
Hi Guys, How can I make EA based on Heiken Ashi ..I want EA to enter long if the first bar is white and enter short if the first bar is red... Thanks Babar
How can we manage 2 open positions of same symbol? The function PositionSelect() only takes the first open position! Does anybody have a solution to propose? Thk u
Hi, I was wondering if VPS providers stop the server on weekends for backup and start server fresh with same ea . The reason I am asking it is because some of my data like stop loss are stored in text files. I saw someone post on the forum that we don't set visual access to the vps client on windows
hi, please I need help with this, I whant to add a magic number for all the timeframes in the pair, so I have at the same time the pair opened in diferent timeframes please correct this EA: //+------------------------------------------------------------------+ //|
  VPS ip  (5)
Hello Everyone... one question.. how to know VPS ip? I have no idea to create remote desktop connection
Hello,Guys, I just started coding on MT5 platform few days ago, so I am very new in this. However, I was trying to build Partial close EA, but I constantly getting two errors: '}' - unexpected end of program ; '{' - unbalanced parentheses. I checked the code many times but I can't find where is the
Hi All, I've been using these forums for a while but not posted before.  I've been digging around but can't seem to find a full resolution to my query so here goes.  I see this as more of a logic problem and not specific code so haven't included any coding. I have an EA that runs on MT4 and runs...
Hi, I'm running an EA that writes to a file located in:   MT4/Files/ directory on my computer. But when I synchronize the EA to the VPS, how can I check the output of that file? Many thanks
my id eur not us. i paid 25 usd pass paypal. because my id eur right? i paid it. what should i do?
Hi everybody, I am new programming EA in python and I think that one of the most important procedures is to be able to change SL and TP from an open position. I have opened positions with no problems, but once I try to change the SL or TP I get NoneType as a result. This is the code I use in order
I use my own DLL in the EA. When I run it locally, it works. For both, single and optimization. But if I "stop" test or optimization instead of waiting for normal finish, after that I need to kill metatester64 processes(es), otherwise it will not start any new tests again. This is something I can
hi guys i need help with coding an EA that has ZigZag and moving average with the following funtions //BUY CONDITION -ZigZag at lower candlesticks -Moving average below candlesticks //ENTRY POINT -1st close candle below MA //SELL CONDITION -ZigZag at higher candle -Moving average above candlesticks
Dear friends I attached my EA in diferents charts in iderents pairs. Can I check how many and in which graphics is it working
Hi all, I am having trouble in sending JSON (of length around 5000 character) to a POST service via MQL5. I tries sending small size JSON, it send perfectly and I can get it via following method in python: requrstJSON = request.get_json() However when I increase the size of JSON same method returns
Hello, Is there anyway to prevent an EA from opening new orders (Daily at time X) but maintain previously opened orders. Edit: I don't have the source code and cannot modify the EA
Small question. I have this EA that has external input following as  focusing on the pipcount in the mt4 settings. extern double  PipCount    = 20; If I need the pipcount  not to  be able to be edited in the mt4 terminal setting I should use the following? int PipCount    = 30; or do I use the...
I use an indicator that looks and works fine on all past data but it has weird calculations when it comes to continually running. It starts drawing lines in random places. (I hope this is making sense) What I want to know is, when I program this into my EA, will the EA pull the data from this
Hi I m trying to publish a product on the Market but in the Automatic Validation of my EA I get erros: test on EURUSD,H1 (netting) 2020.04.01 10:59:41 failed modify #5 sell 0.4 EURUSD sl: 1.09665, tp: 1.09565 -> sl: 1.09613, tp: 1.09565 [Invalid stops] 2020.04.01 23:10:35 failed modify #8 buy 0.2
Can any expert advisor fake the results of meta trader back test? By fetching data from 3rd party service, By analyzing the past data that are already downloaded to meta trader, Or by any other way