Expert Advisors and Automated Trading - page 214

Hi, I am trying to have multiple copies of the same EA run in the same symbol with different magic numbers. I already found older topics that mention this but I did not find any solutions yet. I want one EA to know if for his magic number he is bought or sold, for instance. For this, I use: bool
Dear all, I would like to run more Experts (with different MAGIC) on different charts but same symbol. My doubt is management of open position. That is, I need to close the position of an EA when match some condition. See the following. CPositionInfo...
I am going to try out a signal on a live account on a "relatively" small amount ($1,000 usd)before I start getting larger. I want to make sure I understand the concept of percent of deposit before i proceed. Best practices for trading might say trade no more than 5%. It would take a lot of losing
int StopLoss = 10; double openPrice = PositionOpenPrice(glSellTicket); double point = SymbolInfoDouble ( _Symbol , SYMBOL_POINT ); double stopLoss = openPrice + point*StopLoss; stopLoss = NormalizeDouble (stopLoss, int (digits)); Print ( __FUNCTION__ , " Sell Stop Loss Normalized
Dear people, There is a lot of "literature" in the forum about this, one above all the clarification offered by William Roeder here: https://www.mql5.com/en/forum/321335 . Thus, please, can anybody explain this? //+----------------------------------------------------------------------------+ //|
Dear people, After having read several times the other thread , I am fighting for understanding what's wrong in my backtesting. Let's say that I want to test a strategy on EURUSD, daily bars, using 1 minute OHLC precision. On my broker's (Darwinex) platform, market times for this instrument are
I recently purchased the *** There have been no trades completed so far and I do not know why. I have enabled auto trading in the options and clicked the auto trade button. See attached picture of the Journal
Hello everyone, I need some advices to avoid Backtesting biases or misleading some of old traders don't trust Expert advisors even if they see it's giant results of backtest because some actions in backtesting are not the same of real trading (even if it's every tick) What about your opinions
[Deleted]
Steps to reproduce: 1. Take an MT5 account for which broker have disabled the trading 2. Place an async trade via EA Actual results: 1. Terminal prints Trade disabled error in the logs, as expected 2. OnTradeTransaction never invoked on this error, so that EA hangs/times out waiting for a trade
Hi, I have purchased an EA. My existing activation is not working because my Windows OS has been updated. I am trying to reinstall the EA. I can see it on the tab purchased in my MT5 and it shows that I have 5 remaining activations. But there is no button to update or download it. How do I access
Hi, my broker Blueberry Markets has floating StopLevel, so I can't check it. If I check: StopLevel = SymbolInfoInteger(_Symbol, SYMBOL_TRADE_STOPS_LEVEL) * _Point; the result of this function is every time = 0. In my indicator I calculate: input int iSLPoints
Hello This EA has been developed, is highly flexible and does have profitable settings. I'm (bravely/stupidly) opening it out for people to test and share any profitable strategies they might find. It's not coded for MQL Marketplace yet, so it can't be sold on or used to develop a signal service
Is there a 'Click-To-Confirm-Trade' function for EA's. Thanks Michael
I have recently designed an EA that I would like to start using in real time. I had it all set up and the got the Trade is disable message. Not really sure why. I use Oanda and have contacted them and they have said there is nothing they have to do to enable trades. Trades worked fine in the Tester
Hello, how do i convert moving average value into points so i can set up my stop loss properly in EA
Hi all, I don't succeed in placing a buy stop order... When using a MqlTradeRequest and OrderSend(), what information do I need to enter?? What are stoplimit and price representing in the case of a buy stop order? Thx, struct MqlTradeRequest  { ENUM_TRADE_REQUEST_ACTIONS action;...
Hi, So I created a simple python scrypt that oppen a trade when I press the key "7" on my keyboard. It work well, Now I want to create a scrypt that close a position when I press the "8" key on my keyboard. But lets say That I have two open trade on my account, one on EURUSD and the second trade on
Hello, I need to find a way for my EA to check for valid account numbers so I prevent my clients to run it on multiple accounts. I store the account numbers in a database (mysql) online. How can the EA access that database
  Magic Number  (2)
I have an issue with my ea. If I attach 2 Eas on one chart it gets confused and does its own thing. I want a way that the ea detects that it has been attached on a particular chart and increases the magic number because I dont want to do it manually example: if "boom 1000 Index" has a magic 7897
I have a freeware indicator that paints really useful support and resistance levels on a chart that I want to incorporate into an EA. The problem is that I don't have the source code so I can't use iCustom because I don't know which buffers it uses to paint the lines. I did try to interrogate the...
Hello, i try to detect a stop execution in my EA. Unfortunately, i get only DEAL_ENTRY_IN provided by MqlTradeTransaction passed to OnTradeTransaction. This seems only to be the case in backtest. Anyone know how to reliable detect a triggered stop in backtest - best along with price and (partial-)
Hi all the documentation mentions PositionClose() as part of the class CTrade . I am directly manipulating the orders, not using class. How can I close positions? Current code (DOES NOT WORK): ulong ticket; if ( PositionsTotal ()> 0 ) { for (i = 0 ; i < PositionsTotal (); i++) { ticket=
struct tradeTable { double entryPrice; }Order[]; int OnInit () { // int i; // Order s_Array[i]; for ( int i = 0 /*Note: Array index is zero-based, 0 is first*/ ; i <= 1000000000 ; i++) { Order[i] = 2 ; //iHigh(NULL, 0, i); // or // Order[i] = 1; //High[i]; } //
Hello guys i have an EA based on RSi how do i make stop opening that many trades when the signals are processed
Hello, I have some problem with code execution in demo account. The problem is that some BUY-STOP orders remain on the terminal as BUY-STOP while they should have become BUY. The price goes up and the terminal still shows an open BUY-STOP order. If you try to close such an order manually, the
I'm getting this error - error fill not supported - when trying to close a position using the mt5 trade.mgh  include file. The ea fails to close the position. I've serched everywhere and cant find a solution. Is there a problem in the mgh file below?? bool CTrade::SetTypeFillingBySymbol(const string...
EUR USD check no trading operation check gold no trade this is driving me crazy Help my please
Hi, I don't want to place trade. Instead of place trade I need to use Array, put all trades data into Array and if loss/profit trades need to save in array? I can use lot for each trade 0.01 and then check, but I need without make trade because in this case I will lost 0.01. I can make this in demo
I am developing an EA and I have observed the following results: 1. My EA stopped out. 2. My EA is now calculating negative lot size. 3. The balance is now shown in Pips instead of currency (USD) Yesterday it was working fine with a positive gain. Here is a screenshot for observation number 3. What
  StopLevel  (4)
I have been studying the the code for the jolly roger ea and have a few questions....    StopLevel=SymbolInfoInteger(Symbol(),SYMBOL_TRADE_STOPS_LEVEL);//--- set orders   if(PositionsTotal()<1 && OrdersTotal()<1)    ...