Expert Advisors and Automated Trading - page 315

Hello guys, i'm starting in MQL programming and I want to do a simple thing: Constantly check (loop) the open orders and write them into a file. Please, could someone guide me what I need to do? (OrdersTotal? FileWrite?) Thank you for any help, have a good day
I know that this topic has been discussed more than hundred of times. But still...  The code is following: void OnTick()  {  int m_magic = 123456;   // Magic Number   MqlTradeRequest m_request;   MqlTradeResult m_result;//-- Clear structures m_request,m_result   ZeroMemory(m_request);...
Is it possible to have conditional inputs on an EA? For example, let's say I have this three enums enum Condition{  Foo,  Bar,};enum FooCondition{  Foo1,  Foo2,};enum BarCondition{  Bar1,  Bar2,  Bar3,}; Now, I want to add it as inputs to my EA, so, first I add a input for the Condition enum: input...
Hi experts. If I want to add value to x variable every bar in function ontimer. How to code it? Such as in TF H1,Ontimer,and x+1 every bar at 6:00 , I set x to 0.     7:00   x =1     8:00  x=2      9:00  x=3 thank you very much
Running a signal copy under mql5 VPS i will receive notifications on my phone from transactions?
Dear Sirs; Does VPs real reduce significante slippage on copy signals for different brokers? The signal provider iam copying for use a broker who dont allow copy but allow signal share! This is the differences pointed by Mql5: FxPro.com-Real03 4.71 × 1830 Is it a lot doesnit
Hi All Any ideas why after hit STOPLOSS, new Sell order cannot be send? Thanks in Advance (My First Try for EA)    if (TotalOrder == 0) //If there is no working order     {      int last_trade = OrdersHistoryTotal(); //Determine last order ticket number      if(OrderSelect(last_trade,SELECT_BY_POS...
Hi guys, I was wondering if you could help me with two issues I am currently having? :) Here is number 1:  if(PositionSelect(_Symbol) == false) // We have no open position       {       if(MathAbs(PriceDataTable[1] - mAData[1]) < 10 * P)            {            if (my conditions to open a trade)...
A timer within a EA that loads all watch symbols weeds out the ones I dont want: meetsCriterion Sorts the List and displays the data    list.Sort(sortVar);   posY++;   list.displayData(var,posY,sortVar); the timer void: void OnTimer()  {   EventSetTimer(deltaTime);   Print("EA CSI DATA1 deltaTime...
Hello, Is there a script or indicator from which i can read colour or smth that will allow to skip some trading hours based on red news? I do not want that my robot will trade on high impact news.
hello i have an simple EA for Binary Option, and it worked well on demo account, now i opened up a live account and he only opens the first trade and stops then on one chart... doesnt open any further trades anymore (martingale) can somebody give me a hint what is wrong ? kind regards
Hello I am having issues with grabbing data from an indicator and saving/using that in a multi currency EA. I made loops and used array's for each currency and the numbers all come in and work but every tick or update on timer a few of the values are duplicates of the preceding currency's value. I...
Hi, Does anyone have MACD EA which takes trade, when zero line cross Thanks in advance
Hello, We are in October 2017. If I want to develop from zero new EAs, what platform to choose between MetaTrader 4 and MetaTrader 5, so which language to choose MQL4 or MQL5? Please detail your choice. My opinion : In the past I did not ask myself, because the choice of brokers offering MetaTrader...
Hello, Is MQL5 backward compatible with MQL4? In other words, can I develop my EA in MQL5 and use it under MetaTrader 4? Regards, Pierre
Hello folks, I think we can all agree that choosing the right parameters for a strategy is almost as important as the strategy itself. When determining the "best" parameters, what criterion do you choose for optimization? Do you use plain "Balance", although it may lead to huge drawdowns, or do you
Before i create a project i want to verify that what i want is possible. I'm looking to have an EA created that simply manages the stop loss according to the ZIG ZAG indicator. Example if eurusd buy trade and new HH is indicated (i know it will be repainted many times) if most recent LH is > entry...
Hello everyone, I am facing with Metatrader a new thing forme: interfacing with a broker. If possible, I would like to understand somethings about Metatrader’s link to brokers in order to issue orders directlyfrom Metatrader towards brokers who manage the BINARY OPTIONS market and othertypes of...
  TDS2
Someone know if exist any web service for EA Optimization using TDS2 ?
  Trendline EA  (5)
Hello everyone,  I've been searching for a Trendline EA that would place a market order base on Price Rules ( break and Restest) on a break of Trendline . Also, I would like to be able to set Take Profit and SL near my Horizontal lines. I've been searching for weeks now and I can't seem to find one...
i am atrader with 8 years experience and i amwriting a trading system that needs to be an EA. but in thisway i have encountered some important mql4 programming questions.   Q1: i cangenerate s1 (1 second) offline chart  inmt4 by attaching fxblue custom time frame generator EA on any pair onlinechart...
Hi, I'm a newbee in MT4. My Ea only needs OHLC price of every bar in the history. This seems the very basic function of all program trading platforms. But I got confused in Mt4.  There are 3 modes in the backtest. I don't need every tick data, but in the "Open Prices Only" mode, all of the OHLC...
hey guys im new on forex!, i let create an EA which is able to do good result.... i set paramater once to win 100 % trade but this strategy needs a lot of time.. so im looking for a shorter way, i can create an other ea in that way that he winns 49 to 1 / with small pip amount... pip amount is 3...
Hello community, i have tried pulling prices from etoro using webrequest but the problem is that it returns javasript that the page initializes with before displaying main webpage. I treid increasing timeout but still don't get it. link: https://www.etoro.com/watchlists I used FILE_BIN to save it to...
I hired someone to build an EA and then it performs as per the logic the in strategy tester but sometimes not works same way in the DEMO. I have a doubt in following codes and I don't know why he needs to define "testing" especially since it should work same in testing, demo and real. Please, can...
Hi guys, maybe anybody knows of any script or EA providing the following feature? I am using an EA on one pair, but 2 charts. So i use two setting for, let's say EURUSD, with setting A and a second EURUSD chart with setting B. The EA could trail the Equity and close when 1% profit is reached. But it...
_MAvsMA_ema - expert for MetaTrader 4 Marek Views: 5721Rating: votes: 25Files: MA_MA_2-35_EA.mq4 On Oanda's Meta Trader 4, on 1 hour chart, this works great on EUR/USD. Yet does not enter trades on...
Hi, I am backtesting my strategy on EURUSD on 1 minute OHLC but MT5 history contains minute data only for the last 6 months, it seems. Even if I increase the "Max bars in chart" from 100.000 to 1.000.000. Can anyone tell me, please, what options do I have ? Can I get 1 minute OHLC from MT5 ? Or I...
hi im looking for a coder to help me im very new @ forex but i have a strategy that is as simple as good and i would like to find a coder to test it cause im new at forex i dont know basic settings or paramater to set in the right way, but i have the strategy that obviously could be succesful....
Hi guys, Im new to MQL5 and learning as much as I can. I wanted to ask if someone could write out the code for a very, very basic expert advisor robot. All I want it to do is when the RSI hits a certain number, I want to open a trade in the opposite direction with a take profit level and a stop...