Download MetaTrader 5

MQL4 and MetaTrader 4 - page 979

To post a new topic, please log in or register
I've got a nagging problem with this piece of code. It is supposed to modify the stop loss of OP_BUY or OP_SELL orders, but somehow is it tries to modify pending orders, and ignores the op_buy/sell orders. I thought the: if( OrderType() <= OP_SELL ) would take care of that but it doesn't.. :( When...
How To Turn Every $5 You Invest Into $10 in 7 Days or Less http://dd6.infos.cx
  MQL4 Book (1)
I have downloaded the MQL4 book, "mql4bookenglish.chm" numerous times and when I execute the .chm I get"Navigation to the webpage was canceled" also the same thing happens when I execute "metatrader4_en.chm"
  mobile mql5 (1)
Will we be able to convert our indicators and EAs from mql4 to mql5? Also, will we be able to load our own indicators onto the mobile version of metatrader5 which is not possible on metatrader4?
could you be so kind and help with the given problem in the headline. Thanks Fino
  Onchart? (13   1 2)
I really like this indicator but there is no room for it on my chart. Is there a way to make a window indicator into an onchart indicator? Waddah_Attar_Explosion.mq4
............ it's driving me nuts!! lol hi guys n gals firstly, this is my very first post on the forum so may i wish you a happy new year to all, and all the very best for the coming year! my name is michael and i'm pretty new to programming in mql4. i'm enjoying it immensly and generally i've...
How can I change the color of an indicator that appears on the chart, thru an EA. For example: mediumEma = iMA(NULL,0,21,0,MODE_SMA,PRICE_CLOSE,1); longEma = iMA(NULL,0,55,0,MODE_EMA,PRICE_CLOSE,1); both appear in red color. Regards Andreas
Hi fxwin, Interesting combination. Please send it ingenierofx@hotmail.com Thank you very much.
I am trying to write an indiactor that wil plot a horizonal lines at the past DAILY Average High and Low points on the chart. I have no background or idea how to write this. I have looked at mant indicators on the forum to try to get an idea but, I get confused I am not sure how to wite in code take...
i need help if this indicators can add into metastock software if not possible pl tell me
  For EA (1)
Results look pretty good. Please send it to me: yjl1950@yahoo.com.cn and I'll run some history test. Thanks.
When I compare the MT4 Least Squares Moving Average to Tradestation's Linear Regression Curve, they are certainly the same formula. However, the MT4 indicator has some nice red/green/yellow color coding which I like a lot. My Tradestation indicator is just one color. If you look at the MT4 Least...
Just published MQLmagazine 's december edition.
Hi, I have been trying all day to upload various other indicators into my meta trader platform and each time I have been unsuccessful! I would really appreciate any help with this matter, thank you. TULU
Hello. I have been trying to modify the code with iHighest with no luck. I'm trying to find the highest point between 2 specific times (example: highest price between 1200 - 1700) - not last "x" bars, etc. Once it identifies the highest price, I'm trying to get it to draw a horizontal line making...
Hi All i am trying to place orders OP_SELLSTOP at hour() higher than the current price and OP_BUYSTOP lower than current price in an EA. double down = Open[0]-400*Point; double up = Open[0]+400*Point; Ticket=OrderSend(Symbol(),OP_BUYSTOP,ILots,down,Slippage,SL,TP,EAName,Magic,0,Blue);...
Francois Tremblay
Is-it possible to do the following : For example, on a GBPUSD H1 chart, instead of 13:00 to 14:00 bars, I would like to have 13:02 to 14:02, etc... How can I set up a shift like this ? Thanks
Is that very simple? But can't do that. Please help me. Many thanks. I have try with this: Alert("OpenD1: ", Open[0]," HighD1: ", High[0]," LowD1: ", Low[0], " CloseD1: ", Close[0]); And back test it with: (From 2009.01.01 to 2009.12.20) - Period: Daily - Model: + Every tick...
Hi Everyone! So I've been using the shell32.dll to execute .exe files for my EA.. It works fine, however, I can't use it in tester because as soon as the EA fires off the command, it proceeds with the rest of the script.. is there a way to make tester pause from setting off the next tick until all...
Hi, I want to programm an EA, which only open a new order when the close price of the candle matches my requirements. How can I programm it, that the EA has only to look at the close time of the actual candle or at the start time from the following. I hope you can understand my problem and give me a...
Hi to all! My name's Luca; I've got a big problem; HMA EA works well but I have to put it on a CENT account; My cent account has a limit -broker limit- of 100 lots for each order, in cent account 100 lots = 1 standard lot = 100000 usd So can you change in "hma ea.mq4" the maximun lot for each order...
  ticks.raw (2)
how can a person see or get the ticks.raw file in usable format?? I assume it containsthe ticks and time, both of which I need.. just them..
Hello, I need help on this EA. Actually I already got system in Amibroker TA,also I am trying to code same system as MetaTrader EA. Below is amibroker code(AFL) for system that I want to code as EA. Quote: no= Param("period",7,1,100,1); res=EMA(HHV(H,no),3); sup=EMA(LLV(L,no),3); a =...
Hi: After having performed an optimization test with MT4, I can only see the variable sets (combinations) that produced a net profit result. I'm questioning if it's possible to see all the parameter set results (within net profit and net loss)? Obtaining the full parameter set results of an...
  Sleep() Function test (18   1 2)
I found the Sleep() function does not work exactly as expected. See the table for test results. The test is to Sleep() from 0 to 99 millisecondsand use GetTickCount() to see how long the sleep lasted. Results might vary with different PC hardware. Conclusions: This is probably OS and/or hardware...
Hi, Can somebody help to create EA from fisher_yur4ik custom indicators. I have a simple ideia for EA using Fisher indicator. When fisher previous bar more than 0.25, Open BUY and after open buy, if fisher previous bar below 0.25, CLOSE Buy And if fisher previous bar below -0.25, OPEN SELL and...
Hello, Can someone please help me to convert this EMA code in EasyLanguage to MQL4? Or, if you already have the code for EA trading system, it would be great. Thanks a lot. { Buys if Price crosses over Avg and then stays above Avg for one or more bars } inputs: Price( Close ), Length( 9 ),...
I have written a simple EA which should close an open position once there is an EMA-crossing in the opposite direction (as part of a bigger program, but I want to take one step after the other to make sure there are no hidden mistakes). After about 2 hours the log file grows to about 25GB !!! - Is...
I am interested in any views on how to calculate the maximum lot size you can use before you have an affect on the market. It would seem to me that in quite periods a small lot size could have an affect. I would like to know what criteria i should use so i can code it into my EA. I am also...