MQL4 and MetaTrader 4 - page 1055

To post a new topic, please log in or register
Hi, as the subject states, i need help making my first custom indicator =(. i am trying to make an indicator (out of curiosity purposes) on simplistic probability using binomial distribution theory...here's the code: int start() { int i,counted_bars=IndicatorCounted(); //----...
if order took place, take profit=100pips & stop lost=100pips is written in the ea, i would like to write additonal time factor(control) to close order as below:- says the order is a buy order --------------------------------- 1) if in 1st hour, a sudden price up of 80 pips happen in 10 minutes...
Hi Everyone, I have a favor to ask, I have this indicator which can show 4 different time frames support and resistance line in the same window. I would like someone who had Knowledge and Skills and of course kind enough to give a helping hand to add an alert in the indicator. All I need is when all...
I am working on an EA that needs to look for a cross on one time period and then wait for a cross on another signal from a different time period. I need to reference a cross on the MACD on one time period and the Stochastic cross on a shorter period. Can someone please advise the best approach to...
Hi, I'm looking for an indicator which tells when we are in range/trend like ADX or Ravi, i think these two are too slown... Any advise ? Thanks Victor
When I put the following, "=MT4|HIGH!USDCHF" into an excel cell the USDCHF Daily High is exported successfully to excel. Is it possible to do this for other time periods (H1,H4,D1,W1,M) without having to export from Tools, History Center for each currency pair and time period individually?
Hi all,BEST EA profitableness before crisis, and during crisis In the country crisis has taken away 2 banks from me. I have a program for a floor of year on real has given profit 2900%I is ready to share now it, for the moderate payment. Through finanse to a crisis I have lost many money in bank...
The Wild Card NZD/USD 26 Aug 2009 Wednesday, 26 Aug 2009 Crude Oil Plummets on Profit Taking Later afternoon trading saw the price of Crude Oil take a nose dive as traders took profit. The price of Oilstalled at the $75 resistance level and fell significantly followingthe failed breach. Today...
I use iMa function in my code, but I campare with indicator shipped with mt4, the value iMa computed is not right. the code I use iMa is below: while(i>=0) // Loop for uncounted bars { Buf_0[i]=iMA(NULL,0,MA_Period,0,MODE_SMA,PRICE_CLOSE,i ); // Value of 0 buffer on i bar i--; // Calculating index...
In my EA, I buy at the ASk, sell at the bid. On all SELL orders, I set a target profit and a stop loss both with 3 pips added due to the spread. However, when I run this in the strategy tester, BUY trades show profits of 400, losses of 400, yet SELL trades show profits of 430, losses of 430. With...
Hi guys, I want my pending order to expire after 240 minutes...I am pretty sure it should be in seconds so I did it like this : ticket=OrderSend(Symbol(),OP_BUYSTOP,Lots,buystopfinal,3,0,0,comment,Magic,14400,Green); Problem is I get an error that reads : 2009.05.27 20:00 My_EAv02...
Interbank FX has happy face, MetaTrade 4 has sad face. Does anyone know what is the problem?
  ICCI values (1)
Hi Both the icci values are equal 100. Why is the comment displayed if 100 = 100 ? if (iCCI(NULL,10080,3,6,0) > iCCI(NULL,10080,3,6,1)); Comment("The two values are different");return(0);
I can use the following function to do so if the symbol is like USD/xxx. double dblVolumn = AccountFreeMargin()*0.05*AccountLeverage()/100000; But the function doesn't work for symbols like xxx/USD or xxx/yyy. Apparently I should convert it using their corresponding current price. It's still easy...
Hi all, I am coding an indicator and I have added 21 additional buffers for counting (most of them are iCustom and iMA). So is there a problem when the number of buffers is this high ? I narrowed down the number to (2+the drawing one) just for test and it worked. PS : I have included the following...
Hi Friends, I am a novice in mql4 programming. In my EA there are times when the trade gets closed due to it hitting the stop loss. Now, if the trade is closing normally, i.e. using my EA, then i am actually setting a flag to indicate whether the EA should go for another trade or not...
I need someone to write a single-line indicator, based on Linear Regression that reads out in angular degrees, i.e. flat market=0 degrees, down market -45 degrees, up market +45 degrees, etc. Email docneaves@yahoo.com if interested. Thank you very much.
I am newbie in forex. I am looking for an excel format in money & risk managment for the forex trading. It should be able to tell me about the lot size to enter the market with the capital that i have, says risk at 5% Thanks
Hello. I am using a couple different indicators that put various text on the charts (sell/buy entry text, price targets, etc). Right now, I'm using 2 indicators and they both place text on the upper left - however, when both are on, I can't read one of the indicator's text because it is hidden...
  Smiley face (2)
Iam learning to build my ea and i tried it out it did not have asmiling instead the face is sad does any one know why
I have set up Expert Advisor and ran it about 5 hours and it has not made a buy or sell on anything I thought it should be automatic so it can do trading on it's own without me always having to do it myself also I am a beginner so I need this to be automatic for now Thanks for any reply's
hello traders. I have a problem to place a stop loss on ordermodify().......i first opened order with ordersend()......... OrderSend(Symbol(),OP_SELL,Lots,Bid,10,0,0,NULL,1,0,Red);..........without stop loss now i have to find this order by its stop loss value .........if ( OrderStopLoss()<=?????...
I need to get the following code to also look at 0.25, 0.5, and 0.75 (ie 2 decimal places) in the range but not sure how to check that as well as checking the 1 st decimal place only. For example, it should alert me at all main 1.x numbers (1.1, 1.2, 1.3, etc.) but also 1.25, 1.5, 1.75, 0.75, 0.5, 0...
Hi Last night I was able to successfully run the system optimizer for the first time and managed to run about 6 separate trials, stepping through my data with a step value of 1. When the tests completed, I saw the test results (5 per run, done 6 times), along with the respective graphs... TODAY -...
Dear Moderator/Admin Please specify the procedure to include new scips/indeices in MT4.. I want to include banknifty index of NSE/INDIA in the scripe list. Please help me in doing that Regards, www.indexgainer.com
Dear all, As stated in the subject, since my EA constantly checks the price for each order to see if the order should be closed, the take profit and stop loss parameters seem unnecessary, but when I use the function SendOrder, I have to specify the take profit and stop loss. I tried to use 0 for...
The Wild Card Crude Oil 25 Aug 2009 Tuesday, 25 Aug 2009 U.S Consumer Confidence will determine Today's Trend The Wild Card Crude Oil Crude Oilprices rose significantly in the last month and peaked at $74.10 perbarrel. However, there is a bearish cross on the daily chart's SlowStochastic...
Hello freinds, If I want to use data of USD Index within an expert in MT4, How shell I do it? Thanks for your help.
I am getting an error on Vista 64 bit when using a DLL in metatrader. the DLL was writte for me and has been work fineon 32 bit Vista and XP. does any one know of wht I am getting "Cannot Load Library (Dllname)" error when using the #imports directive? I do no know C++, I only hav this DLL and I...
Hello, I sometimes think if you have a profitabel Strategie but not enough money to trade it what can you make then, did there are be any websites where you can find Tradeing Partners or investors?