Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1097

To post a new topic, please log in or register
Hi, Could you tell me why this function only returns "WAIT" and "SELL" but NEVER any "BUY"? //+------------------------------------------------------------------+ string Trending_for(string Trending) { if (Close[3]<Open[1])Trending="BUY";else Trending="Wait"; if...
Hi, Im looking to do a JV with someone who can put my strategy into an EA. We have done live trading and it is a super hot strategy. We also have a great internet marketing guru in the team so last person missing is someone who can put our strartgety into an E.A, but the person has to be able to...
I am going to open 25 - 50 forex Demo accounts and run a different EA on each account.. I will then set up a ranking system for the portfolio based on the account performance the top 10 -20 performing accounts will be funded every month (100k +)...
So, yeah. I just recently started fooling around with this program. It's pretty interesting, but it seems that I'm too dense to script a proper Expert Advisor. What I'm trying to do is getting a really basic program to work that checks these conditions... - Current Price > MA - Macd > 0 - Momentum >...
Can anyone please tell me some of the most common reasons for the error and the fixes? The file is in ...experts\files.
Below is my buy function. If I set variable order_type to 1 (for market order), it works, so I know my stoploss and takeprofit functions as working. The problem must be in the determination of price for the op_buylimit order. I am trying to calculate my order price by decreasing Ask by a...
I received the following request from harvinder.sondh@btinternet.com: "Further to our conversation. I have a requirement such that I want an EA pilot to execute my trades using MetaTrader4. I have a self contained real time forex trading software that gives visual signals on the charts and...
//+------------------------------------------------------------------+//|                                                       MYNNEA.mq4 |//|                       Copyright ?2009, MetaQuotes Software Corp. |//|                                        http://www.metaquotes.net...
I've setup verbose logging on my EA for troubleshooting purposes. I'd like to track each iteration in the same file but when I do FileClose and reopen the file on the next iteration it clears the file. How do I write new lines in the same file, preferably text?
Anyone kindly explain how to use this indicator.
Hi Rosh, Could you please kindly provide the sample code or the EA how can create the data 'text file' and it can be read back by the EA. Your help will much appreciate. Thanks in advance. Shams shamsulng@yahoo.com
Hi, I know that it's possible to get indicators values from other symbols at any given time (shift) but I don't know how could I get simply the bar values from that other symbol with a shift ... Is it possible to get it ? Thanks in advance, Manu
Hi all, How many bars should I use to test and optimize my EA? Thanks
Now the demo server has been closed. And I can still download the 1 minutes history from the history center.But they are ".dat" file. How can I use them? 3x~
I'm using the following code to track the SMA50 line: double SMA50; SMA50=iMA(NULL,0,50,0,MODE_SMA,PRICE_CLOSE,0); Print(SMA50); How can I modify an order so that it remains 20 pips below the SMA50 line?
Is there a way to calculate the number of identical candlesticks(green=long,red=short)?
Set out to make a super simple indicator, shouldn't take more than 15 mins I thought...Not this time! Indicator: show spread history (as data comes in) as bars in a separate window. Problem: all indicator bars are cleared then changing TF. Looks like the custom (indicator)array that holds the...
hi, is there any possibility to control the orders from an actual running EA ? e.g. the EA generates a BUY order with specific attributes, and i want to design another EA which denies the order from this other system ... is that possible ? or e.g. that there is a controlling instance which...
SymbolEURUSD (Euro vs US Dollar)Period1 Minute (M1) 2000.12.07 00:01 - 2008.12.05 22:59 (2000.12.07 - 2008.12.06)ModelEvery tick (the most precise method based on all available least timeframes)Parametersdonchianlength=12;gap=0.0004; MAfast=1; MAslow=2; MAslowest=8; closedonchian=5;...
This question should only be answered by experienced trader using Fibonacci. Why does the market / price / the one who control the price according to Fibonacci?
I have set up the demo fapturbo and it seems to be trading.Can someone please give me some simple instructions on how to save the settings on MT4 so I don`t have to start from scratch if I go off line.Fapturbo`s support response was `READ the MANUAL` Not much help for a beginner I`m afraid. Thanks
Why won't this give me the value of Ask, every 60 seconds? double PeriodA; int time; int start() { PeriodA = (Ask); int t=1; while (t<60) { Sleep(999); t++; if (t==60) {Alert (PeriodA," ",t);} if (t==60) {t=1;} } return(0); }
Attached is a program I am working on. My first one. :-) I have comments in the prog about my problem. I also have a comment on the screen for bebugging. dRegBuffer is the indicator buffer. The problem is that dRegBuffer[0] and dRegBuffer[1] are always the same number. I am trying to get the new...
Is it possible to draw an arrow on the chart once an order has completed by either T/P or S/L?
Your FiboRetracement Indicator is fantastic to use. The system I am using I need78.6 and 127.2 levels. I have spent few days to fix this problem and I give up.If you could rewrite this indicator again with 78.6 and 127.2 levels that willbe great.Thanks
When i put the code the Ea dont Job.. i want put EquityLoss ans EquityTarget for protect my Balance. See the EA in atach.
Demo servers of my Broker down since Friday night 3rd April. They don't seem to give prior notice, or accurate resolution estimates. They also messed up the time-change for DST for the 2nd time in a row on their live servers, leaving them wrong for a week with all my EAs doing all scheduled trades...
Is there a way to check for the existence of an external indicator in MT4? I would like my indicator to make sure the external indicator is there so iCustom works properly.
Minute() outputs the current minute but it only does 1 digit for those under ten, so my time would look like this 1:9 and (of course) I'd like it to read 1:09. How do I do this for every minute under 10?
I'm using the following to calculate the Maximum Price within 5 bars: double Bar[10]; Bar[1]=Open[1]; Bar[2]=Open[2]; Bar[3]=Open[3]; Bar[4]=Open[4]; Bar[5]=Open[5]; Bar[6]=Close[1]; Bar[7]=Close[2]; Bar[8]=Close[3]; Bar[9]=Close[4]; Bar[10]=Close[5]; string test =...