MQL4 and MetaTrader 4 - page 1442

Trying to do a few things here. One, How to get account info and store as a double global variable? int AccountNumber(); string AccountName(); then how to use that variable to name a file such as: int handle; datetime orderOpen=OrderOpenTime(); handle=FileOpen("filename",...
[Deleted]
I spent some time looking for a reasonably priced VPS server to host MetaTrader and settled on a 3dgwebhosting MetaTrader1 VPS account at $15 per month with 512MB RAM and Windows 2003 Server. I am very pleased with it. Signing up for the account and setting it up was completed quickly at the...
Question: When my script opens an order, does it wait until the order is placed before it continues on with the rest of the script? It feels like there is an overlap. like the script goes on without even any confirmation that the order was placed. Can someone enlighten me or point me in the right...
  SMS Signals  (11   1 2)
Any recommendation on Forex SMS Signals. There are hell of websites offereing signals via sms, but I need a trusted and the most reliable one. Does anybody has a good expereince and recommend something ?
  Auto Trade  (2)
How to let my MT4 automatic enter a trade when the price trade at or touch the BB Band
I am getting data out of a file, in this case, the value I am getting is "EUR/USD". Then I perform a little string manipulation to get the "/" out of the string. int Handle ; string FileName = "Callouts1.csv" ; string Symb = "" ; string TmpSymb = "" ; double Entry ; double StopL ;
[Deleted]
I am confused and will appreciate if you could help me understand buffer. Buffer[] is an array...correct me if I'm wrong. Then, Buffer[5] is the 6th index in the Buffer[], or, is it an array called Buffer[] with 5 things inside?
My EA worked well on FXDD demo, now I moved it to FXCM demo where fractional pips are offered. So I put in the following code to suit the frational pips: if (Digits == 5||Digits == 3) pt = 10*Points; else pt = Points; sl = price - 30*pt; tp = price + 90*pt; but I am still getting error 130,...
[Deleted]
Hi, Im writing an EA and I am having some trouble writing a loop to do something I want to make able to look through all my open orders and see what order has the largest target profit and and then do two things 1) I want it to tell me how many lots all the orders that have that target profit are...
though we can do strategy testing by date on MT, how can we test by date and time as well. Say I want to test my strategy from 14 July 08:00 to 20 July 20:00. Actually my indicator works on 4 hrs chart, and so I want to test the strategy accordingly.
  Buy ready-made advisers, strategies  (61   1 2 3 4 5 6 7)
Lukas buys ready-made robots, ideas, signals, strategies, advisers for FX, stock and commodities markets. All discussions and negotiations via skype only
I tried to copy file with ex4 string to metatrader indicator folder, and cannot do that. I cannot import this to metrader, please help guys.
[Deleted]
Hello Sir, help me create a simple EA. the EA will place pending orders immediately after the close ofthe first candle of the day at 12:00 depending on brokers time, Alpari.co.ukbegins a new day at 12:00 which is what i use. but it should haveoption where one can put this time, since brokers time...
Hi Everyone, I've been reading,explaining, and commenting about an indicator all this morning and not getting very far in the learning curve. It is only an exercise to understand the MQL4. It is an indicator that closely resembles the ATR, authored by Wells. Build a program that returns the...
[Deleted]
Hi, When Im looking at the market I like to just make orders that dont have a SL or a TP and when it looks good I will buy and then later at some other time when it looks bad, I will sell, but its really hard for me to keep track of that because when I buy and then sell I get 2 orders placed at the
Hi, I'm trying to program an EA. I want to scale out a part of the trade. Not closing it but changing the stop loss to a very close level (n pips). So, if the market comes back those n pips, it will close partially the trade. If not it will allow continue running. It should ask the user how many...
[Deleted]
Does anybody know if it's possible to change the horizontal scale time zone on MT4? Also, out of interest, who's timezone is it currently set at? Thanks
Please give me feedback if you have tried trading on your phone. I want to get one to monitor my account and close trades on the go. Please give me as much inputs and pros/cons as possible. :) Thanks all and happy trading!
i am here to share a chase Trend EA idea, which haven't code success i hope post 2 code can help u code less in your EA It's idea is if the price go up past 50 dyas average amplitude, then assume it is up trend, will be instantly(actually I pend the Buy_Stop Order) also the same condition of sell...
[Deleted]
I haven't been successful coding it myself...I want ONLY 2 buys(for example) to be placed. 1 with TP and the other without. until SELL condition happens. THEN close all open buys and place two sells with same details. Seems like there should be an example out there of EA's that do this?? Running on
[Deleted]
Hi, I am trying to program a channel line. The exact trend line channel you can draw on the metatrader chart. I would like to have that trend line available programatically and signal a sell if the trend channel price falls below the trend line. Any simple ways this is done or hints on how to...
[Deleted]
  Optimization flaw  (12   1 2)
I'm running an Optimization for an EA I built and even though I have "Skip useless results" UNCHECKED the strategy runner is not running every possible scenario (or it is and is just not showing me). The strategy runner should be running 900 different combinations but it's only doing 100 passes....
[Deleted]
I'm really scratching my head trying to fix this. I can't scroll back beyond 1st Apr 09 for the GBPJPY pair only on all time frames. Unclicking the autoscroll and chartshift button doesn't seem to work. I only have this problem with the GBPJPY, the other pairs are fine. I have tried reopening a new
[Deleted]
I'm sure this is probably simple, but how to I adjust my SL and TP from 4th decimal place to 5th? TakeProfitB = (Bid+10*Point); TakeProfitS = (Ask-10*Point);
The ATR doesn't seem to display any text on the JPY pairs. Any ideas why not? double distanceAway = MathAbs(currPANearest-Bid);   double ATR = iATR(NULL,PERIOD_H1,14,0);   Comment("currPANearest="+DoubleToStr(currPANearest,2)+           "\nDistance away="+DoubleToStr(distanceAway*10000,0)+...
Hi, This EA can placed order but it cannot take profit, I do not know why, can someone help? Thank you in advance. //+------------------------------------------------------------------+//|                                                  exp_Amstell.mq4 |//|...
Hi, I wrote a script to check my email and parse the messages it recieves into an easily readable format OrderType;Symbol;SL;TP1;TP2;TP3; etc.... The same script then writes a new .txt file containing this information into \files\Symbol\signal.txt. This file is then read and the order executed by an...
[Deleted]
Does anyone have an idea why my orders aren't closing when the log says they are? . . 11:29:36 ZEME EURUSD,M1: Alert: Attempt to open Sell 11:29:40 ZEME EURUSD,M1: open #8671746 sell 1.00 EURUSD at 1.42182 tp: 1.42152 ok 11:29:40 ZEME EURUSD,M1: Alert: Opened - Sell Order 8671746 11:29:40 ZEME...
[Deleted]
From what I understand, the maximum data one can backtest in Strategy Tester is dependent upon how much historical data your broker provides you. I've used the standard method of opening up a 1 miute chart, zooming out, turn-off the autoscroll, and hitting the 'home' button until no more data shows...
[Deleted]
I am not a good ones scripter. I would want an aid for a script program to insert after the start trades After I have inserted an order at the market of SELL or BUY I want to activate a script program for CASE A - AFTER I HAVE SOLD: a1) when the price arrives to -6 from the ask I insert the stop to...