MQL4 and MetaTrader 4 - page 1169

Hi all could someone help me with the formula for Bollinger bands? This is what I have got: int BandsPeriod = 20;BollingerMA = iMA(NULL,0,BandsPeriod,BandsShift,MODE_SMA,PRICE_CLOSE,1);Deviation=MathSqrt(Close[1] - BollingerMA);Deviation = Deviation/20;UpperBand = BollingerMA + (Deviation *...
[Deleted]
where to get EA for indicators with up/down arrows ?? entry when arrows appears exit when opposite arrows appears
[Deleted]
Ok I know this is a complete newbie question! I trade with IBFX on the MT4 platform. I have noticed that a currency pair like EUR/USD has 6 decimals 0.00000 but when people talk about PIPs gained they only use 5 decimals 0.0000. And the same is for a currency pair like USD/JPY that has 5 decimals...
[Deleted]
NEED A INDICATOR TO SOUND ALERT WHEN MACD ON A 15 MIN CHART SOUNDS WHEN PASSES ZERO AND WHEN IT HAPPENS TO CROSSOVER
I have read that the new version of MT4 Mobile will be for Android but apparently it is not available yet. Already it appears that Windows mobile is rapidly becoming obsolete. Anyone who buys a new mobile lately is likely to not be able to use MetaTrader Mobile because it is not available for...
the following code is working in some brokers but will fail in others. In some brokers the function will return 0 instead of returning the value of the top order. double Open.Sell.End()   {    double OOP=0;//OOP=Order open price    if (OTMS(Magicsell)>0)//OTMS= Function is return Order total with...
[Deleted]
hello, I am new to this forum, but I can see here a lot of experts. Maybe one of you have the right answers for my problem. I want to create a very simple strategy, but I need that the trades to be entered automatically or smth like that. The simplicity of the strategy is as follows : let's say I...
[Deleted]
Looking for someone to make already exisitng indicator macd with histogram to sound alert when it goes above or below zero and also when there is a crossover. Please reply with usd prices.
how to use this indicators??? Help me in finding this 1
[Deleted]
Can anyone write a simple EA that generates BUYS or SELLS when the Stochastics crosses a manually drawn trendline (see picture below). I haven’t been able to find anything like this on the web, so I hope it’s not an impossible ask. In this case, I want the EA to send a buy when the Stochs crosses...
[Deleted]
  stop modify  (1)
My EA send the signal to the live account to modify the stop of order.In the log file, it showed the modification is confirmed. But at the same second the stop-losses already been triggered. I think if stop-losses is executed, the modification of orders should be rejected. Is it a coincidence? If...
Hi all I am a newcomer to MQL although I have been coding for 10+ years. My question might have already been asked and for that I apologize but I can't appear to find it in a search. The problem is as follows: I want upon close of a candle (say 1HR) to enter a pending BUYLIMIT order. However, 50% of...
Hello! SMTP server: smpt.gmail.com SMTP login: myname@gmail.com SMTP password:************ From: myname@gmail.com To: othermail@something.com Gmail and MT4 works on laptop (Win7) but not on other computer (Win XP). Both computer have same internet connection. There is no wireles connection only UTP...
[Deleted]
For some reason I can only get the Strategy testing for a purchased EA to work on only one of 3 computers. Even more puzzling to me is, the one that it works on is the oldest.They are all Windows XP operated. I can trade my live acct. on any of the 3. When I run the Strategy tester on 2 of them I...
I have clicked a 30 pip trailing stop that is actually 3 real pips and it worked but when my trade was 20 real pips in profit I clicked the 130 pips and it never came in even though the trade remained 20 pips or more in profit. If the 30 pips is 3 pips one would assume the 130 pips is 13 real pips...
After copying an ex4 file to the experts folder, is there any way of "refreshing" or similar to get the file to appear under Navigator / Expert Advisors without having to restart the terminal?
  Another new guy  (3)
Hey guys, I'm Rob. You might know me from other sites like Hot Stock Market, Forex Factory, and Informed Trades. I've been lurking here for a little bit and decided to go ahead and introduce myself. I've recently become interested in learning to create my own indicators in MT4. I've been trading for...
Hi guys, I need your coding help. I want to open a hedge by open 4 postions at same time: MagicNumber_1: buy EURUSD and sell USDCHF ß (Hedgepair 1) and at the same time MagicNumber_2: sell EURUSD and buy USDCHF ß (Hedgepair 2) Now I want to close each Hedgepair when the profit of a Hedgepair reaches
Hello! Does anyone have tutorial/settings/properties how to get hMailServer to work with MT4? Is there any other/better solution? I had gawab and it worked great but it not anymore. :( Thanks!
Hello, I want to ask how to initialize global variables after an Order was executed by the System via Stopp Loss like Tester: stop loss #1 at What kind of check is necessary like using OrderMagicNumber or using OrderTotal Method? Thanks for a code snippet. Hoschie
Hi, I have been trying to run the below script to open an order for e.g. EURUSD. When the active window in Terminal is EURUSD then the order is open but if I click on a window of any other symbol, the error 129 appears. I need to open two orders for pair trading and don't know why I can't do that....
[Deleted]
I used Stockastic for normal trading days.. but missed opportunity of today bull run on the US/CAD, any ideas ?? combination of two indicators ??
Hi, my indicator displayes info in the subwindow of my chart. However if there certain other standard indicators on the chart at the same time, the data on mine becomes displayed on the other indicator. Or in some cases not displayed at all.. Any ideas.. Thanks.
[Deleted]
I am looking for help to find the code to set a TP just after the buy or the sell order. In fact, because of the broker I can't open the order with the TP or stop loss. However, I managed to that for the SL with the trailing and the modify order but doens't work with the TP Please Help me!! Thanks
Hi, first of all I have a generally questions about MTF-indicators: When I put a MFT-Stochastic on my M1 Chart with the calculated timeframe of H1=60, then I see a constant stochastic - Value each hour from x:45...(x+1):45 (e.g. from 1:45-2:45 a.m.) 1.Why is the change of the value at e.g. 2:45 and...
[Deleted]
I want to break up a single other and sell small percentages of it as the price lowers... so for example i buy 1 lot EURUSD at 1.200 with a take profit of 100 ... and then every time it drops 10 pips I sell 10% of the total lot size.. Is there a way to do that? To word it another way .. I want to...
[Deleted]
Hi, is it possible for an EA to open a subwindow and start indicator there? I mean something like strategy tester does. My EA uses iCustom() and i would like it to open a new subwindow and run indicator there. Is there any sollution of this problem? Looking for advices, gr0nek
[Deleted]
Ok I need help here, I have several Ea`s and I can`t get them to work on MT4 Oanda Platform. I have used the same EA`s with other brokers and it worked fine no change of code. Just loaded them and ran them. But no trades at all.. I contated Oanda and they said they can`t help me with this issue. How...
  Order entry  (1)
Is there any way two market order (sell / buy) the same time to give to a base value ofthe market? Thanks
[Deleted]
We all know that HP2-B65 exam is a hot HP certification,its full name is HP Imaging and Printing Sales Fundamentals exam,if you are in the HP area,and want to have a level in the field,you need to get this certification to prove yourself,if you have no time to prepare for your test or have trouble...