Download MetaTrader 5

MQL4 and MetaTrader 4 - page 225

To post a new topic, please log in or register
  ObjectSet... (2)
Hi all, I am a newbie trying to build my EA working around with Labels and Text messages to create a dashboard. It takes a lot of lines to create a text with a rectangle background. I was wondering if there is a function for positioning the Label, similar to ObjectSetText where you can input the...
HI friends,                 I would like to find High Low and open for a 9 hours period like 6:00 to 15:00 . How can I do it?   Thanks in Advance 
Hi All, I have a Trailing Stop function which trail negative instead of positive, i don't think it is trailing right, what am i doing wrong? Thanks... ld_76 = stoplevel * 1.0 * Point + Spread * 0.0 * Point + Trailing * Point;//MarketInfo(Symbol(),MODE_STOPLEVEL) * 1.0 * Point + Ask-Bid * 0.0 * Point...
Hi coders, here is a little test script I made. My problem is that I would like to switch timeframes and do something when the timeframe has changed. But the problem is that ChartSetSymbolPeriod() is not executed immediately and so everything after that will be executed on the timeframe before. Does...
Hi All, Any One can help to modify this MACDBars indi, I need it for iStochastic, I'm newbie to MQL and i try but without any successfully. //---- indicator settings#property  indicator_separate_window#property  indicator_buffers...
Hi all,    I wonder could you help me with a question.  I'm trying to backtest a very simple EA, that buys if one indicator is greater than my other indicator.  In order to fully comprehend what the back-tester is doing, I want to control my data input, i.e. my price signal.   In the history...
  Trend setting (2)
Hi, does anybody got some idea how to fix the trend in custom indicator ?? For example, If indicator made six lines above value 100, say there is Uptrend.  Then I need program, to do not get back to upper functuion "if"  unless Uptrend is cancelled by some event in the indicator.. thank you for all...
Dear brothers and traders in this code it gives the result following.. and i would like to add some "xxx" in that last value after i got StringLen modified. string close_val = DoubleToStr(iClose(cysymbol,cur_tf,i),idigits);  // 1.45678close_val = StringSubstring(close_val, 0, StringLen(lose_val) -...
  你好 (2)
你好 希望和有志之士共同切磋自动化影子交易
I write a EA program, put it in strategy test and find no result come out. No deal has been done at all. I can'd find where the problem is.Could someone do me a favor? Thanks a lot.
Hi, I need someone to write a programme which automates a trading strategy I have been given. The strategy trades one particular index using signals generated by the stochastic oscillator and the RSI. Let me know if you are interested,   Thanks,   Colin O'Sullivan   
Hi,   I have this if statement: if ( (condition 1) && (condition 2)  && (condition 3) (up to 20 conditions)  )  EnterTrade(OP_BUY)   Conditions run from checking a candle direction, volume etc etc.    This works fine, but I would like to get it a little less picky and enter the trade also if only...
Hi Im not sure if it's possible to accomplish this, so i am asking you so i know what to ask for when posting a job in freelance. I want a function in my EA that calculates position drawdown and prints it in log when it exits the position. (It must work when backtesting)
Hi everyone, I have been trying to learn MQL coding for the last few months, but the more I learn by myself and with no one to assist me and guiding me, I have reached no where. I wish to create a simple EA, Moving average EA where a SMA period 10 crosses over/under a SMA period 50. It should open...
I am waiting for an supplier of voodoo puppets highly specialized to act on signal providers, EA or Indicator sellers, and brokers with a detailed HowTo.chm ;) It seems that this forum has become the right place for things like that!
my dll is made by delphi , and i imported it in mql4, but it not works.  
Hi, I'm trying to generate alert by EA at a specific time in MT4 . What data type I should use before Alert_time to correctly execute the code. extern double Alert_Time = 21.45;input string MSG = "Hi, type you msg here";bool   T =...
Hi there, I have the EL codes below that I would like to convert to MQL4. What is the best way of implementing the limit? Do I create an Order Limit in MT4 and then delete it afterward if the price does not hit?    SELLSHORT ("Sell Entry") 1 CONTRACT NEXT BAR VarSelect_A-0.5 LIMIT ;BUY ("Buy Entry")...
Currently i use the following code to check freemargin before send the order if(AccountFreeMarginCheck(Symbol(),OP_BUY,Lots)<=0 return;   But some brokers has StopoutLevel, so how to validate for the situaltion? tried following code. but not validating. if (((AccountStopoutMode() == 1)&&...
I would like to close my order partially 50% of lot size when it is in +20 pips. so when order is >20 pips i tried following code: int orderstotal = OrdersTotal();int orders = 0;int ordticket[30][2];double lots = 0;for (int i = 0; i < orderstotal; i++){OrderSelect(i, SELECT_BY_POS, MODE_TRADES);if...
I have script to change chart window title calling winapi sendmessage (WM_SETTEXT command):   If I select other chart, my custom title is changing to previous name. How to set window chart title to be valid even if window lost focus?  
Hello i take this many error like 2015.10.22 11:54:38.295 2015.10.20 23:59 USDTRYdemosistem USDTRYm,H1: OrderSend error 130    error when i tried to run ea for backtest.I didnt get any compile error code looks fine .At here my goal  sending a pending order with fibonacci level price.Probably i...
Hello I can not login to my account in real mt4 in oanda when I get my ID and password nothing happens bottom right red light with the rest written "standard error" I am under Windows 10 sorry for my English, I went through a translator I enclosed a copy Desktop Thank you
Hi,   i am trying to get an indicator to plot arrows on the chart  when : 1. I get an engulfing bar  2. But only plot the arrow if the engulfing bar is in the same direction of the previous day bar (only plot up arrows if the previous day closed bullish, and only plot down arrows if the previous...
Hi, apollogies for this question, but I can't seem to get it done right on MT4.  I have an array status[20] defined below input parameters using the following. string status[20]; Now I'm trying to assing the word "pending" to each of them using a for i loop in   int init () { for(int i=0; i<20;...
Dear sir,                     I want to know the White label process. 1. can I get white label directly from Metaquotes or I need to go for white Label to any broker company If yes then can I get price or liquidity from any broker. Regards Rajdeep
Hi, I am currently backtesting a strategy and the problems are 1) orders are being placed at every tick 2) orders are only in one direction and usually at the beginning of the test even if the conditions are satisfied later on  I am attaching the code for the EA along with the backtest report. I...
if (((AccountStopoutMode() == 1)&& (AccountFreeMarginCheck(Symbol(), OP_BUY, Lots) > AccountStopoutLevel()))|| ((AccountStopoutMode() == 0)&& (((AccountFreeMarginCheck(Symbol(), OP_BUY, Lots)/AccountEquity()) * 100) > AccountStopoutLevel()))) What could be the issue? i would like to perform...
Hello forum, So far I have this, below, but it counts ALL trades in history. How do I break the cycle so only the LAST CONSECUTIVE trades of same sign are counted - I have some (complicated) ideas but I feel there might be a a quick way?  Many thanks in advance, Dan. int GainCount = 0; int LossCount...