Expert Advisors and Automated Trading - page 96

To post a new topic, please log in or register
This is a repost, as I did first post it in the indicators section. The EA uses the PipsChartData library, which code-wise belongs to the indicator.
I'm trying to submit an EA that only operates on the M1 period, but the automatic validation always fails because it is testing on M30, H1, and Daily periods.  I even have ChartSetSymbolPeriod(0, NULL, PERIOD_M1) set to force it to run on M1 and redundant code to return in OnTick if the period is...
Hello , Is there any way to check if the output is integer or if not I want to know if this is 5 or 6 not 5.2 nor 6.7 Thank you
Hi, I have created an EA which works well for meta quotes demo account. The same EA gives error 10030, invalid filling type, when I use FxPro demo account. I tried using FOK as well as IOC, none of them work. I am using CTrade standard class library to place order. I checked with FxPro on supported...
I'm working on an Expert Advisor which sets the filling type on orders according to broker's available types. I'm using CTrade class for opening positions. CTrade myTrade;bool IsFillingTypeAllowed(string symbol,int fill_type) { int filling=(int)SymbolInfoInteger(symbol,SYMBOL_FILLING_MODE);...
I keep getting order filling error 10030 with FxPro. Here is my code. bool IsFillingTypeAllowed(string symbol,int fill_type)                 {                                 int filling = (int)SymbolInfoInteger(symbol,SYMBOL_FILLING_MODE);...
Hi, I have coded a basicMT5 EA which is using the CTrade class to manage trades. I am currently testingthis EA on FxPro MT5. When I open a tradeusing the ORDER_FILLING_IOC filling method, it is working fine with trade.PositionOpen. Now When I use the CTradeclass with trade.PositionClose and any of...
  Filling types (4)
On the specification window, the filling type of a pair is designated as "all" with my broker. But, on the "new order" window, there are only two options: FOK and IOC. Can I use "return" in this case? Additionally, if available, with which function I can see the used filling type for an opened...
I trade with a certain broker using an EA and I never used to have problems. However recently my orders have been declined because of error 10030. Prior to this I used to input the order filling type as a parameter for the EA and it would work without a problem. But now even when I use...
Dear MqL community, I am fairly new to EA trading. The problem I've encountered is to choose an EA that will suit my needs. Is there perhaps an App that can help you choose an EA ?? 
guimf
  Martingale (1)
Hello,  Could anyone help me to include Martingale on my EA? Just write for me a basic Martingale code with 03 parameters: 1) Points(Pips) =  EA will send order to start martingale. For example 500 poits 2) Factor =  lot multiplier, if a trade was loss the next trade lot size will be lotsMultiplier...
I'm clearly missing something because the timer is not beating appropriately for me in the ST. Here's my test program: //+------------------------------------------------------------------+//|                                                         test.mq5 |//|                        Copyright 2017...
Example: #include <Arrays\ArrayInt.mqh>void OnStart(){   int         arr1[];   CArrayInt   arr2;   int         nElements = 100;      ArrayResize(arr1,nElements);   arr2.Resize(nElements);      Print("Dynamic Array1 has ",ArraySize(arr1)," elements");   Print("Object Array2 has ",arr2.Total(),"...
AboElnas
Hello , 1- If there's an EA with multiple time frames , Does it make any difference which time frame I attached it to ? 2- Something very strange happens with this EA , it depend on 3 conditions and every condition from specific time frame , it's quite strict in backtesting but in real it always has...
hi guys can anyone please add martiangle feature in Forex Real Profit EA? martiangle = true or false option,just want to see the results with martiangle Thanks << decompiled code removed by moderator >>
Hi all, It is my first time running a VPS on a demo account and I have a slight problem: I have bought a VPS for 1 month and would like to test 3 EA's on 3 separate accounts - Is it possible to do it without having to pay for another VPS? If so, could anyone please let me know how to di it? Many...
So I'm looking for a way to download my daily trades in pairs - Enter trade; Exit trade.  I only have 1 Entry and one Exit per trade. Looping through the deals works unless the entry and exit times are crossing. When they are, it's problematic.   I know there must be a relatively easy solution, but...
Hi everybody, How much have you made with yours EA on backtesting?  Very different to real execution? Thanks for your responses.
Hello, I would like to calculate yesterday and the day before yesterday dates. I use the below code for that. Yesterday (d_tarih) works well however the day before yesterday (e_tarih) also gives the same value. Is there a way to calculate yesterday and the day before yesterday more smartly and...
Guys, do you know the behavior of MT? let's say, for example, in my library file, I have a function, which makes something calculation, lets say: double SomethingCounter=0; double MyFun1(bool condition){     if (condition) { SomethingCounter++;     return SomethingCounter; } I include that library...
I want to control my EA's from an external source so I don't need to log into my VPS. These variables are in the EA as an 'extern', so they are in the set file. Should be nice that the EA will read this variables from a Google Docs Excel sheet, so I can access them everywhere I want. Does anybody...
vzografos
Is it possible to modify the orders history in MT5? I want to change the comments in orders that have been filled Thanks
This is very frustrating. Changed over from FXCM and now the MetaTrader4 platform won't make trades. Only works in the Demo account. Expert Advisor settings are all the same. What's going on here??  Their symbols end in pro. Any problem here?
I am trying to run an EA from a tutorial, but I keep getting errorcode 4753 I tried with a demo account from a broker and also a standard mt5 demo account... Please help thanks
hello, order menu of the MT5 that my broker provided me (I believe it is netting account) doesn't have options to choose the pending order types of : Stop Buy, Stop Sell, Stop Limit Buy, Stop Limit Sell, Stop Loss and Take Profit. only  is it possible to enter those order types within an expert...
Halo guys, I am newly learning coding and currently, I am making an EA where I wanted to use this scroll box with boolean idea for different EA strategy. I'm trying to do this in this way but it giving me some warning in compiler and its not appearing with a scroll box.Can anyone please provide me...
Hello, I am trying to modify anindicator that create csv file for 28 symbol spreads every tick. But aftersome time that file got big size (1,000,000 row after 24 hours!) Howto delete the first 100 row when total rows reach 1000 row for example? Thanks,, int handle = FileOpen(filename...
Greetings I have a script shared among my friends and I, the script which will place order base on value in a text file. The script will read "Price" and "Target Profit" from the text file. Simple as that. The weird thing happens is that one of my friend is having different value compare to the rest...
I have an EA that I test on the Strategy Testers of two live accounts of the same broker - and STP and an ECN account. The EA works well with the STP account when using the "tick" option as well as the "open prices" option, but with the ECN account only the "tick" option works and there are NO...
Hello, I've created a CiBands object: private:CiBands bollinger; On the constructor: bollinger.Create(symbol, PERIOD_H1, 20, 2, 0, PRICE_CLOSE); On another method: bollinger.Refresh(OBJ_ALL_PERIODS);double upBollinger = bollinger.Upper(1);double lowBollinger = bollinger.Lower(1);double baseBollinger...