MQL4 and MetaTrader 4 - page 755

To post a new topic, please log in or register
Hi guys, I am fairly new to the forum and still learning MQ4 (thanks for the support with that too ;) ) I couldn't resist writing a post for something completely different, please forgive me if it is too cheesy!!! (It can slip down the list unanswered or moderators are welcome to delete if nobody...
Hi, I'm quite new to EA and bots and have been quite confused as to how they work. What i don't seem to grasp is how does the EA/robot automatically enter Buy and Sell signals? For instance, say, i have a US$ 2,000 Forex trading account. The brokerage gives a 50:1 or 100:1 leverage (Note that I...
what happen to my mt4?my internet connection is ok but cant connect with server? n i have open position..ive tried to refresh n many thing but still failed to connect.. is the server have problem or not? anyone facing the same problem?
Hi all, I'm pretty new to MQL4 and I'm starting to build a new EA that I want to stop trading if I hit a certain number of pips (either profit or loss) for the day and the week (ie. 20/day and 50/week). The way I wanted to go about it was to look at the account balance on Monday and just do the math...
CAN ANY ONE HELP ME I AM TRYING TO BACK UP MY PROFILES ON MT4 BUT CAN NOT SEEM TO FIND THEM IN THE PROFILES FOLDER USING WINDOWS 7. THE PROFILES STILL EXIST AS I USE THEM ON MT4
Hi, I downloaded and installed this EA. Did not change a thing in the code. When I backtested this EA on some historical AUDUSD data from Alpari I got some unexpected results. The most puzzling is that I have zero long transactions. Only shorts. I don't think my data historical data is faulty...
and Win32_DiskDrive (WMI class) HDD ID Is it possible and how to ?
extern int UPPER_LIMIT_ON_COUNTLOWHIGH=5,TOTAL_ORDERS=3; extern double SL=200,VOLUME_LOT=0.01; extern int SLIPPAGE=3,TP=2; int countlowhigh=0; double prevprice=0.0; //+------------------------------------------------------------------+ //| expert initialization function...
Hello, Is somehow possible to have multiple Market Watch windows ? Let's imagine grid 4 x 4 or 4 x 3. Thanks for answer. Neufurth
Hi guys, I need help. I have created a simple custom indicator for using functions such as iRSI, iADX,...in some EAs. I noted if I use for the custom indicator the same or smaller ( for exemple 60 min, 30 min) timeframe than the one of the chart (for exemple 240 min) where I use it, there isn't...
Hi, I have a SIMPLE PROBLEM: There is opened BUY LIMIT order 30 pips lower than current Ask price. If the Ask price increases over 30 pips I would like to modify OpenPrice() of this order (set the OpenPrice() 30 pips lower from current Ask price AGAIN) and do it every 30 pips (not every pip but...
How to check the total number of open orders? Is there any function can do that? I still don't get the meaning of OrdersTotal(), does it include all current open orders and stop loss/take profit orders? or it only include open orders, if so my problem is solved. hope someone can answer this, sorry...
Ok guys, I need another set of eyes to help me with this one. //~~~~~~~~~~Basket-Stablize:if(Order_Manage(iMagic,"Abs_Last_Order_xSymbol_wMagic")==true){    if(StringSubstr(iSym_,0,3)=="USD" && iType== 1){        if(Base_=="USD" && Signal== 1){Signal=0;}        if(Base_!="USD" &&...
  Holy Grail (8)
hello I have been searching high and low to get a glimpse of it and i landed on a pic. It tells a 1000 stories. Only thing missing is its name. I attach its photo and i request anyone out there who might know its name to help me out. Please post its name. Thanks in advance
  Newb question (5)
If you open the prebuilt indicator Alligator.mq4 and add the one Print statement to the code as seen in the attached jpg. When this is compiled and added to a chart, I would expect to see in the Experts window the first Print executed would show, I = 0.....but it shows 208 for the chart I am adding...
Hello all, I have bought into the "Hector Trader" system, but I can;t seem to get the provided templates and indicators onto MT 4....I click on the "here" button (on Hector's website) but then I don;t have the choice to import into the MT 4 platform...any help please?
//+------------------------------------------------------------------+//|                                                GBPUSD trader.mq4 |//|                      Copyright © 2011, MetaQuotes Software Corp. |//|                                        http://www.metaquotes.net...
Earlier I forgot to put in the code that I want to have this work on. It is attached here now. This is like a Semi-Auto EA. Enters trades well, then keeps adding more lots and won't close the trades. Need to get this fixed. I am a newbie coder and this one has got me. Hope someone can help me with...
  Coding questions ... (38   1 2 3 4)
mladen This is an indicator so I'm not sure OrderType works in an indicator. I can't seem to get OrderType() to work. In the last line of code the BasketType always shows 1 for both op_BUY & OP_SELL. the OrderType always shows 0. Thanks for your help, I hope. Ray Line 231 if((OrderType())== OP_BUY)...
Hi all, I was playing around with an EA(kind of) to show me the total number of objects in a window. I used an Point and figure indicatos that uses boxes. Wnen I let the tester run at "normal speed" (slider at about 30), I get all the objects counted. However, if I hit "skip to" buttom, it stop...
IF you see in MT5 you could find this indicator. I have attached it here. There are similar ones in MT4. My problem is that I want to apply it to "Low" or "High" not only to close. You could do this in MT5, But because my broker is using MT4 I need to do it in this platform. Can Anybody help? I...
  weekly box (6)
I have a problem with the times on this chart. It works with the one hour chart highlighting a box for the daily range but on the Daily chart, I am trying to highlight a box for the last week and it doesn't highlight the correct number of days.    double AlertsOn = 1;   int periodmltp = 0;   int h =...
#property indicator_chart_window#property indicator_buffers 2#property indicator_color1 Red#property indicator_color2 LimeGreen//----extern bool Show_Alert = true;//---- buffersdouble upArrow[];double downArrow[];string...
I would like to make an program that can open orders when every new bar presents conditions are 1. new bar present 2. current price higher or lower than the previous bar's high or low 3. does not exceed order limit // how many times it can open order in one direction. e.x. for uptrend, int...
  DDE Servers (2)
I'm new to MetaTrader. I'm wondering about one thing - DDE Servers. As far as I know data feeds are expensive things and from the other side if I can export data from MetaTrader using those DDE Servers stuff. 1) Is this legal? 2) Am I able to obtain tick data with OHLC from MetaTrader using DDE...
Hi, I am struggling with my first EA and I am getting error=1 when calling function (take profit/modify SL/scale out) Attached is the code for taking profit/scale out the Alert shows funny digits for SL, and I cannot understand why it fails It appear to be some major issues I need to learn with my...
Hi, would someone be generous to help me and attach a simple traing hours function to this ea i have tried to add the function iTime but with no success
In MetaTrader5 I see only few, most popular symbols: e.g. EURUSD, GBPUSD and so on... I'm wondering if other symbols, less popular are also available in MetaTrader5?
I keep getting the '\end_of_program' - unbalanced left parenthesis error when I compile the following indicator code. Anyone could tell me why? int start()  {        if(OrderSelect(ticket_number, SELECT_BY_TICKET)      {       order_profit = OrderProfit();      }        free_margin =...
for(int pos = OrdersTotal() -1; pos >= 0; pos--)      {//:for       OrderSelect(pos,SELECT_BY_POS,MODE_TRADES);      if(OrderSymbol() == Symbol() && OrderMagicNumber() == MagicNumber)         {//:1         IsTrade++;               if(OrderType() == OP_BUY)             {//...