Expert Advisors and Automated Trading - page 162

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)    ...
Hi everyone. I wonder how in the world the dealer can run the trade using EA. So when I hover to the running trade, It shows tooltips like image attached. Anyone have an explanation
Hello Everyone, I'm trying to store tickdata and not sure what would be the most effective way to store this data. The Tick Data I want to store will be up to 1 minute of data and based on this I would like to do some calculations therefore I will require to access that data at any millisecond time
Hello, my first post here :) Im working on a robot for US500, but the backtesting quality with every tick is mostly n/a so I can not trust. The open trade is around 50% which is also way to unsecure. I need a 99% quality when I make a backtesting on MT4. I have tried to download 3 years history from
Hello, I asked a question earlier and got enough to write this. What I'm trying to do is to Trail Stop and Partial Close on a Ticket and only do it once. As currently its closing partially twice. How do I add the ticket to the array and check if ticket[i] != array then we can move sl and close
Hi, please can someone help. I do not think this is a code issue, I think a terminal issue or 'another' problem. I'm developing an EA and under testing (strategy tester) everything worked as expected until two days ago. Now, whenever I run an EA under test it will not complete an order giving the...
When the product was not validated the error was failed instant sell 10 GBPUSD [Volume limit reached]. //Checks before any position is opened bool CheckLotForMinMax( double Trade) { double min_volume = NormalizeDouble ( SymbolInfoDouble ( _Symbol , SYMBOL_VOLUME_MIN ), _Digits ); double
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:...
Hi, I'm working on linux, and I rarely use IDE's, especially their text editors. So I have a directory with my EA in it, say, at the path home/lrdprdx/projects/experts/dummy . I can open it in the MQL5Editor and compile. But I cannot debug it (the buttons are inactive). So I have to copy my . mq5
  MagicNumber  (1)
Hi guys! About Magic Number… I read materials about Magic Number using, but just before I do changes in my EA I would like an opinion. So I have one EA that is opened on each particular pair. I do not use it on same pair twice ( like different timeframes). So in this case, can I remove Magic Number
I just noticed that MetaQuotes' own Commission () -function no longer works, because its code is... double CPositionInfo::Commission ( void ) const { return ( PositionGetDouble ( POSITION_COMMISSION )); } ...and POSITION_COMMISSION seems to no longer be a member of