Expert Advisors and Automated Trading - page 34

To post a new topic, please log in or register
Every strategy and every EA can burn your account. FACT. Best way to use them is to have several different EAs on different account and running them simultaneously using a shielded money management strategy with weekly withdrawals and weekly recalculation of the trading investment. WHAT ARE THE TOP...
Hey Traders, on tradingview platform i found a very interesting strategy but is write in pine lenguage. I'm talking about "ANN Strategy" that you can backtest simply add it into the chart from the indicator list.  The backtests on GOLD, USDJPY, WTI and EURUSD (h1 tf) are amazing. Someone can...
Hello, The MT4 Optimizer returns 0. What could be the problem? Of course, the robot works on a normal test. More interesting: At the same setting, the robot gives a normal value for EURUSD and 0 for the GBPJPY in the optimizer. Thank you very much, Szabolcs
how would I change the open price of my buy order to lets say +10 from current price or something? I went to the part next to ask, and changed the 50 but it did not do anything. I went and read an article on this site and still could not figure it out if(TestBuy) ord=OrderSend(Symbol(),OP_BUY,0.1...
hey :) I have an EA that creates signals for possible buy/sell entries by placing an arrow above/under the signal candle. my issue is, that depending on the chart wjere the EA is loaded thr arrows are placed too far away or too closely. please review attached images for examples. In case of a sell...
Hello, I have searched and searched and can find nothing that helps me!  My problem is I have coded a custom indicator and the values of it change when you refresh the chart (right click and click 'refresh'). Once it has been refreshed once per bar, the values remain as correct. I call on this...
Looking for some suggestions on things I might troubleshoot.  I wrote an EA that is running as expected in my MT4 terminal.  When I upload the EA to the VPS virtual server, buy and sell orders are placed, but it will "forget" that automated trading is allowed and throw error 4109 when it tries to...
Hello All, I want to make an EA that open position (buy or sell) in exact price, I use OrderSend(...) function like below: if(MarketInfo(Symbol(),MODE_BID)==OpenPrice-PIP){        PendSell(Symbol(),lot,MarketInfo(Symbol(),MODE_BID),MagicNumber);}if(MarketInfo(Symbol()...
Suppose i start some EA in 1h time frame, and then some where in the code the isNewBar() function gets called, it will Print 28-12-2018 22:00:00 for instance... And then i change the time frame to 1m and then the isNewBar() function keeps printing 28-12-2018 22:00:00 I was expecting something like...
Hi All I am thinking about how to write an EA to manage trailing stops for all open orders. It will be attached to a single chart but will manage orders for every symbol. It does not make sense to run the code from OnTick() because it will only execute when the attached chart has a new tick and may...
Windows Update could disables  the EA's  activation every month... If you set the  OS update stopped, the computer will find that and fix it to update "these days"!!( I'm using my home PC , and  also ,sometimes VPS.) The  EA Invalidation occured to  MT4 by the Update of this time! (2018/12/12) Then,...
I've read this post. But I am still not clear. Here is my log when stop loss is executed in strategy tester. Now I have a position. It looks like OnTradeTransaction() is triggered 3 times. The MqlTradeTransaction is: TRADE_TRANSACTION_HISTORY_ADD The MqlTradeTransaction is:...
  Coding an ea (7)
I am showing my age here but I remember back in the 80's making programs using basic ... Remember that?  I look at today's code and it looks like a foreign language.  My question is ... Are any of the 'builder' utilities any good? (Simple) ... I have a working manual system but can't pay for...
Hi, I have rectangles on my chart and I want to be able to grab their price levels in my EA but I cannot seem to extract that from the existing object. I can only change them. Does anyone know how to get the price levels of an existing rectangle? The following returns "Name: Rectangle 789   Price:...
Does anyone here know if there is a bridge from Neuroshell Trader to Metatrader 5 (in both directions)? The interface should send data from Metatrader 5 to Neuroshell and corresponding trade commands and queries in both directions. There is a bridge from the manufacturer to Metatrader 4, but...
Hi. Last week, I experienced one my subscribed signal made a huge error leading the big loss. The worst part is that somehow it repeated opening and closing the same trade on my end, and if I didn't manually disable the signal, it would have blown my whole account. My question is, is there any way...
I want to be prepared for when the SH*T hits the FOREX fan. I have been running a bunch of EA's for a few months now. They have been behaving beautifully but they are only prepared for normal, stable market conditions. Thet are opening and closing trades all the time but at any given moment I...
When i backtest i dont see equity line dropping but in visual mode it has huge DD does anyone know why? I attached pic
Hello Traders! I'm looking for an EA or maybe a Script?, that allows me to enter same Take Profit Levels, that repositioning the Stop Loss Level when the Take Profit levels are reached. Let me explain: for example, trade Setup: I would like to trade the pair EUR/USD on the short side (sell) SL: 1...
Hello, does anybody have experience by using a highly multithreaded cpu for back testing? For example the AMD Ryzen™ Threadripper™ 2990W with 64 threads? Can MT5 handle 64 threads in strategy tester? Thanks in advance! Viper
Hi, I have the function below and it works. But then I read this: https://www.mql5.com/en/articles/43 where it says that iCustom is best called in OnInit(). Is this also true for my function? I can imagine that every call to iMA recreates a moving average calculated over many values and then only...
joba62rule
Dear Sir, I have a MQL5 VPS, and i have synchronized my EA with my MT5 on my VPS.  My questions are 1) In my MT5 navigator, i saw the EA both run on my local MT5 and VPS (see screenshot below). Is this normal, should I removed the local EA in order to avoid conflict??? 2) In my local MT journal, it...
Hi . I'm new to forex trading. Looking to purchase a robot but need to configure it.
hello         use MTF cross Signal Arrow Indicator day time frame. EA use 15M chart when EA entry buy before day close if entry close EA entry again. but i want one signal one entry in a day no more entry EA can you help me for make that function how it possible if(iCustom(NULL,1440...
Greetings! Is it possible?
Hello there! I'm trying to get ticks for some calc with CopyTicksRange function in EA (please,see code below). It works fine in real account, give the proper results. But when backtesting, it doesn't work. I'm currently working in Brazilian market with asset WING19. As I could understand so far, the...
Hello All, I want to make an Expert that using market entry and market exit by below Indicator: when Indicator change color, Expert should enter market, I read about iCustom function, I test it with this indicator, But this function in this indicator only one double value output, How can I do this?...
Hi    I am writing some code to try modifying my order , I keep getting this message in the strategy tester failed modify order #2 buy 0.00  at market sl: 0.00000 tp: 0.00000 -> 1.28769 (1.28669), sl: 1.27452 tp: 1.29569 [Invalid request] the trade is being opened normally but modification fails...
Hello I have a simple mql code, I want to get current price and price of 20 seconds later in stratgy tester, Here is my code: int _time_waiting=0; int _PauseTime=TimeCurrent();void OnTick()  {//---double current_bid = SymbolInfoDouble(_Symbol, SYMBOL_BID);double current_ask =...
Hello, I want to calculate my risk per trade relative to account balance (for example only risk 2% of balance per trade). Of course the stop loss is relative, lets imagine the Stop Loss variable will be changing and will use ATR for calculation. I have the expert ready but I need help with this code...