Download MetaTrader 5

MQL4 and MetaTrader 4 - page 441

To post a new topic, please log in or register
Hi I'm playing with the IMA/MODE_SMA averages. on 1min charts. To get the rate of change(angle of the curve) I'm using deltas between current MA value and the one calculated at the last bar. However because the Bars are no exactly aligned with Ticks the results seem to be a bit erratic around Bar...
As the title, can anyone help me? I tried to code, but it not work. :(
Hi! Please explain how can i output several things in comment() function without having to write a mile long line. I mean how do i write it the following way: Comment("..",..); Comment("..",..); Comment("..",..); and not Comment("..",..".",..............................................................
I have written an EA that scans several currency pairs and when it finds a particular condition it mus alert me. Now I find that the EA gets seemingly in a loop on one currency pair (USDCHF) and does not operate correctly. Here is the message from the Journal: 22:35:16 2013.01.10 00:00 NonLagMA_v7...
Since this last version it has been impossible to compile file mq4 in exe4. expert advisors which were installed before are goint to work but it's impossible to add new expert advisors. So i can't add expert advisor in mq4 on my mt4.
First off, I have done some reading around with other peoples issues in regards to the reliability of ST. I thought I'd quickly put a new thread up to hopefully get some answers to my specific problems I am having, and understanding more about how I can avoid it? Firstly, I import my data from Forex...
I have a problem w/ a buy - sell condition ... It should give a additional buy signal if QQE is > MA and sell a signal if QQE < MA but only sell signal is working ... double MA1 = iMA(NULL, 0, 34, 0, 1, 0, Current + 0);   double qqe1 = iCustom(NULL, 0, "QQE", 5, 0, 0, 0, 0, 0, 0, 1);if(qqe1 > MA1)...
Hello, I have browsed the website and I see a lot of posts to explain how is it possible to send message when conditions of custom indicator (.mq4) are executed but my problem is a little bit more difficult : I can ' t modify the indicator because is crypted with format .exe I have found on option...
  Ma
M15 M30 MA indicator
Why, after all this time, are we still stuck with the same 3 chart types? How come there has not even been the addition of a "High Low Close" bar without the open? Also, why is there no satisfactory way of programming HLC bars? Thanks.
Hi i`m trying to build a trailing stop, and it's working fine but sometimes i get a nasty order modify error 1.I don't know if it's harmful i've read the documentation it is when the value is unchanged i guess,but the question is how to resolve it :D .Hew is my code: double TRAILSTOP;extern int...
Hi i'm a newbie here. i'd like to know how i can go back to a particular past time point (e.g. Jan 07 2009) quickly. it takes too long by dragging the chart manually .. thank you.
  Can you fix this code! (14   1 2)
Hi, I used following code/idea to apply 1 trade/day. last 20days it was worked. but since today not working. may be my logic will be wrong. I assign the int value 0 to nday and process orders if nday!=Day() once prcess done i change the value for nday=Day() is this ok. but not working now. {    if...
Hello everybody. i'm new in the world of forex. i get the renko indicator somewhere in this forum. i love to use it. i need somebody help to do some motification on the code so that the indicator can draw a line follow the box size in the indicator window, as in the screen shot i attached. The 3...
Hi I'm new in MQ4 and I want to know if I could use the EA for every time even when the internet is disconnected or PC is Off or not? if the answer is not then how could I able to use it for all the time without excising of a all-time PC?
When drew trend line by --> ObjectCreate("Trendline",OBJ_TREND,0,Time1,Price1,Time2,Price2) . How to read price at time 3 ? thank you
New article Simple Methods of Forecasting Directions of the Japanese Candlesticks has been published: Knowing the direction of the price movement is sufficient for getting positive results from trading operations. Some information on the possible direction of the price can be obtained from the...
Op = iOpen(NULL,1440,1);   Cl = iClose(NULL,1440,1);   Hg = iHigh(NULL,1440,1);   Lw = iLow(NULL,1440,1);   Bd = MathAbs(Op-Cl);   Ush = Cl>=Op&&Hg-Cl&&Hg-Op;   Lsh = Cl>=Op&&Op-Lw&&Cl-Lw;   Ma=iMA(NULL,1440,8,0,MODE_EMA,PRICE_CLOSE,1); Please is anything wrong in this? Op = open price; Cl = close...
  Few quick questions (29   1 2 3)
Hi i have a few quick questions : 1) If i want to apply the icustom to a specific timeframe in this case 5 min, should i put : 5 or PERIOD_M5 2) If i want to add an icustom indicator then if the if i want to use the default values of that indicator can i put in every slot: "default"...
ok, it's so weird! I'm building an intra-day trading forex strategy. It's calculating the difference between the day high and the day low rates and trades on if this difference it 60-80 pips. In order to check if we're between 60 to 80 pips, I use this code line: if (len>=0.0060 && len<=0.0080)....
Hi Is there any code(function) to put order right after the new candlestick opened? Also the function which returns opening and closing price of a candle?
  copy profiles (9)
How can J save a profile, so as to be it used in another platform MT4? Actually J can't see any chart in "Profiles" folder at program files.
Hi: Does anybody know if there is a way to remove an active EA/INDICATOR programmatically(using MQL4 code), rather than manually(going to the EA/INDICATOR properties and removing it)? Any responses will be appreciated
When I compile inside metatrader, metatrader reloads expert or indicator. If I do so by command line with metalang, is there a way to notify metatrader to reload expert or indicator the same way ?
I can't see any function for int ?
Can anyone help me what is the complete metric for Heiken Ashi color change? I feel i am wrong with following rules: If the haClose is above haOpen, then a bullish sign occurs (white candle). If haClose is below haOpen, then a bearish sign appears (black candle). I tried searching here and google....
Hello, I have been looking through signals for about a week and it seems like all of the live ones are using non-us brokers. It looks like any broker I can use as a US resident has high slippage. Is there something I can do to find signals that are on brokers in the USA or with lower slippage? Thank...
Hi, I am beginner in forex trading and I am using platform metatrader 4 for the first time. I need help with orders in demo account. I want invest 1.000 EUR with leverage 1:100. When I calculated balance will be 100.000 EUR, and Margin will be 1000 EUR. MetaTrader 4 doesn't calculate like this...
  Bid ERROR... (6)
Bid ERROR .... When I try to run my EA, the tester shows the "trade panel" and the actual Bid price, in real market...not the bid correspondihg to the EA time...it happpen with the Bid value when I try to use it in the EA.Is it ppossible to disable the panel?...How can I get the Bid value?....can...