Download MetaTrader 5

MQL4 and MetaTrader 4 - page 791

To post a new topic, please log in or register
Hello, I'm new with MT4... I used another platform that is dismissed now..and want to make the switch to MT4... Is BreakEven Stop available in MT4?? To explain it I will try to explain 3 examples.. Initial StopLoss===> always fixed Trailing Stop===> ''follows'' the profit at set-up distance...
I amlooking for trader, who speaks English very well and wants to realize ideas.
  Trailing SL??? (10)
Hello, The following EA based on Moving Average works perfectly on EUR/USD H4 200-6, EUR/USD and AUD/USD H4 200-6. I'm pretty sure that replacing the normal SL by trailing SL would make this EA more reliable especially on EUR/USD H4 20-6 and EUR/USD H1 20-6. Could somebody tell me how to rewrite...
Hello, I've stumbled across the problem that othares had before, but aparently none of the previously identified problems seem to be the cause... The problem is that I made a custom indicator and it works fine. Calling it from a self-made EA however via iCustom makes it always return the number...
hi all, please i need information on a reliable and cheap vps providing company, any help will be appreciated.thanks.
Hi All, Does anyone know how I could find where this error is in my EA? Does it represent a bug possibility in my EA? What do this mean really? thanks for your help! R
Can someone please tell me how to save Orders created by an EA to the Registry?
Hello, I downloaded a free version of EA Scalpel. I backtested it and i was pleased with the results. It's been activated for about a week now but has not traded yet. Can anyone detect why it is not trading? (i'm not familiar with MT4 coding). Many thanks!
hello everyone... i want the ea open next position using more lot that previous position when first position get stoplose.. example: if first buy position using 0.1 lot and get stoplose, then next position meet condition, so open position (buy or sell) using more lot like 0.3 lot.. is it difficult?...
//+------------------------------------------------------------------+//|                                       Custom 3Moving Average.mq4 |//|                                                      Open Source |//|                                              http://www.mql5.it/...
I wrote my script based on EUR-USD behaviour. Based on that pair, I decided how and where to snap the SL to the openPrice and when to advance it. Now, when dealing with other pairs, it seem that the price of other pairs tend to behave alittle differently, sort of restlessness. They tend to jump...
Hi Geeks, I am very new to this field and want to automate my trading. I want to place my order on the closing (and ofcourse opening of new candle) of day long Candle stick. The Start() event get called on every tick. Is there any way so that I choose only that tick which comes at the time of...
Hello, does anybody know how to set up a spreadchart of two symbols in MT4? So I mean to create a graph of the difference between these two. Thanks, 2222
When the stoplevel is 50 loets say, what does it measn? Example: Market Price 1.3050 Stoplevel 50 Stoploss 1.3060 is it acceptable? Manually it seems ok in expert returns ERROR 130 Any suggestions
what is the function ? I don't know what it is to do ~~ for(int i=0;i<OrdersTotal();i++) { OrderSelect(i,SELECT_BY_POS,MODE_TRADES);if(OrderSymbol()==Symbol() && OrderComment()==Name_Expert) { int type=OrderType();switch(type){case OP_BUY:sB=1;T++;LastB=OrderOpenPrice();break;case OP_SELL...
I always had a question about Candlesticks and since I got answers in this forum, I am going to ask it here: I understand that ALWAYS the close of a candle should be the open of the follower. But this NOT ALWAYS seems to be in the graphics. See the graphics I have: Look in the RED RECTANGLES. Is...
im trying to do something if the order lost, i tryied to use orderprofit but it always give me the same number (lose/win) really wierd someone have any idea   if (Order== SIGNAL_TRBUY)  {      if(OrderSelect(ticketb, SELECT_BY_POS, MODE_HISTORY)==true)       {        money= OrderProfit();...
I want to read the crosshair position from the graph. Is there such function exist ?Maybe it has a distinct (special) name that can be read with 'ObjectGet()' ?! James
I have an indicator which usually works well. When i run an EA and loaded my indicator to the chart in the meantime,but the indicator did not work. Is there any advice? data mismatch ?
Hi, I have the following code below - it seems to work fine running live (don't worry, it's a non-profitable strategy) where the stop loss and profit targets are hit, but when I run it in Tester, it does not trigger then and instead just closes the position(s) on the very last data set. Do I need...
Hello Folks, Just one fast question - I couldn't find the answer here. I wonder if it's too stupid... If I write an EA and want to use it on different currencies at the same time in the same terminal - Do I have to pay attention to something specific or does this always work without complications?...
Is it possible to run 2 or more sessions of MT4 (with different EA's) on the same account at the same time?
  Overload (1)
I did a script that has a loop while(true) Sleep(10) ; Is it possible that it overloads e.g. MT4 cache or so that adversely affects the program. If so, is there a solution? Thanks.
Hello, I`m working on my first EA and I have got several Problem solved but this one still appears. What I`m trying is to show the iMA() as a comment programmed in a for loop in the start() function of the EA. Well it appears on the corner but once in a while the value drops to zero. When I do it...
Hello Below is the coding I am writing which give the correct result, but if I change timeframe or symbol, the indicator disappears. The only way I can get it back is if I recompile the code. #property copyright "Brian307"#property link      "B121ANS@Hotmail.com"#include <WinUser32...
How can change a trade that is gong on with the opposite one e.g. BUY with SELL(if BUY is in loss and vice-versa...). How can we make EA detect the direction of the graph?
Pls. help me. I'm beginner. [code] int start() { OrderSelect(Symbol(),OP_BUY,0.05,Ask,0,Ask-150*Point,Ask+15*Point,NULL,0,0,NULL); } [/code] I want to use the price which the select function buy for the next order. How can I do that?
I'd like to learn MQL4 in order to program automated trading systems. However, I like to read manuals and tutorials on paper, and I prefer to print a pdf file. However, I have not been able to find such pdf file, but only chm and html code. Where can I find such documentation? I program VBA, python....
On the website of the Automated Trading Championship 2010, we've published a new article "The 6th Week of the Championship: A Sudden Rush to the Top". The Championship is in its middle now, while the leader is the same - bobsley. However the distance between him and the second place is the minimal...
Hi All I am using the following piece of code to read data from a text file sample data : 1.2345,1.4321,1.6545 1.7654,1.4432.1.6535 1.6556,1.5642,1.3645 The problem I have is that the code will not read any thing after the point so all it is returning is 1 for every piece of data. Does anyone know...
1...784785786787788789790791792793794795796797798...1244