MQL4 and MetaTrader 4 - page 1358

Hi, I'm a newbie and also new to this forum. So far find this very informative and educational. Lot to learn. Can anyone show me where I can find an indicator which will plot on the charts the month's high and low levels? Thank you. Kind regards, vtayha
[Deleted]
I'm new to the MQL4 language and was writing a pretty simple EA that enters a position based on when two moving averages cross. When I use the strategy tester to backtest the program it seems to be working correctly (i.e. the results match the paper results that i have been previously tracking)....
If you can give some advice or list your way of QA for EA and for backtesting it will be great. Thanks in advance!
[Deleted]
Hello, The code below doesn't work, could you tell me why ? ObjectCreate ( "test", OBJ_ARROW, 0, 0, 0 ) ; ObjectSet ( "test", OBJPROP_STYLE, STYLE_SOLID ) ; ObjectSet ( "test", OBJPROP_WIDTH, 1 ) ; ObjectSet ( "test", OBJPROP_COLOR, Red ) ; ObjectSet ( "test",...
[Deleted]
Hi, I have this strange error "Zero Divide", when loading attached indicator. Can somebody solve the code, so that the error will not show in the future. Thanks,
[Deleted]
My EA isn't entering as expected. How do I get comments or whatever to print in backtest so that I can see the values of my indicator?
[Deleted]
  Time Shift...  (4)
Need answer. I want to delay next expert advisor decision for (n) minutes or exacty to the time of chosen period (M1, M5, M15 etc...), so i need some function inside expert advisor first to check wich period user is using and then sleep for this time, and put this code somewhere in start() function....
[Deleted]
Hello, I have a problem. When drawing a horizontal line on any bar, how can I accomplish that I can get the value of the right side scale on which the line points? Or even how can I draw a label with the value of which the line points. Thank You. Kind Regards
[Deleted]
Hello, I am wondering if somone can please assit me. I am placing text and trend lines on my MT4 Charts, however when I close the charts, and reopen them, all the text and trend lines have disappeared. Is there a way that I can save these so they are there each time I open the chart. Thanks in...
[Deleted]
Hi all, Is there an MT4 indicator to show the spread from the high and low of a single bar at a glance, maybe on a right click? Thank you all for your help, Pedro
[Deleted]
I have been trying to get this indi to give me an alert with pop up, somebody on another forum tried to add the alert but it still has a bug. Here is the source code #property copyright "Copyright © 2005, Yura Prokofiev"#property link "Yura.prokofiev@gmail.com"#property...
[Deleted]
Gann_HiLo_Activator_v2 writes a comment to the chart on the top left ---- HiLo = Bid() where Bid() is replaced by the current bid price. I don't have the source code for this indicator and the comment isn't showing up in the objects list. How can I retrieve the value of this comment?
Hi Guys im using this to calculate my lot size,any one know why this set a big lot size on mini account?? double lots = AccountFreeMargin ( ) * Risk / 100 / ( StopLoss * MarketInfo ( Symbol ( ) , MODE_TICKVALUE ) ) ; I want to calculate lot size by using stoploss and risk parameters Plz some Advise
I have a quite successful system for GU H1 (a trend follower) but trades are quite rare (2 a week). I would like to move it to the lower TF, let's say M15 so it trades 2-3 times a day. Scaling down parameters is not enough and probably I need some extra anti-noise filters. System in current shape
New article Checking the Myth: The Whole Day Trading Depends on How the Asian Session Is Traded is published: In this article we will check the well-known statement that "The whole day trading depends on how the Asian session is traded". Author: Игорь
Hi Every body, little help needed just im usign this to find a high/low iHighest(NULL,0,MODE_HIGH,BarsHistoryCount,1) or .... any one have any idea to find a better high/low (previously)? BarsHistoryCount is always changing, i need a better way to find previous high/low specialy on TF-5min help plz...
Hi, I am using an MT4 using ibfx as my broker. The data at xe.com seems a little different. My eurusd trade would have been closed if the data was that of xe.com. I am asking therefore your opinion or your knowledge on these differences in data feed. For sure, it makes the EA perform differently. Is
[Deleted]
Does anyone know if there is a way to get the messages sent to the "mailbox" in metatrader forwarded onto a "real" e-mail account? I have asked my broker(MIG) and they told me there is no way to do this! Any help or thoughts would be appreciated. Thank you forum......Daniel
[Deleted]
i i have the best ide to make an ea thats look on a template only grean for up trend and red for down trend this ide will be millions worth i thnk. more about the ide will come but the ide is so good i think it will get both me and you rich. is ther any out ther ther is good to build a script or an...
[Deleted]
  Problem with OrderClose()  (14   1 2)
Hello guys, I am quite new, and i have one very unusual problem with funciton OrderClose. When i test my strategy with simulation, everything works OK, but if i try to strat EA on real time trading(DEMO trading of course :)), the expert opens new and new position and doesn't colse previous orders,...
Hello guys, i have an EA that does not close trades when the opposite parameter is met. Need help from programmers on what i should do. Thanks guys
Hi, It is my first post and happy day. I would like hide some selected error (error 0 & error 1) for displaying some other errors only, for example: error 3, 130 and 131. Anyone has a function for this ? Tx for help.
[Deleted]
I'm trading using 3 Moving Averages (5, 13, and 50). The 50 Moving Average is my trend line and the 5 and 13 are my crosses. When the 5 Moving Average crosses over the 13 Moving Average (or vise versa) I'd like to enter the trade in the direction of the 5 Moving Average. My issue is that when the...
[Deleted]
/////////////////////////////////////////////////////////////////////////////////////////////// void TIME_DEL() { for(int i=OrdersTotal()-1;i>=0;i--) { if(!OrderSelect(i,SELECT_BY_POS,MODE_TRADES)) continue; RefreshRates(); if((OrderType()==OP_BUYSTOP)...
[Deleted]
Is there any way to back up those setting i have set for my hotkey for the script. For those indicator, script and EA, i just copy and do a back up, whereas for hotkey, any way to do it? Thanks
[Deleted]
Hi, I would like to know is it possible to run EA forever until press the "stop" button ? It is found that : when I run the EA, it just run up to current moment. What I expect is .... as the time goes ..... it would continue to run .... until I press the "stop" button ..... is it possible ? how ?
[Deleted]
When I use this way of closing opposite orders in my EA, and the value of two orders does not match, then a new order will be placed by the broker with the difference of values of previous two orders. Eg. Order1 - Short, 2 lotsOrder2 - Long, 3 lots OrderCloseBy(Order1, Order2); // https://docs.mql4...
[Deleted]
I want to create an indicator trendline based on two point (one - the highest price of tomorrow and another the last price of tomorrow). Any indicador similar to suggest ? tks.
[Deleted]
I tried searching for this but couldn't find it here. So I thought I'll try asking. Is there an EA for managing open positions to reduce risks ? Something that does conditional stop adjustments. Like a smart trailing stop. Thanks
[Deleted]
I have downloaded the attached indicator and like to have some suggestions on how to create a signal out of it to program an EA? On the chart you can see that the indicator draws an arrow on a cross of the signal line. It is this signal that I need. Any ideas? Thanks in advance.