Download MetaTrader 5

MQL4 and MetaTrader 4 - page 777

To post a new topic, please log in or register
Im a newbie and Im really stuck, I had tried many ways and combined with my programming inexperience, I just cant find a solution to this problem. I want the EA to count how many open and pending orders of each type are on the account, and store the result for each type in a variable. I have this...
Hi, is there a possibility to put an gif or png into an indicator or EA? With which function? Thank you, sunshineh
How can I get my EA to know the price of an open position buy MagicNumber? Thank You
I'm writing an EA to alternate buy and sell orders. I can code to alternate orderswhen there is a history, but not from first start of EA. This is the base simplecode. How do I code to alternate orders? if(OrderType()==OP_SELL) Buy=true; if(OrderType()==OP_BUY) Sell=true; Thanks, Wackena
Offers from experience programers needed to code 2 stradegies in MT4 platform stradegies are simple trendfolowing system please contact Johan Holt trancoinvest@inbox.com tel +45 30746057
hello plz help me how to change expert adviser If he should buy, he sells and if he should sell he buy thanks all
Hi all, I have this indicator which works very well and has made me humongous profits as well...but now I am very much interested to convert this indicator to an EA. Can any programming guy help me for this???? I have attached an indicator code here and want it to convert into an EA
Everyday I want to draw a trendline from an external file which will specify the dates/times for 2 candles and Up or Down Trendline. Then when the trendline is broken an expert would enter a trade.
I want very simple stuff for learning purpose. All the samples I found are too complicated to understand. I want to create my own samples. I wanna pay for that if necessary though I'm not (yet :)) rich with forex.
Some can help me to create a simple script for daily breakout? My idea is very simple if market price break the hight of the last day buy and set SL and TP if price break low of last day Sell and set SL and TP.
I wrote a little programcalculating volatility. Currently I use the"comment" command to display the result on my chart. The words OK andNOT OK. I'd like to replace thesewords with a green ore red square (or dot)) of about 1 cm size. I have difficulties to findthe right command and program exemplas...
helo sir,i want to know the best indicators in commodity (buy -sell and stop loss)plz refer it,thanks all
Hello Experts, I need your help. When I do double HighestPoint = High[iHighest(NULL,0,MODE_HIGH,200,0)]; then how can i find this bar number of the highest point. Thanks a lot.
Hi, Question 1 This is a question about whether a custom indicator which is called from an EA works "on its own" or not. (This might already be answered in the Book, but some sections are badly translated so it's still unclear to me.) I'll explain through an example: TICK 1: The EA (program) is...
LOT1 chart:daily basis how send buy order if the folowing condition is true: yesterday HIGH minus yesterday LOW>50pips ---> buy 1 lot thanks
HELO FRIENDS,ANY HAVING THE FISH TANK INDICATORS,FISH TFO
Hi, I am trying to compile EA, where fast EMA is crossing slow one as buy/sale signals. The problem I have is that sometimes even when EMAs are not crossing, but are close - it is considered as a signal. It is strange since I put everywhere in the code > or <, not <= or =>. Any clue how to fix this?...
Does any one now a easy way to find out what version of windows MT4 is running using just a windows API call. Can any one tell me how to make this work: #import "kernel32.dll" int GWINAPI GetVersionEA(_inout LPOSVERSIONINFO lpVersionInfo); #import http://msdn.microsoft...
Dear all, I have problem When i overlay two indicators rsi(2) and then cci(6) in one window manually (just add rsi(2) and then drag cci(6) into rsi(2) window, as graphical is ok. Look at the bottom of the chart. But I coding custom indicator for same purpose. the result is similar but rather strange...
Dear Members, I need a moving average indicator which draw average line only for the candles runs in when europe and us markets open, remaining candles moving average not necessary for me. How can i offset remaining time. Kind regards, Pavan 2843.
I would be grateful if anyone could point me to a simple EA that could close all trades on a platform when the floating profit meets a certain percentage target (profit or loss). Thank you!
Hi Guys, I am looking for a way to handle an array with multiple fields. Is there a command to establish an array like 'myArray [int field1, double filed2, string field3] Also, what is the command to 'push' the array 'forward'? i.e for an example if the array has 3 places.. then...
Hello, I was hoping someone could help me out. I've been using the SWBgrid with some other eas for my overall strategy. However, I wanted to increase the frequency of trades from "opening a brand new trade once the previous trade has ended" to "opening a brand new trade every candlestick."...
Hi all here! I dont see some error in code for this i want to ask for help. i have an indicator with following code included: datetime TimeArray[];int i,y;int limit;int counted_bars=IndicatorCounted();if(counted_bars>0) counted_bars--;limit=Bars-counted_bars;ArrayCopySeries(TimeArray,MODE_TIME...
Hi I have an EA that uses this: res = iATR(Symbol(),Period(),theAtrPeriod,shift); And an ATR indicator that uses this: AtrBuffer[i]=iMAOnArray(TempBuffer,Bars,AtrPeriod,0,MODE_SMA,i); I noticed that sometimes the output can be slightly different ie the indicator maybe change form 0.0021 to 0.0022...
I subscribe to signals that require I place trades just before London market opens. Since this is not a convenient time I was wondering if there is an EA that exits that I would be able to place pending orders but these orders would not be executed until 2:00 Eastern Standard Time. Thanks
Hi, MT4 doesn't load live account after closing down and restarting. I can trade on my live account Apari MT4 but when i close MT4 and later restart it i cannot login to my live account. Details are correct. Any ideas please? Thanks
hi forum, i have an indicator which shows an alert when EMA5 crosses EMA10. but this alert should only pop up when a trade is running in that pair. can somebody please show me how to check if a trade is currently running? i tried it with ORDERSYMBOL(), ORDERTOTAL() but i have no idea how to do it....
I am new to this and have not done any programming since 1990ish on a 386 pc! So need help just getting started. I am wanting a stratergy that will buy when the price of the current bar goes above the price of the last bar high and then sell with a limit of 1pip! It's part of a stratergy I am trying...
Hi, is it possible to change the bandwidth-indicator that it will show also minus values? Sorry for my bad english ;-) //+------------------------------------------------------------------+//|                                               BandsBandwidth.mq4...