Expert Advisors and Automated Trading - page 144

To post a new topic, please log in or register
  Indicator (2)
How can i change an indicator from mlq4 to .dll?
ANDHUPP
Hello, I'm trading some CFD contracts and I always have to be aware when they're about to expire (I have to load the EA into the new contract in order to keep trading). Any change I could do this automatically? Thank you for the help!
Hello guys, I'm not quite sure what am i doing wrong yet i have spend about 4 hours on this problem and somehow i just don't know the mistake. dll: #define MTpublic __declspec(dllexport) using namespace std; void MTpublic __stdcall spinit(int in) { sp:...
Good Morning ! Can someone please give a clue why I am facing an error 10004 with a FOK order ? Regards, Marcelo
[code] bool static double Buy_Limit = High[1] [/code] .....once above condition is true, execute order. And then reset value of Buy_Limit so that it can re-evaluate new High[1]. How can i change a static variable to dynamic, and then back to static as needed in an EA?
Dear Traders and Coders. After playing around with Panel control, I have found few limitations already. For example, two panel seems clash in one expert advisor. Plus when the list view is dynamically updated on Panel, changing position of panel by dragging mouse or whatever seems mis-positioning...
one of my signal account showing disconnect , i check the password its fine,  but no i dea why my accounts trade is not updated here. can anyone help me.
Hi, I used for some months a Tickgenerator script, but it dont send now the tick to an indicator or an expert advisor. Only the comment in the scipt is refreshed and show me, the the script is running, but my indicator/expert advisor (include a test alert call) dont refreshed for do the alert...
Im using the following code to trigger a buy order. What Im doing is looking for an outside candle, where the low of the current candle dips below the low of the previous candle....and then the high of the current candle breaches the high of previous candle. The following logic only works if its an...
Hello Fellow coders and traders. I have lately quite appreciated that MQL4 and 5 language have the native Web Request function: https://www.mql5.com/en/docs/common/webrequest So far I did not have any success using this WebRequest function for Custom Indicator. Is there anyone successfully...
Good day users, I have been trying to learn how to code very recently. I am not sure of much, but I wonder if anyone here has successfully coded a cross of two lines in the oscillate indicator. I just want the trade to be taken when a cross between line a and line b occurs in the overbought or...
Hello Coders and Traders Just curious what is the easiest way of converting "10-25-2015 2:00am" to MQL native time structure? Your help will be really appreciated. Kind regards.
Hi, I draw with my EA the line between open and the close-price, but the Backtester draw the lines automaticly, so I have two line for each trade. How can I disable the automatic draw-lines? I tried already CLR_NONE in the OrderSend call res=OrderSend(Symbol(),OP_SELL,LotsOptimized(),Bid,3,0,0,""...
Hi, I saw a usefull EA http://www.forexfactory.com/showthread.php?t=445367, unfortunately only as ex4-file, I am interesting in the code for creating interaction with hotkey_buy 'B' and hotkey_sell 'S' to open market positions in the tester during the visial mode. In the MetaEditor help I cant find...
Hi there, maybe I overlooked the function, but how is it possible to prevent the user from changing the current symbol in the current chart? In my opinion, it´s  a no-go that a user can kill the EA performance by simply dropping a new symbol on the chart, because within the OnDeInit() I have no...
Hello, can anyone help with this problem? When exiting my EA (File\Exit), I want the remaining pending to be deleted. So I write: .... void OnDeinit(const int reason) {Delete=OrderDelete(MyPendingTicket,CLR_NONE); Sleep(3000); } ... I added Sleep(3000) to check, and 3 sec pause...
Dears, using the "every tick" option in the strategy tester I got strangely good results. Then when I looked at the help topics I figured out this option may be cheating: "The Calculation of Indicators During Testing In the real-time  mode, the indicator values are calculated at every tick....
Hello guys, Someone could please help me to fix the code above? Already tried many things and read many posts also.... unfortunately without results :( It's showing this Error: 2015.10.22 15:06:44.235 MA_Cross EURUSD,M1: Error opening Sell order [MA_Cross EURUSD_PERIOD_M1]: (130) invalid...
Hi. Im trying to use ArrayCopy to copy all the data in all of the dimenttions.. the problem is that i cant find any documentations on how to copy more than one dimension. here is the code. #define ORDERARRAY 100double OrderArray[ORDERARRAY][3];....void InitOrder(int ticket, double sl, double...
Hi, I"m trying to fetch a local url on my machine (http://localhost:52957). The code below is from the following url (https://www.mql5.com/en/docs/common/webrequest). I am able to browse to http://localhost:52957 with a web browser. I keep getting the following error:...
Hi, today I started my first project in MQL5 and right at the beginning I'm very frustrated, yet. I wanted to draw some lines at prices from an array. I never had problems with arrays, but in MQL5 I don't get it working. For any reason I get the error message "array out of range" and the EA will...
Look this image, thre are ㅁ shape code what's that? what should i do? sorry for my poor English
Good Afternoon, Anyone have faced the same experience? When upgrading MT5 used to run Strategy Tester,do we also have to upgrade the agents to the same version number? All my agents have stop working. Justwant to make sure this is mandatory. Regards, Marcelo 
Hei any one find find why this code doesn't work ? Must be something wrong //+------------------------------------------------------------------+ <removed by mod>
No machine more intelligent than human. So never trade with any EA. Even result backtest so beautiful. All EAs just lose your money. Remember what I say.
forexspidey
Hi, I have an EA which has been working perfectly fine with broker 1 MT4. I installed another broker 2 MT4 with different terminal directory and copied broker 1 EA to broker 2 EA directory. It uses custom indicator. So, i copied broker 1 custom indicator to broker 2 custom indicator directory. Now,...
Hey guys, i am working on an EA in H1 Period and have to solve a probem with (weekend) gaps. I dont want it to open trades after a price gap of more than 10 pips occured. Tried to solve this with: if ((Close[1]-Open[0])/(PipValue*Point) > 10) and if ((Close[1]-Open[0])/(PipValue*Point) <...
Hi there, does anybody know if there is way to figure out the baseline of graphical text in MQL? What I mean is, text has a height, which you can get by TextGetSize(), but this defines only the difference from the lowest pixel to the highest, but not the baseline, which defines the common aligning...
i use this cmd double checkrange;checkrange=range();Alert(checkrange);//--------------------------double range(){double range=iATR(NULL,1440,14,0);return(EMPTY_VALUE);}real value of ATR is 0.0097 EA is alert (2147483647.0)
Hello everybody, I have problem to use ChartScreenShot function when running on strategy tester. There is no file created on 'Files' folder. Anybody ever try this? Is ChartScreenShot function not supported on strategy tester? I check the return value of this function, and it's return true....