MQL4 and MetaTrader 4 - page 81

To post a new topic, please log in or register
I have been seaching for this indicator without luck. Is it possible to make an indicator that automatic execute trades when The opposite color  has closed and The New candle has started 😊this is for renko and mt4 system 😊 Best regards Henning Berge 
Hi, Have you heard the gospel? Did you know that there are two ways after you die? Hell (Gehenna) (eternal torment in the lake of fire) or Heaven/new earth, new Heaven which is an eternal paradise. People are sinners and they need to repent of the sin like homosexuality,  lying, stealing, and...
Searching for this mostly resulted in a slew of like-minded posts that went unanswered a year or two ago...but on the off chance someone has since figured out a way to do this (or knows for certainty it cannot be done) I figured I'd pose the question. Is there a way to setup a script or EA attached...
Hello, since today I'm not able to drag and drop indicators inside the MT4 window to a chart. The indicator will not show up, that symbol window will freeze, all other windows keep updating but MT4 is completely unresponsive. Nothing on my system has changed. Windows 7, last MT4 build from May,...
Hello, I was able to read from a file outside of MT4 folders using windows API but when I'm trying to write there are spaces in between each letters. It's an old code I found online and tried to fix. I'm guessing it has something to do with the MulDiv function but not sure. Can you please take a...
I am trying to invoke this method in MQL: #import "Trading.dll"int GetSymbolCount(string symbol);#import The C# code is as follows: [DllExport("GetSymbolCount", CallingConvention = CallingConvention.StdCall)]public static int GetSymbolCount([MarshalAs(UnmanagedType.LPWStr)]string symbol) I tried...
Hi I'm asking this because I've recently introduced it into my EA and found strategy tests now taking ages and wondering whether the increase is due to the interaction with the broker. I'm a newbie, so apologies if this has been asked before. Thanks in advance
Ok, I admit it, I'm a newbie to MQL4. That said I've been an IT developer for 40 years now and trading generally for as long as I can remember. This has been asked before, I know, but unless I'm not searching this forum correctly, I've not found an adequate answer. I trade using three different...
Hi , I'm new to MT4 and I would ask if it support ( Min(O,C) and Max(O,C) function. To be more clear: I need to measure from High to Open for the candle that closed Red OR from High to Close for the candle that closed green. Thx
  What is a TICK? (42   1 2 3 4 5)
What is a "tick" in MT4 ?
Hey there! I'm new to coding with MQL4. I'm simply trying to have my indicator plot vertical lines at specified times in history. It actually does this correctly! The only problem is when I initially drag the indicator onto a blank chart, I click "OK", but the vertical lines don't appear. However,...
According to https://docs.mql4.com/basis/types/classes  union is a reserved word. However, when I try to use it, the compiler doesnt recognise it. I have build 1090.
extern double lots=0.1;  int ticket=0;  extern int stoploss=300;  extern int takeprofit=500; int aperto=0; //+------------------------------------------------------------------+ int start() {  double mc1 = iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,1); double mc2 = iMACD(NULL,0,12,26,9,PRICE_CLOSE...
I have: bool MyVar = false; When I try and display a comment: Comment ("MyVar: " + MyVar); I get implicit conversion from 'number' to 'string' warning when compiling. In MT4 it would compile OK and print a 'one' or 'zero' corresponding to true or false. How do we now display booleans in a...
Removed! Hi guys, Ive created a historgram indicator that basically prints a colour when price is in an uptrend/downtrend, and out of a set of bands like BB bands. After a couple of bars if i refresh the chart, the histogram changes in colours and is recalculating or redrawing. I have gone through...
Hello all, I'm curious to know why would I get different results in my testing and optimization when I make a few minor tweeks in my code that "technically" should bring the same result... see example below. int total=OrdersTotal();   if(total>0){   for(int pos=0;pos<total;pos++)...
Hi  ..Why is it when you would like to check one point of data from one timeframe to the other that you don't see the same point -- But, when you line them up it remembers the last position. I'd like to see it the way I see it when it switches which is to plot the point of somewhere there was focus...
hi friends, i'm trying to delete a file on /file every second. I'm familiar with ontick function, but this time i need it to work every second, or even less, so how can i code this? a- its using ontimer function? void OnTimer(){EventSetTimer (); // How to use this to delete file "b" every second? If...
Hi, I wrote an Expert Advisor dealing with multicurrenncy (one pair chart is open, and others-we call it "foreign" pairs- are not open). When referring to any "foreign" pairs to get for example the High of the last closed candle (shift=1) in M15 chart like: double lastHigh = iHigh("GBPUSD", 15, 1);...
As would be the mathematical expression to construct the indicator fractal?. I would like to create fractal indicator in matlab. To do that would have as it would be?? To calculate fractals should I consider maximum and minimum. If for example I have the first bullish candle, the second has a higher...
Hey guys, I got an EA which is entering orders with a size based on the Equity amount and I would like to have it have it enter order based on the Balance amount instead. The used code to enter orders is  if (AutoLot)   {     double pv = SymbolInfoDouble(Symbol(),...
Hi all, I need to be able to read the "Forex Calendar" everyday to decide if there are major news, and condition the execution of my EA. Is it possible to access the Forex Calendar from an EA ?  How can I only filter the major news ? Thanks in advance. Joao.
  iHigh from other pairs (11   1 2)
Hi, I am simply using iHigh() and iLow() to get information from other pairs  iHigh(Currency[i], 15, 1)-iLow(Currency[i], 15, 1); where Currency[i] is array of defined currencies and I am accessing them one by one using loop, 15 is the time frame, and 1 is the last closed candle. These pairs are...
Hello! I was looking to request a project in Freelance but had a quick question I was wondering if someone could help me with... It would be much appreciated!!! When a programmer designs a custom indicator... say for instance, that draws an arrow when the FastMA cross the SlowMA, only if RSI > 50......
Hi, i have a script that can identify price action bars to give probable trade signals. what i wanted to do was once i run this script, i want to close all open charts and then open all charts with specified timeframe that were signaled by my scripts. is there a way to program closing of all open...
bool ris;  bool ris2;  if (OrderType()==OP_BUY &&mc1>mc2&&mc01<mc02 )  ris=OrderClose(ticket,lots,Bid,3,clrAqua);  if(OrderType()==OP_SELL && mc1<mc2 && mc01>mc02)  ris2=OrderClose(ticket,lots,Ask,3,clrBrown); return(0);
How to make a Comment that says how much Lots should i use in order to use only 1 USD? i want to create an automatic Comment text that will tell me how much Lots should i trade with if i want to risk only 1 USD per 1 Pip, in each pair it is calculated differently i want it to be able to calculate it...
mar5
Hi guys, I use a button in my indicator to save a screenshot. This screenshot can only be saved to the MT4 data folder. Now I would like to copy it from there to my desktop by using CopyFile from kernel32.dll. I found the description about CopyFile here: https://msdn.microsoft...
  Equity EA Anyone? (86   1 2 3 4 5 ... 8 9)
Hi, I am looking for an Equity EA. Similar to the e-Trailing EA where you can attach it to a chart to manage existing positions, I would like to find an equity ea that I can attach to a chart or charts to monitor the account equity and close the positions when the desired equity is reached. This...
chieftainlol
Alright, so! I have an RSI and Bollinger band in the same indicator window, but the bands keep exceeding the indicator window. How can I prevent this? It is terribly annoying. Thanks in advance.