MQL4 and MetaTrader 4 - page 832

To post a new topic, please log in or register
New article Expert Advisor based on the "New Trading Dimensions" by Bill Williams" is published at mql5.com: In this article I will discuss the development of Expert Advisor, based on the book "New Trading Dimensions: How to Profit from Chaos in Stocks, Bonds, and Commodities" by Bill Williams. The...
hi, just a quick question. Does anyone have an indicator or some piece of code which allows/(shows how) to plot only a couple of bars on the right side of the main window. Thanks a lot. MJ
All, I have written dlls in the past for metatrader and have seen them work. This timearound I'm lost as to the problem. With my new dll compiled I put it into the the ...\libraries folder. Its name ismtdb15.dll. When my EA attempts to use a function in this DLL this error is reportedback: "cannot...
How do I compare an order's open price to the next bar and the next? open or close or top or bottom? no matter what the time intervals.... 1min 5min 15min etc... Is there a "check price on bar open" function? When I compare now it compares to the current bar.. I want to compare it to the next...
Can anyone please help to get an alert when there is crossover in moving averages? plz email me if possible at balanisuresh@yahoo.co.in
Hello freinds, I want to use the "comment" for presenting number on the screen. I use NormalizeDouble(x,2) for the x (a double variable) will be presented with 2 places after the dot (at the right side). I want to control the the presenting of the numbers befor the the dot (at the left side). How...
HerrHimmler
loss = (SLpips / (MarketInfo(Symbol(),MODE_TICKSIZE)*MathPow(10,Digits)))*MarketInfo(Symbol(),MODE_TICKVALUE);   risk = AccountEquity() * RiskPercentage/100;   lots = NormalizeDouble(risk/loss,xx); SLpips is the sl in pips. RiskPercentage can be equal to 2 for example. xx can either be 1 or 2...
Hi Im not new to programming but new to mql4 which is allot different then the languages im used to. I am making this EA it works but i need to add a trailing stop to it. I have tried many cut and past trailing stops none work. they ether do not trail or only trail the buys what am i doing wrong?...
Why did you choose HTML as the file type to save the account history as? HTML is used by browsers and web design software. Do you really think people want to publish their account history on the web, or modify it in Dreamweaver? Did you really choose HTML over Excel or CSV? What was going through...
I have created a trading system that is used on relatively short time frames (1M, 5M) for scalping. The problem I have having is the buy and sell indicators are based on current OHLC data. As the currency crosses the buy/sell indicators for trading, it might fluctuate before it finally breaks out....
Hello, If you are a Expert Advisor programmer, send me an e-mail message to my e-mail address job@mycurriculum.com.br or write you e-mail address in this post Regards, Nagib
int init()  {//----   //----   return(0);  }//+------------------------------------------------------------------+//| expert deinitialization function                                 |//+------------------------------------------------------------------+int deinit()  {//----   //----...
Hello, I'm using 7bit's offline_charts.mqh from the codebase to create an offline chart for demonstration of Random Walk. I wrote a simple script which I drag on an open chart and it writes random history data which can be opened with MT and I can use period_converter on it too to create H1, H4, etc...
hi all here, Well this is my first post here,and i think all here are pro coders in mq4.... my request is, as i have 2 ema cross over indi which plot arrow under or above the candle when 2 ema cross at this candle up or down... could this candle "which made the cross" be colored instead of...
Hi Dear The function OrderProfit() returns the net profit of a selected trade, but the problem is that the profit is given in 3 options (As points, as deposit currency, term currency). I think the value returned is the profit in deposit currency -i don't know what is term currency-, is there any...
Hi, my Expert Advisor freezes the strategy tester. I already noticed that the strategy tester does not like "Sleep()" so I changed that to: sleepUntil=TimeCurrent()+1; while(sleepUntil>TimeCurrent()) { //Do nothing } to sleep for 1 second. It works fine live but the strategy tester...
I already added that pair in the History Center, yet I can't figure out how to add it to the Symbol list in the Strategy Tester so I can select it. I really appreciate your feedback. Thanks.
Anyone know how to get account details such as open trades, free margin, etc. without having to attach or open or double click some file? Is there a way to execute a script on startup? Basically I need to have access to these details upon startup of the MT4 platform. The only way I can see to do...
I have one EA placing trades and another closing the trade. They just dont seem to work properly. is there any way around this, that I can have them work properly ?
Hi Everyone Please someone try to help me!! before anyone advises me, I know i can just start a new demo account but its not that, its the 2 months work i put into this particular strategy, i thought i had the password stored but obviously not, luckily all live accounts and others are fine its just...
HI if i have more than one order in a moment and i modify one of them how can i find new ticket of that order instantly? i don't know any think a bout magic number for each order,can i use it for my purpose? thanks
Before everyone starts jumping on me, I know that I posted this before. But since then I completely lost all of my windows installation and everything else along with it including my Book Marks. I have not been able to find this listing again nor some of the Private messages that I got in regards...
//+------------------------------------------------------------------+//|                                               HedgeHog_10_v1.mq4 |//|                                                 Matthew Williams...
I have an EA that places a buy and a sell stop order at the start of the test. It does this successfully - I can see them in the Results and on the Chart and there are no errors in the Journal. But when the relevant prices are hit, nothing happens. No buy or sell takes place. Does anyone have any...
Hi I experience something that I think is strange. In my Journal of my MT4 my EA has tried to place an order like 10:41:00 and got confirmation like 3 seconds later 10:41:03, this i find "normal". But in my trade log the trade time is shown as 10:40:00. YES a minute earlier. I have checked this...
All, anyone ever experience connecting to an Oracle database from MQL4 or MQL5? The basic operations I'd like to be able to do is simple operations: -insert into a table -read from a table (SELECT) -and possibly also call PL/SQL functions on the database. Any help is appreciated. Neil Airdon
Can anyone help e please???? FAP has customer service from H E L L !!!! My download won't work. Here is what I sent to FAP, and I', sure they will come back with some computer genated response. I have tried to do this t least 10 times, everytime with the exact same result. I download metatrader...
I try to make my own EA. I want it to run on every tick. Hov do I set that parameter ? Tio Oso
Hi, unfortunately I have a acer notebook with vista ( I hope MS is heavily hit by this crisis!!) on which mt4 is running. Now I wanted to save MT4 with my files (in order to update to mt4 220) but I cant't find MY files by vista? Neither me nor me as root can see my EAs in the expert folder - all...
Please help me with this script... every things I do MT4 give me alert taht EA initiated with invalid inputs. In raports i have such communications: ordersend error 131 or error opening SELL order: invalid trade volume please help me