Download MetaTrader 5

MQL4 and MetaTrader 4 - page 696

To post a new topic, please log in or register
Hello Guys, I am having problems using a dll function in mt4. I have this function in C that I tested in another C console application program. I exported like #include<windows.h>#define N 400extern "C" __declspec(dllexport) double myfunctiondll(double rates[N]){  return rates[0]+0.5*rates[20];} in...
  RSI mtf array (1)
Hi, My question is about sliding the buffer in custom indicator. E.g: #define MAX_LOOK_BACK 5int start(){int limit;   int counted_bars = IndicatorCounted();      //---- check for possible errors   if(counted_bars < 0)      return(-1);   //---- the last counted bar will be recounted   if(counted_bars...
I want this kind of indicator for MT4. Have you seen the indicators which display each sessions' charts only? eg. N.Y. session only, Tokyo session only, and London session only, etc. I am not talking about the indicator for the trading time, but the chart of each sessions. as following; Thanks in...
I am travelling soon and am considering buying a 10 inch netbook. It seems with this I can only get a maximum 2GB ram with a dual processor and 250GB hard drive. Will this adequately run MT4? I have an EA running. Will it run up to 3 MT4 platforms? I'd appreciate any help with this before I make a...
I am trying to edit a certain ea. When finished, I should compile it. But what come out is an error, access denied. Can somebody help me on this please. ceasar
Does any one have a code in visual C++ (2008) on how to appropiate compile a dll function and then how to import it in mt4. I have no problem making dll functions that I test in console applications; but I cannot import them into mt4? thnks in advance
hi, can anybody help me with my code? my code are just simple, i want to get the open price at 12.00, and then wait until the price move above or below the open price around 20pips. After that entry buy or sell depend on the situation, if goes up, then sell, if goes down, then buy. and the code only...
hi there....i need some help in EA......can someone give the code snippet to select all the open buy orders from a bunch of mixed open orders??.....thanks in advance!!
APeng
Hello, hello! If the timeframe chosen for a backtest is below M30, I get the error: 2011.09.05 13:35:51 TestGenerator: internal error because the file not opened. With timeframes bigger than M15 the EA is working. MT4 is connected to the server and is downloading historical data. Has someone an...
hi friends iam trading with simple strategy, 2 ma cross over, i need alerts in alltime frames where it cross over, put ma1: period 3, shift 0 ma2: period 5, shift 1 and need time GMT: +5.30 on it. plzz modify this 3 things. here is the attachment thanks to all #property indicator_chart_window...
I am able to get my EAs working on any pair 3,4,5 decimal places but it would appear that I thought I understood this but obviously i dont!!! as i play with each to get it correct on any provider or currency pair. Life is easier if you know what you are doing and it appears it can be done in one way...
Dear MT4 Users, I am a bit confused about these three variables. Taking DAX for example (#FDXU1): Point: 0.1 Tick Size: 0.5 Tick Value: 12.5 While I understand that tick size is the minimal movement up or down on the prize, and tick value is the real monetary value of a tick, I fail to understand...
I am currently in the process of studying MQL4, but I'll be honest with you - I suck at math! Could someone be so kind as to explain to me this block of code? //...string Symb=Symbol();double Prots=0.07; // Percent of free margin//...//---------------------------------------------------------------...
Is it possible to add in EA keyboard shortcuts, example when I hit keyboard "b" it will execute OrderSend function? Thank you
If you are looking for an experienced programmer to put your ideas into a working EA or indicator you can contact me and I will be happy to assist you for a fee. Successful trading to us all. Avi avi.levi99@gmail.com
Hi, Apologies if this is something glaringly obvious that I have overlooked, but it is starting to really frustrate me. I've developed an EA that will place buystops and sellstops when certain pivot criteria are met. I'm using for example OrderSend(Symbol(),OP_SELLSTOP,Lots,openPrice,slip,stopLoss...
is it possible to get strategy tester with eurusd at te same time as eurjpy?
Hi, I'm trying to make a spread indicator for Gold show appropriately but I have not been successful. The Gold price shows as for example 1545.50 (on IBFX) and the spread shows as 65. But its supposed to show as 6.5! if(Digits==5||Digits==3) {dblPoints=Point*10;} else {dblPoints=Point;}if(Digits==3)...
I would like to return the following variables : 1. The first bar open price of the last recorded Monday (Hour Bar). 2. The last bar close price of the last recorded Wednesday (Hour Bar). Anybody know how to do this ? Ive tried getting the variables as they pass with :...
All EA's tp and sl are stuck on stoploss 10 and takeprofit 60, no matter what I set in the EA or the properties I can changed the Expert properties via properties button and it's off by 10 pips every time ? Seems like this occured when I downloaded the data in history center, however that may not...
I want to use a 15min MA and a 30 MA and do back testing but it doesnt work, this is my code BigMA=iMA(NULL,PERIOD_M15, PerBig,0,0,0,0); BigMAShort=iMA(NULL,PERIOD_M30, PerBigShort,0,0,0,0); Short_MA9 =iMA(NULL,PERIOD_M30, Short_Per9,0, Short_MA_MODE, S_appliedTo, shift_s); MA9=iMA(NULL,PERIOD_M15,...
I'm just finishing my first ea based on a multi time frame strategy. It looks at the 4 hour trend, but uses the 15 minute chart to trigger the order. Obviously if the 4 hour trend reverses during the 1st 15 minutes, I'm using a bad trend to trigger orders because the system can't tell when the...
Hi, I set the email destination to one account, e.g. to my hotmail account. When a certain case happens, I want to send to another email account (which is pointed to an email-to-sms service, which will end up as an sms to me). How do I do this as there is only one email address input in the MT4?...
Blank to all, you place this Ea and relative indicator set from me (set for Scalping from exhaustion!) but I would want that some programmer inverted the orders that it opens because I have seen on TimeFrame above all low that if in the event it touches the green line instead opening SELL would have...
Hi coders, I am now learning about building arrays and using some of the built in functions for some of these So here is what I would like to find out. (Is High[] closed candle or current open candle)? I guess I'm asking this in anticipation of creating codes that might trade based on a series of...
  simple trade (2)
I already have in my code 2 attempts at modifying stop losses (running on EURUSDm chart as using multiple pairs) . Can anybody tell me why/how I got this error and how to avoid it in the future Code snippet: where JPYBE = 125 if (TradeBusy() < 0) { Print(Symbol(), " Trade is still busy");...
Ich suche einen Vollautomatischen EA, welcher folgende Kriterien beinhaltet: Immer zu einer Order auch die Gegenorder abzuschliessen. Take profit zu setzen aber Stop Loss offen zu lassen. Und vor allen Dingen nicht über das Guthaben hinaus und nicht über die Rücklagen hinaus Orders zu öffnen welche...
  Alarm (4)
It would be nice to be able to select alarm from the tool bar instead off open Terminal and then select alarm, and to show the alarm line on the chart which can slide around on the chart. This would make easier modification (just slide to a new position), and visually to see it in place. You could...
Hi I recall I need to change this so the EA will work on other time frames and other symbols along side of other EA's Ok so I know about the MagicNumber slightly and need to learn more about this before I can input this into my code for(pos = OrdersTotal()-1; pos >= 0 ; pos--) if...