MQL4 and MetaTrader 4 - page 108

To post a new topic, please log in or register
Hi programmers Need some advice for my ea development in mql4 :) What i need is an entrytrigger from a cross of two indicators in the same indicatorwindow. In my case im trying to figure out, how i can get values from two indicators to check a cross of CCI eg. upwards over the zero line of OsMA. The...
I want to have an object appear in a fixed position on the chart. It will be part of a meter indicator on the chart but right now I'm stuck just trying to get the object to appear on the chart at a fixed position. I can do this with a label but apparently it won't work with an arrow. I've read...
How can I to a datetime comparison? In my code, I use one datetime variable, lets say: datetime forbiddenDate; And some time during my strategy I give to this variable a value forbiddenDate = Time[0]; Then I want to check date to see is it good time to open if(forbiddenDate != Time[0]){//open} But...
original code: why the result is different?It should be the same! for (i=bars;i>=0;i--)   {      ma     = iMA("NZDUSD",0,periodMA,0,0,PRICE_MEDIAN,i);//replace with iMAONArreyfor (i=bars;i>=0;i--)   {   double haHigh = iHigh("NZDUSD",0,i);   double haLow  = iLow("NZDUSD",0,i);   double haClose=...
Hello everyone, I am wanting to make an indicator or EA (without success) that check the profit and if you reach the profit you want it to close all the orders, I have a script that close manually and I want to automate it...
Can multiple terminals use SendNotification to send notifications all to a single instance of MT4 mobile running on an iphone or android phone? Let's say we have Terminal A from Broker 1, Terminal B from Broker 1, Terminal C from Broker 2...  can it be set up so they all send notifications to the...
Hi, i hope here is someone who wants to help me please. I want to read from a MySQL Database, and dont know how to do this. I already have my code ready to establish a connection to the database and too write into the database. But how can i READ from the database? I found this: https://forum.mql4...
Previous to MT4 Build 600 the establishment of the hierarchical order of lines and labels on a chart, drawn by different indicators and regardless of the order of the indicators as listed in the chart list of indicators, was a splendidly simple and exacting task. All it took was the addition of an...
Hello I need a help how to lock my EA/Script based on my login account number ? example: my login number in my broker is 12345 , and I want my EA/Script can run only inthat login number. also how to lock the EA/Script that can run in one broker only ? (example: my EA/Script can run only in...
  EA limit code (18   1 2)
help me i need to limt my Ea to work under certain accounts that i choose. like i want to give it to my clients but they can only use it under one acc can you please help me with the code for that. also i want the EA to work for a period of time then expire .like a month or year i would really...
Hello. Still trying to work with MT4 indies, and there is a recurring problem I am noticing on all of my scripts, and I'm sure the fix is obvious and simple. My desire is to create a script that will ONLY work on the most completed bars... I.e., essentially ignore that current bar where the current...
Hye there. I apologize if this has been asked before. I am a beginner in creating EA and would appreciate it if someone can point it out to any youtube channel or websites that teach me how to write a script in meta editor for free. I would like to create an ea with 3 indicators in indicator chart,...
I've been using two scripts (one for placing buy orders and an equivalent one to sell orders), and every time this script places an order, it plots an arrow and those little lines above indicating the TP and SL levels. Is there a way to prevent these from being plotted? As I need to open and cancel...
10265293
Hi All, how to get profit in pips? OrderProfit() just for amount deposit, how do we get the profit in Pips? i tried to use MathRound(OrderProfit()-OrderSwap())/(OrderLots()*MarketInfo(OrderSymbol(),MODE_TICKVALUE)), but not so accurate!!!!! PLease help, thanks.
hello guys i am trying to understand the time function for a while now but still having some complications  actually i am working on an indicator that show a line 10 pips above and below the candle open price  it will show the line when the price open is below or above the exponential moving average...
//+------------------------------------------------------------------+ //| Patrick's Expert Template.mq4 | //| Copyright © 2006, InterbankFX llc | //| http://www.interbankfx.com |...
How do Read Alerts information ?
Hello, I've bought many EAs and I would like to install them using the function "install on the terminal". I am logged in with my mql5.com account credentials in MT4 and I am able to see my mql5.com balance in MT4. I cannot download any EA because there is no EA appearing in MT4 after I clicked...
Hello, I'm using Oanda for forex, but found that their own web platform forces me to write out every individual order for placement. Just downloaded MT4 because I think it can help me with the following: Basically, I trade by dropping hundreds of orders at a time across the 8 major pairs on the 1 HR...
I have several indicators that display in the top left corner of the chart, just where the order dropdown lies. There is no code for me to edit and no input for chart position or window. Is there a way to control where the data displays?
Hi I'm new to C++ MT4 style.  Can someone please help me to understand how to prevent my custom indicator objects being duplicated when I open the MT4 application?  The duplicated objects dissappear once I click into another timeframe (H1) and click back to the orginal timeframe (M30).  I have tried...
  Check Code (6)
i just wanted to check this example : //input in EA, takeprofit =30; stoploss =0;  //void akeprofitmodify(); if(Ask< TakeProfit) OrderModify(OrderTicket(),Ask,0,Ask+30*Point,0,0); Is this correct? Thank you.
  ICHIMOKU STRATEGY (39   1 2 3 4)
I've been trying to create an expert advisor which will automatically buy 1 unit when the tenkan-sen>kijun-sen (when the tenkan-sen line is above the kijun-sen line) and then sell it once the tenkan-sen is lower than the kijun-sen. I'm a complete newbie and started it yesterday by trying to piece...
I need a function to calculate the next timeframe up from the current chart. So if I'm trading on a 30 tf I'd want it to return 60. Thanks.
Hi, I know there is a (limited functionality) MT4 for Android available, aimed at mainly smartphones. Is there a way that an Android tablet can run Metaeditor4 without having to resort to Wine or other forms of virtual wrapper? Does the Android MT4 client come with Metaeditor? It would be nice to be...
Hello, I would just like to confirm that my logic is sound because I have a bug where 2 orders are created when only 1 should be. in a loop, I check open orders (MODE_TRADES) that the order doesn't exist, then I use OrderSend to create a market order. OrderSend doesn't return until the order is...
Hello Traders, I am looking for a EA that works as follow: I place a buy stop and a sell stop 40 pips away from the market price . But as i drag the buy stop or sell stop closer to the market price lets say 10pips the opposite order should immediately follow without delay to the same distance from...
I tested Notification with the Test button in the Notification tab and it works. Then I have a simple script that sends a notification. void OnStart()  {//---   SendNotification("Test SIGNAL!"+Symbol());  } When I run it, I receive the notification on the phone, but MT4 hangs and I have to kill it....
Hi, I am trying to run a batch file from EA, but it's not working. The full text is inserted below. Can anybody help? Appreciate a direct ans i/o link to another forum   #include <stdlib.mqh> #include <WinUser32.mqh> #import "shell32.dll" int ShellExecuteW(int hwnd,const string Operation,const...
Hi everyone. Noticed today that my MT4 platform syncs all my drawings to all symbols. This means that if I draw a line on eurusd at 1.0000, it appears on all other symbols (ausdusd, gbpusd etc) at the same value (1.0000).  How do I remove this? Seems like such a weird feature. I have been messing...