MQL4 and MetaTrader 4 - page 1380

What is the command which will return 1 : if trade_X has reached its TP value and closed and 0 otherwise. PLEASE HELP !!!
I am trying to convert an indicator to an EA...all works well with one frustrating exception. One section of the routine sets an array element equal to a variable...eg: "myArray[myElement] = myVariable". myArray and myVariable are both defined as "double". This works perfectly fine in the...
Hi, I am not the best at mql4 programming but I have a question. I am using an indicator called N_StepMA_1 - attached Now i have an EA that opens trades when the yellow line crosses the teal line of the indicator. I have that all working fine. The problem is, afterthis happens and the next bar...
Hello, i have no credit card and want to transfer some money on my paypal account but can not do it without credit card so i have think about to code somethink in mql4 for somebody if he can donate me for it somethink to my paypalaccount, so if you need somethink i can code it for you email:...
Hi, I used to open 4 different charts of EUR/USD in another platform. I can't find the function to synchonize the drawings on one chart over the others. Is it possible to syn drawings on all charts of the same counter?
[Deleted]
Hi all, I have just graduated from Tulane and am unfortunate enough to not have a full-time, career building job. I am looking at Forex trading as a means of acquiring income and developing a skill set that I might be able to use to begin building a career. I have some knowledge of finances and...
[Deleted]
Hi folks I am using an indicator with an audio alarm on 10 different charts, when I start mt4 the alerts go off continiously for about 300 cycles picking all my old alerts which is quite a serious intolerable racket. Is there a some code that I can add to the indy to tell it to sound the alert for...
The question is really more of a rhetorical question, but still. What if we know the exact law of price movement (let's say we know the exact formula for the probability density distribution of its differences/increases). How can we calculate a trading strategy that is optimal according to some
  Date arithmetic  (4)
I know I can determine the number of days between two dates by simply subtracting the dates...but how do I determine the date that is n-days from another date? TIA...Chuck
[Deleted]
  Modifying trades  (5)
Has anyone had the situation where a trade is placed with a TP and later a second trade is placed, of the same type, also with a TP. Because of FIFO both trades have the same TP. The problem is that the TP of the second trade pulls back the TP of the first trade causing it to become at a loss or...
[Deleted]
#property copyright "Copyright ?2009, MetaQuotes Software Corp." #property link "http://www.metaquotes.net" #property indicator_separate_window #property indicator_minimum 0 #property indicator_maximum 6 #property indicator_buffers 1 #property indicator_color1 Blue int Week[];...
-
  No more Locke's in MT5? [о_0]  (84   1 2 3 4 5 ... 8 9)
Good day to all. Maybe I'm asking too much, I'm sorry, but I just don't see the effort to reread 42 pages of comments in the topic: MetaTrader 5 Client Terminal The question is about the 2nd screenshot in the topic: Example of different trading positions in MetaTrader 4 and MetaTrader 5 Developers
[Deleted]
Hi all I have a very simple problem with my EA. Could you help me solve it ? Here is my problem. int TakeProfit = 30; double myprofit = Ask + TakeProfit * Point; double ticket = OrderSend(Symbol(), OP_BUY, Lots, Ask, 3, 0, myprofit, "Magic = " + Magic, Magic, 0, 0); My EA works well with some...
[Deleted]
Hi I want to try EA based on 2 moving avaerege, it will reverse, when cross is changed. But how to set up there a time frame I want to trade? Many thanks
[Deleted]
  best profit !!!  (1)
hi  this result for my stratgy !! I care about your opinion http://efxexp.mt4live.com/ expert.fx@hotmail.com
[Deleted]
Hey guys, so I'm trying to make a code that adjusts the lot based on the acceptable risk, amount of money in the account, and the stop loss. double Lots; //---- select lot size Lots=NormalizeDouble((AccountFreeMargin()*riskPerc)/(Stop*10),1); if(Lots<minLots) Lots=minLots; if(Lots>maxLots)...
[Deleted]
Hi, Need a help on the programming, if i had two macd indicators mounted on the same subwindow (eg. window 1), how can i lock the zerolines together so that when the window sizing is changing, the 2 indicators are locked in sync. It can manually set on the Custom Indicator Dialog Window on "Common"...
[Deleted]
Actually subzh, while wise and trying to write one, maybe someone can throw a ready-made, so I do not reinvent the wheel. ZS: A search on the forum did not give anything useful, maybe I searched badly
I wonder myself more and more... Wasting my time identifying crooks. I DON'T KNOW WHAT YOU'RE TALKING ABOUT. Enlightenment? Doesn't seem to be... I suggest that everyone who reads should post here! and not in the threads where the issues are discussed... according to the title of the threads! ;) And
I would like to know the best parameter setting. Can someone help
Hello, I`m Looking for a Programmer in MQL4 and for the future in MQL5 Basically, I need someone to code my idea for me which I already have formulated and written out. It's nothing special, just a basic trend Ea using one indicator with variables that I can set. The programmer I'm looking for is...
[Deleted]
Im very new to this programming, I have opened a sample program & understood some of the things. but still I need more explanation.. the code is: double LotStep = MarketInfo( Symbol(), MODE_LOTSTEP );LOT=MathFloor( LOT / LotStep )*LotStep;if (LOT>MarketInfo(Symbol(),MODE_MAXLOT)) LOT =...
Hello to all, Attached is the description and javascript code to the Direction_Congestion indicator. I have used this indicator with good results on the ESignal platform. It works well at identifying areas of congestion...and showing general direction. I primarily use it for congestion. When the...
[Deleted]
  common error!  (2)
sell or buy New ordersend "common error" why this appear! trade code /// //ordersend ---buy ticket=ordersend(" EURUSD ",OP_BUY,Lots,Ask,5,0,0,"buy",0,0,Red); ~~ if (ordersymbol()=="EURUSD" && ASK > ORDEROPENPRICE()+100*POINT) ticket=ordersend("EURUSD",OP_BUY,Dlots,Ask,5,0,0,"RB",0,0,Red); ///
  Trailing stops  (1)
Is there a way you can set your trailing stop to function in terms of dollar value as against pips?
[Deleted]
Hi frds, I have my indicator which calculates something for me at open prices to for example 60 bars past, I mean from Open[0] to Open[59] lets say. When I test my EA and I use 15 minutes bar and in one bar there are approx 70 ticks and i use it with many combinations of inputs for example 5 sets...
someone know function that send picture or graph to printer??? someone can help me ? please?
How do i make the program to open only one trade, and if a trade is open, not to open another one?
[Deleted]
extern int SignalGap = 4; int dist=24; double b1[]; double b2[]; int init() { SetIndexStyle(0,DRAW_ARROW,STYLE_SOLID,1); SetIndexStyle(1,DRAW_ARROW,STYLE_SOLID,1); SetIndexArrow(1,233); SetIndexArrow(0,234); SetIndexBuffer(0,b1); SetIndexBuffer(1,b2); return(0); } int start() {...