Expert Advisors and Automated Trading - page 19

To post a new topic, please log in or register
chandra100
i have a profitable trading system that uses a custom indicatior. i want this ea to sell in market. but i dont know how to incorporate the indicator code with ea, as well as i dont want the indicator to display on chart.
Hi, I've deposited funds in MQL5, subscribed to a signal, have my MT4 terminal open, but nothing happens. My signal provider has opened a trade which isn't opened on my account. Are there additional steps to be taken? Thanks
Hi, After running the following code block:    if(!trade.PositionOpen(_Symbol,ORDER_TYPE_BUY,size,openPrice,0,0,RobotName+" "+timeframeToString(_Period)) || trade.ResultRetcode()!=TRADE_RETCODE_DONE)   {      lastErrorMessage="Position open failed. Return code="+IntegerToString(trade...
Hi, In compilation process of MT5 EA, I got "Code Generation Error" at Line 1 Column 1.  I have fixed other errors and warnings before this error.  I can't figure out where to fix. What are probable causes of this error ? I have been trying to convert an EA in MT4 which runs without errors to MT5. I...
Good morning all, I am new to coding just started last month taking my first course. I cant seem to find any topics on it, How does one go about coding a renko based strategy, for example if the last bar was green, buy. vise versa . Any insight would be much appreciated! thanks!
Hi all, I want download NEWS via expert adviser in csv or json format, please suggest from which site I can download it via MQL5.
Hi, I am running MT5 on Ubuntu/Wine. I have 28 charts open with a EA attached (on a demo account). I noticed that my EA was missing good entry points, and I found that starting a single chart with EA on my Windows box would open the trade as expected. Further investigation seems to indicate that the...
hi is it  the expert advisor real in the back test ?? because i try some expert it will make money and no loss ?? is that real ??
I'm currently writing an EA that places a buy stop or sell stop (using Ctrade) and then sets the SL and TP once the pending order has been filled. I'm trying to use magic numbers to keep track of the trades placed by this EA so that when the orders are filled, the EA only updates the SL and TP of...
Hello, i want to catch market orders in OnBookEvent(). But all i get are limit orders of the market depth. My Code: //+------------------------------------------------------------------+//|                                                     testbook.mq5...
I want to copy and save the highest value  of the last 5 bars.I want to use this value in later calculations, so I don't want  the value to recalculate as bars change. How do I do that?
How do I get the total commissions of multiple open positions? How do I go through all the open positions and adding them up? Thanks!
Hi, I'm porting my mq4 program to mq5 and I face compilation issues, not sure what variable expected here as I'm already passing str variable for StringSubst.     const string str=NewsArr[0][nomf];    string time=StringConcatenate(StringSubstr (str,0,4),"."...
Hello fellow traders, can any one have ilan 1.6 pipstep updated version i know some developers still try to improve it by time.
These EA, was developed by me, I have little knowledge on programming and coding, I meed some one to test and improve my project.
I copied this code from JimDandy's MQL4 Youtube tutorials, and I want to know if this code is updated/new code style or best way to do this EA coding? I modified some parts of code. What I don't understand are the 4/5 digits broker code computation, Ask/Bid, Takeprofit and Stoploss. How can I put...
Hello everyone, I've generated a strategy using the EA Wizard, and also included the intraday time filter module. I've converted my bit mask for my preferred trading hours (101000000001111110001101=10493837), but the advisor completely ignored the value and still trades all hours. Even if the...
Hi all I creating an EA which will trade on news. Economic callendars provides previous, forecast, and actual values for most of the news which a trader can use for trading, however; there are many news  which has no previous, forecast, and actual values for instance: USD's ---------------- Fed...
Hi all I trade in stock market in my country. I have my orders ( symbol;price;TP;SL) in a .TXT file ( or .CSV file if you want) and I want to import it to MT5 for trading. I want a script ( or something like) for that. Thanks in advance for your help.
bundercapital
Hello MQL5 Community, We will soon be adding our trading systems as signals for everyone to enjoy. We have come across the issue of what happens if someone joins our signal while there is an open trade. Will the terminal automatically fire up that trade at whatever the market price is or will it...
Hi Every one... I have a system that works semi-automatic and I need to be able to click on the tester chart and change the angle of trend line but it seems that the CHART_CONTEXT_MENU is false while testing and ChartSetInteger(0,CHART_CONTEXT_MENU,true); does not work any idea what can i do about...
My backtest had a single losing trade of 207.86, but it says the average loss trade was 11,132.32 and the gross loss was the same (11,132.32).  How can the average by greater than the maximum? MT5 Build 1940
Hello All, I have been struggling to create a MQL5 function to return the equity change for a position based on it's SL set. I have something that seems to almost work but the exchange rate conversion to account currency does not work, and in another instance I am two decimal places too much to the...
I converted my code from MT4 to MT5. I just discovered that something was not working like it was supposed to do... I put a lot of stuff in my magic number, when I parse the order, I validate if the magic is fitting with my current executioner. This code was working on MT4, on MT5 it return false...
Running through strategy tester I have the following snippet of code which returns 0 into ticket. The journal shows: 2014.05.06 19:16:48.519 2014.01.22 01:42:00 failed market sell 0.01 EURUSD sl: 1.35770 tp: 1.35570 [Unsupported filling mode] 2014.05.06 19:16:48.519 2014.01.22...
Can anybody help me with this? I have an EA that tested well in Strategy tester and when I take it to the Demo Trading the Graph results look like several trades should have hit there Profit target before hitting the stop loss. The stop loss is 2 pips on a 1 minute chart. I look at the charts of the...
Hi guys. I wanted to test the timer (OnTimer) and I did a very simple script. int tempo;int OnInit(){   EventSetMillisecondTimer(1);   Print("0: GetTickCount: " + GetTickCount() + " GetMicrosecondCount: " + GetMicrosecondCount());      return(INIT_SUCCEEDED);}void OnDeinit(const int reason){...
Which approaches do you use to handle data synchronization problems of a symbol in the terminal with the data on the trading server? 1. Exclude EA from the graph (radical)? 2. Do activate the Sleep function for a certain time? 3. Do you use another approach? Thanks a lot!
How is possible to read messages from alert window (last message)? Not from log file because the log file is not updated immediately .... I see only logs from hours ago....
Hi, I am trying to subscribe to a signal but I can not connect to mql5 community, I enter my user and password but nothing happens, and the "signals" tab is not in the terminal window as it is in the video turorials? I am using an Apple MacBook Pro. Can somebody help me? Thank you.