Expert Advisors and Automated Trading - page 12

To post a new topic, please log in or register
Hi everyone, I can't solve this programming error: "lastTime2" and "name2" do not work (no value is assigned to them), but "lastTime1" and "name1" work. Some idea? Thank you //Scriptstring name1,name2,name3;void OnStart() {   string Currency1=StringSubstr(_Symbol,0,3);   string...
Hi All, Thanks for your time in seeing my issue. I am trying to make logic with mql5 platform with some rules pre-defined in place,thus achieving auto trading. but i could not see my order is placing i.e both buy and sell on those rules in 2hourly,30min,5 min chart. kindly need some...
Hi! I'm facing a issue with MT5 Optimizer. I'm running some optimization and few days ago the results are zero trades for most part of the tests. But not for all tests combination. Just like this: I have an EA which was working fine for tests, but it started to give me this kind of report. Any ideas...
How to get the new quotes without the ontick function  
Hello everyone, I am Max, I am a newcomer to robot trading and i'm french. So i apologize in advance if i have a bad English. I am trying to find a fairly simple expert consultant (in MT4 and MT5): EA must accept orders when certain conditions are met. First, the EA must accept orders under the...
Hi Everyone, I want to use a indicator in an EA, this indicator has some input settings that I want to change it by EA and then EA use it for take positions, below picture is input settings of indicator, my problem is How I can use iCustom function for set value of drop down menu? for example How...
hello guys, im new here and i already tried hard to find out want i want buy still cannot find it yet i really need help to find this EA or can some one create this EA  Can anyone help me please? I want EA that can auto modify TP/SL both Buy/SELL Oders to xxx pips or xxx prize base on break...
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....
Hi, I tried to load indicator from EA using this ChartApplyTemplate function.  But I don't know how to load with specified indicator parameters, When I tried with template it was load by default params. Like iCustom function with parameters, how to pass indicator parameters to load on template when...
high[1]>ma[1],cLOSE[2]<ma[2],open[0]-high[1]<N2, sell, IF HIGH>high[1](sell bar),close sell, if ma[1]>ma[2],close[1]>ma[1],close sell. buy as the same.
Hello, Im trying to find the mql.exe compiler that in MT4 new builds is not included. I need it to make a WFA software work. Really appreciate your help. Rgds
void BtnClose(int myOP){                ActiveOrderInt=0;                for(CloseCount=(OrdersTotal()-1);CloseCount>=0;CloseCount--){                if(OrderSelect(CloseCount,SELECT_BY_POS,MODE_TRADES)==true && OrderMagicNumber()==ID && StringCompare(OrderSymbol()...
  News filter (4)
Hi everyone, I would like to create a news filter so that my eas do not trade in the two previous hours at the exit of an important news and also in the next two hours. My problem is that I can't distinguish the important news (which I take in consideration) from those with little importance (I...
Hi, Does anyone have a script that automatically set Buy Stop/Sell stop when an open position (Buy or Sell) has been executed? &nbsp; Like for example: 1. Buy Order has just been executed via instant order orpending order. Script will run to have Sell Stop Order below the recent Buyopen...
Hello everyone, so I have a trailing stop function which works but once it changes my SL it keeps doing it again and again So this is the function  void TrailingStop(){   //Last bar close price   MqlRates PriceInformation[];   ArraySetAsSeries(PriceInformation,true);   int Data=CopyRates(Symbol()...
  EA removed (4)
Hi! I bought an EA that has been removed, I had 2 installations left, do I have lost it? Thanks to all
Hi Guys I would like to create a trading robot written in MQL4 that will be able to make trades in binary options, 60 second expiries, for example. The robot will send trades based on a strategy in MT4, the trades appear in the  terminal. Is this even possible? Please help.
Hi all, I am developing EA in which I need to parse and read XML. Is there any XML library available which I can use to parse, read and search nodes. Thanks. 
I want to make a very fast local trade copier, Is writing to and reading from files is the only way to make a trade copier?
pending order triggered, then auto trailing stop came.... Possible? 
Hi Guys, i try to use the CHARTEVENT_MOUSE_WHEEL on a new MT4 Build 1170. Confused ist that the MTEditor suggest me the event and the ENUM 'CHART_EVENT_MOUSE_WHEEL' for the ChartSetInteger function. But the ChartSetInteger function return false and GetLastError return 4210 = Unknown Chart Property....
HiPlease help me develop an EA based on this strategy : 144 period Linear weighted MA  5 period smoothed MA  Time frame 15 min  Lot size  0.01 No trade before the previous is closed  - Buy conditions  1.) 5 SMA signal crosses above 144 LWMA signal 2.) Price is 10 pips above 144 LWMA  - Sell...
void getActiveSignals(){    row = 0;    col = 0;    activeSignalsFileHandle = FileOpen(getActiveFileName(), FILE_CSV|FILE_READ|FILE_WRITE, ',');    if(activeSignalsFileHandle>0)    {        while(True) //loop through each cell        {            string temp =...
I ma trying to find out order open time for a pending order> im using this function but still  don't get accurate results          long time1; datetime time_setup=OrderGetInteger(ORDER_TIME_SETUP,time1 ); I've used order select to select the order. Any help?
Hi I Have 2 Variables Of Type Double (Total Of Profit Pips And Total Of Loss Pips) In Ea And I Want Save Their Values In Text File Because I Need Their Value If I Close MT4 Or If  I Want Use Their Value In Another MT4 So Please Help Me To Save And Read Double Variables In File .    Thanks.
hello together. please need help to program an EA for closing open orders. important is that the function of pre-defined profit is possible. looking forward to hearing from you. thx walter
So I want an EA that open two pending orders at a specified time. The two pending orders are one buy stop and one sell stop with customizable distance from current price at that specified time. For instance, GBPUSD is at 1.26743 price level at 00.00 GMT+7. I want the EA to automatically open a buy...
I subscribe to two VPS servers provided by MQL5. On each server, I have no EAs or charts... only a signal subscription (one of each server). Setup was easy. I subscribed to the signal on my local PC then subscribed to a VPS, then migrated to the server and enabled automated trading. I did this last...
Hi folks! I am not a programmer! Can someone help me out to set  this code up  in order to ignore all types of the DOJIs? Much oblied #property copyright "Copyright © 2010, Stephen Ambatoding."#property link      "sangmane@forexfactory.com"#property indicator_chart_window#property indicator_buffers...
Yikes, I have tested an EA similtaneously on an MQL5 VPS and on another account just on my computer. Same broker & server for both accounts. The EA  also had the same settings on both accounts. Completely different output. The VPS performs very badly and opens trades erratically. This is concerning....