MQL4 and MetaTrader 4 - page 1233

[Deleted]
Sorry to ask another Error 130 questions but I have searched and read many of the previous posts on this and can’t figure out my problem. I am just learning my way thorough MT4 and backtesting. I decided to back test on real tick data and used the process from Birts site to generate GBPUSD M1 data...
[Deleted]
When I activate Drop Pending Buy or Sell, I've got the following error: 2010.11.23 16:17:36 DROP_PENDING_BUY EURUSD,M1: invalid stoploss/takeprofit for OrderSend function no matter if I set Stop Loss/Take Profit to 10 or 9999999. What should I do? Here's the script (drop pending buy): #property...
[Deleted]
hi! im looking for a complete and efficient pivot tool i could use in a EA, and as far as i know, they all have flaws. dailypivot_shift looks best than many others (it shows all of today's levels and doesnt take sunday into account). but theres a lack : id like to see previous day's supports and...
[Deleted]
Hello I am a newbie, trying to create a simple system that buys when the slope of the Hull average changes from falling or flat to up. I have done this but I am sure there must be a simple way that in facts works. If anyone can help I will appreciate, regards. double WMA1 = iMA(NULL, 0, N1, 0,...
[Deleted]
Hi, How can i run EA1 on GBP/USD and EA2 on GBP/USD. When i do this i see buy and sell and open positions from both EA on the GBP/USD charts . How to solve this? Thank u. kind regards. Xavier
[Deleted]
int ArrayInitialize( double&array[], double value) Sets all elements of a numeric array to the same value. Returns the count of initialized elements. Note: It is not recommended to initialize index buffers in the custom indicator init() function as such functions are initialized automatically with...
  helppppppppp  (2)
Hello, If you know Windows 7 and understand meta Trader I have a Windows 7 and when I get a file with a EX4 he did not recognize him. Interestingly again - XP Vista is well recognized. I mean this is a problem only of Windows 7. Can anyone help?
[Deleted]
There has been a critical error Time : 2010.06.08 12:09 Program : Client Terminal Version : 4.00 (build: 225, 10 Jul 2009) OS : Windows Vista Professional 6.1 (Build 7600) Processors : 2 x X86 (level 6) Memory : 1965304/813884 kb Exception : C0000005 Address : 71209033 Access Type : write Access...
How do you put the date in for expiration in the OrderSend function if your using a 'pending order' command? If I replace tmpTime+3450 w/ 0, it works. I also get an 'invalid stops - 130' on my order modify. Anyone got any ideas? I'd appreciate it. TIA! int EnterShrt( string FinalSymbol, double...
I just read 7bit's complaint here, so I thought I start this topic.   The linear un-categorized form of this site makes it impossible for anyone to have any bearing to this site's past knowledge.  Forum only gives use one tool for all purpose, the holy search box! And we have to keep reminding...
HI There is an EA here that uses no indicators and started with a long and short, then on on next bar if it was 10pips way it closed the loser and open another in direction of the winner. Anyone remember it? cheers R
[Deleted]
Hello I would like to use the expiration parameter for some pending orders. Somewhere i read it should be in seconds but in fact it's not working like that. I would like to use it on 1Hbars and set it like after 3 hours the order should be deleted. Maybe i'm blind but i could find it in the...
Please suggest what do I need to change on this code? Idea for code is to place at last bars one BuyStop at high and one SellStop at low. This code is just adding SellStops. extern double lot = 0.1;datetime PreviousBar; // record the candle/bar timebool NewBar(){ if(PreviousBar<Time[0]) {...
[Deleted]
Hi, I have this indicator that need to be repaired. It can't work properly in the chart.
Maybe I'm just not up with the play, but I've subscribed to a few tropics, and am unable to work out how to A) be notified when someone adds a comment to a subscribed topic B) look to see if someone has added a comment without actually looking inside the topic thread. Maybe someone could enlighten
Hi, I have to detect a EMA’s cross, for this I have two possible scenarios: 1-Comparing the EMA’s value for candlestick index 0 (current) against index 1 (previous). 2-Comparing the EMA’s value for candlestick index 1 against index 2. For option 1, I got many false detections, because the...
In my EA, I have it set to trade on every new candle. With the trade methods behind the time checker , I would think that it would not fire any trades until the EA is fully loaded. So when it is closed and I open it, before it has even completed all of the display of indicators and before it has
Here is a small piece of code in an Indicator i am working on. I have become stuck with an issue. The following code relates to bars on current timeframe. I need (i) to be selective of the D1 timeframe only, reguardless of with timeframe is opened on the chart. Can anyone fix the issue for me....
Hi How do I backtest a moving average crossover? I've had a look through the help files, but can't find anything relevant. Thanks in advance. Jeff
[Deleted]
handle = FileOpen("Forex_EUR_USD.csv",FILE_CSV|FILE_WRITE, ';'); if (handle>0) { FileWrite(handle, ticket_six, OrderClosePrice(), Close[0], GetLastError(), OrderCloseTime());...
[Deleted]
  NEED HELP!!!  (3)
How to send an order? I use this EA to indicate me if the current value is above or below a ceratin level: int start() { double Level_1, Level_2, Price; Level_1=1.28337; Level_2=1.28337; Price=Bid; //-------------------------------------------------------------------+ if(Price>Level_1) { Alert("en
[Deleted]
I'm trying to write an EA that will work on MA crossover stratergy! The EA is working great. Now i wish to tell the EA that, "If BUY is open and the chart is moving downwards, then close BUY and open SELL and vice versa. Also if after flipping the trades if the condition reverses, the flip again."...
[Deleted]
Which of these trading rules is best for an Zig Zag indicator that I am calling with icustom for an EA. >higher than <lower than <=higher or equal <=lower or equal =equal <>different than
[Deleted]
Hi there, How can I get the angle of a moving average which is plotted on a chart? For example: I have 2 to 3 moving averages plotted on my charts. Based on the angle (f.e. 60 degrees) I have an indicator on how strong the current uptrend is. Should I calculate the angle myself, based on the
[Deleted]
  Print in Colors  (3)
I want to print my chart in my "phyisical" printer, but the preview print show me just in Black & White, but i need it in full colors. Someone knows if this is possible and how to do it
Hi, I have the strategy what creates M2 chart from M1 after running. Next step is open offline M2 chart and run the strategy on this non standard time frame. My question is: Can I make back test on the M2 timeframe or other non standard periods ? Regards, puncher
[Deleted]
When I scan my computer for visures It finds a Trojan called New Malware.bo in themetalang.exe file. It cannot be cleaned only deleted. I deleted exe. file then redownloaded ibsetup4and the trojan showed up again. What should I do? My platform has been crashing. Can this be the problem? Thanks
I have an EA running a forward-test on a dedicated computer which is logged on to my demo account. Will metatrader knock that computer off my demo account if I were to log on to that same account from another location? ..to check my account history from a work computer, for instance. I guess what Im...