MQL4 and MetaTrader 4 - page 957

To post a new topic, please log in or register
Hello, i am programming my own ea but the ea isnt trading but if i look at the charts, there are bars with my conditions !!! the ordersend code is correct and working. conditions for long trade: the difference between the open and close price must be at least 3 pips the differenze between the last 2...
  SYMBOL() (4)
HI GUYS I HAVE SOME PROBLEMS REGARDING THE CLOSURE OF THE ORDERS. I EXPLAIN: I USE THIS RULES: FOR (I=0,Z=0;I<ORDERTOTAL();I++) ORDERSELECT(I,SELECT BY POS) IF(ORDERSYMBOL()==SYMBOL() && ORDERTYPE==OPBUY) Z++ ...... IF (Z=1 ) ORDERSELECT(TICKET,SELECT BY POS,MODE TRADES) IF( CONDITIONS)...
Hi guys, I'm looking for an indicator that give somewhat good trade signals on 5M period. Can you suggest some? Any advice will be much appreciated. Thanks, Mike
ERR_INVALID_FUNCTION_PARAMVALUE - 4051 - Invalid function parameter value. Could you please describe for me this case of error code?
Hello, i am writing a ima routine to study the original ima, but i get different value. My routine is based on standard ima calculation. Original iMA = 1.39742423 my ima = 1.39726915 and this give different value to my ea. Any idea on why this different value ? I use timeframe 1H Thank you !...
Hi all, Just an update to let you know im coding EA's and indicators again. Contact me at the usual email address for a quote (sleepless.damian@gmail.com). Regards Damian
does MT4 support pivot points ?
Hi, I can't seem to change any of the optimization values in strategy testers - any ideas why that might be? Cheers
Hi, could someone please tell me how I can pull the most recent value of the ADX indicator included with MT4 into an EA? I am guessing that I would need to set the value of the Y coordinate of an array to a variable. But I have no idea where to find the name of the array or what values to include...
As many others I fell on a very good optimization for an MA Cross EA But as you might guess the results are only good up to a certain point: Jan07-Mar10 Before that there seem to be another MA cycle starting I have good 1 min data going back to 2005 so I was able to find another excellent...
I have a Gann indicator that needs and email alert added to it and I have no Idea where or how to start. I have several other indicators that I use the email function on and I love it! I have looked around on other forums for a gann with email alerts but haven't had any luck. So if anyone can...
Hi, Does anyone know how to display the "US30" or "FRA40" CFD on a chart in MT4 ? Thanks.
Has anyone tried this download from FXCM'S Program dept.? I chose it for my first EA. After testing it on the Demo and doing the Strategie tester, I decided to run it on 2 of my accounts. The first week it had 4 of 4 winners. The only thing I changed was, I deactivated it during the less favorable...
hey, Any one know where i can find codes that enable me to show position by arrow when i buy/sell or close in the chart? Thank you
hi all, After days of testing i finally able to write a hedging EA strategy base on EUR/USD and USD/CHF. I manage to get very good result on my demo account using manual entry. I need someone that can help me code it into EA. pls email me the EA. thanks Regards Hans
Hi Has anyone manage to code an EA to that gets around this 0.1 lot (10 000 units of the base currency) with incremental lot of 0.01. 1 pip with 0.1 lot = approx. USD 0.1 It's part of the FX open ECN FXOpen - Trading Terms - Type of accounts sorry if the link is not allowed but that where the info...
When passing values for slippage into OrderClose do adjustments need to be made for brokers with different digits? So for a four digit broker I would pass '3' for example, but for a five digits this would be '30'?
I would like to recreate the object MT4 uses to present the open and close of an order on a chart. This object looks like a red, green or violet arrow on a white filled circle that serves as background. Checking the object list, the symbol appears to be a standard arrow object, but when creating the...
The attached EA was developed by Barrowboy but i tried to do some modifications to it since then the results have been better . But there is a little problem with it, its only places one order and i want it to be placing more than one order. I have tried all what i could do but it is not working....
From the description of the ''Chandelier' TSL exit strategy', I don't see any difference between it and a normal MT4/MQL4 'Trailing Stop Loss' If being calculated on the broker's server, which is the 'norm,' as opposed to being entirely calculated within the EA and modification or close trade orders...
Hello: I have developed an EA that do some trading on a single currency pair. I have done some testing during 2-3 months testing with MT4 test environment and now I'm working with real money (and real trading). I have some conclutions that I would like to share and see if someone have some...
I have recently created an EA that works great in the strategy tester but is behaving very oddly in the live demo. The program is coded to close all open orders if the Account Equity is greater than the Account Balance. In the strategy tester, this means that when it closes my open orders I always...
I am writing a fx program and want to use Heiken Ashi candles to indicate quiet or noise market (to check previous 50 candles red or green and if 5 are the same coloue=quiet, not=noise) but I don know how to do it Can anyone help me please???
Am testing a very simple program with init and start routines by duplicating the same Alert messages in both. Can get the init to run when I start the program but but for some reason the start does not run. What does it mean when the manual says "when new quotations are received, the start()...
Can anyone tell me if there's an rsi indicator that can send an email alert when certain level is reach? For example: I use rsi period 9 on 4 hr chart with levels 70/30 Can any programmer build one?
hello, i would like to create for one of my EA a function which it looking in the last 5 closes orders of my EA (same magicnumber and symbol) the net profit value and save them in a array. Then: if array[0] is positive X =1; if array[0] is negative and array[1] is positive X =0.9; if array[0] &...
Hi, I tried to add an alert to the attached indicator by copying and pasting from a similar indicator, but I must have missed something in the code, because neither the arrow nor alerts are generated. Can you look at the code and see what I did wrong? Thanks for your help,
I'll start with my best optimization so far with my all-time favorite EA: MA_cross_Method_PriceMode by Duke3D Results: Excellent My parameters are: JPY H1 with MA1_Period = 12, MA2_Period = 44, default for the rest Backtesting Results: I use high quality 1 min data from fxdd 90% modeling I use a...
Hi, I have developed and run two EAs. One catches WHIPSAWs and other catches TRENDs. Both are highly profitable in the short runs. But I've found both unprofitable in the long runs as the WHIPSAW one got done by the long trends and the TREND one lost heavily when the market just whipsaws for a long...