Any suggestions on this, before I stray into a dead end ? //------------------------ void ModifyPending() {// The globals PriceBuy, SL_BUY are generated by indicators etc and may not always be 'sensible', especially in relation to eachother and current market price int MoveStep =...
hello,, please i have the logic that gives me the number of the bars like so,,, if i wan t o get the low of the bar number 5,,, how can i type it please,, thanks alot
Hello, I am using MT4 . I have set the Stop Loss point on when i am trading but many times the stop loss point not trigger correctly it mean If i have buy EUR/USD pair at 1.41920 and set the S/L at 1.41620 than if the market move to down trend then it will be trigger my S/L point 1.41620 but it is...
[Deleted]
First of all I should state that this problem doesn't exist as long as your broker has permanently fixed spreads. If for any reason your spreads ever change, then this problem applies to you. I was running the backtester and optimizer over some data using a strategy that uses no indicators. I would...
[Deleted]
Hello, I tested my EA on EURUSD - 5. And I found an interesting thing. I attached 2 picture about it. Somebody can tell me, how or why can I got this. On picture Ár mean price, and Jutalék mean commission. Thank you, Mihaly Szlauko
[Deleted]
Hi guys, I am trying to find the sum of my all open profitable trades, I wrote this function any ideas? Thank you int findProfit(){ int total = OrdersTotal(), profit; for (int cnt = 0 ; cnt <total ; cnt++) { OrderSelect(cnt,SELECT_BY_POS...
Hi, i'm learning MQL in my free time, and I'm currently trying to learn one basic thing but Can't find info about this or documentation. Let say i'm trying to code an Expert Advisor to open orders based on the output of indicators on the charts, for example when the William's Fractals open the Arrow...
[Deleted]
Has anyone ever developed a com class to allow data to be extracted from MT4 platform? I have developed a TCP/IP wrapper class which works great, but MT4 does not seem to allow multiple TCP/IP sessions!? I see this article online, has anyone have any experience with this? Its supposed to work for...
i have this code bool Lines3(){int Point1 = iBarShift(NULL,0,ObjectGet("Click1",OBJPROP_TIME1)); int Point2 = iBarShift(NULL,0,ObjectGet("Click2",OBJPROP_TIME1)); if(Point1==Point2) return(false); int X0 = iLowest(Symbol(),Period(),MODE_LOW,MathAbs(Point1-Point2)+1,MathMin(Point1,Point2));...
I can see 9 consecutive losses in backtesting - many times - yet the report says 2 consecutive losses. The model is using control points but that ought not affect things. What else is not reliable?
[Deleted]
I've been writing a Program that includes the iMACD -function, but whenever I tried to get a Signal of the MACD, I got the message: zero divide. By finding the Problem I printed: iMACD(NULL,0,10,20,7,PRICE_MEDIAN,MODE_MAIN,1) only, and realized that whenever the MACD value get smaller, It will give...
[Deleted]
Hi, i want to have multiple MT4 from different brokers, this is primarily due to the fact that i want a large number of symbols to analyze. I have developed some scripts/EA that i use which are very helpful to me for trade signals. i do not want to maintain separate copies of them for each MT4 but...
When I apply a saved template in a 'open chart' in EA, all the buy/sell signals will gone. How could I set template in EA 'open chart', so that I can see the same chart/colour/indicator that I save in a normal template?
There are a couple of well-known indicators - RBCI (https://www.mql5.com/ru/code/7205) and TTF (https://www.mql5.com/ru/code/7377). They are not very effective by themselves and do not differ much from other indicators. But if we put them on top of each other, we get something rubbish - the pair
Hello :-) I am having trouble distributing some .ex4 files. Some people use them fine, and others find a sudden crash of their plattform. If instead of receving the binary, they compile the source code themselves, everything runs fine. I am building the binary with MetaEditor Build 419: some users
I had a problem with WindowPriceMax() & WindowPriceMin() not giving correct values but thought it was something I was doing wrong . . . . I never took the issue any further. Then yesterday I noticed an interesting phenomenon, I was grabbing charts from MT4 while it was minimized and some text...
"Teach" the EA !!! [it made the number of trades (not orders) I wanted during the interval I specified ]
(73 1 2 3 4 5 ... 7 8)
Good day!!! Tell me, Mr. programmers, is it possible to "teach" the Expert Advisor to make a certain number of trades
Hola, Estoy Buscando Alguna persona Experta en Programación de mq4 automatizar EXPERTOS Con mis estrategias.Un saludo.
Hello !!! Here, are some information about this.. https://docs.mql4.com/constants/arrows But, where I can find more arrow codes ( with a picture ) ??? //---- drawing settings SetIndexArrow(0, 234); SetIndexArrow(1, 233); Really thanks for the information.. ( Sorry if it´s a silly question )...
Hi, I have the possibility to get backtest data. What data's do I need for the best "true" result? Tickdata or Minute-Data or ALL Timeframes?? Bid AND Ask and of course Open, High, Low, Close Or is there a better system to do backtests f.e. ninja trader, ...
Good day to all! I am dealing with prognosticating algorithms for a long time and have achieved some results. Of course there were ups and downs too. The more I do this business the more I get the idea that any forecasting is doomed... I would like to hear the opinion of forum members on this
[Deleted]
hi i want to send order buy or sell when new bar is appear. But i don't want to use function minute() to check. Right know i check new bars with function Minute() == 0 then i send order, but last time i don't have any transaction in 0 minute and my order was not send. Any idea ?
[Deleted]
Any one have idea about how i can get the value from the carve i am just use the NLR_MIX indicator and its attached below and want to build my own EA i want the value of colse buy warring, colse sell warring,F1_1,F2_2,WRC
Good afternoon, I have been looking around for some time without success. Can I paint all space between two lines with a color? Take the following chart: I would like to "paint" all the space between the upper and the lower line of one color -depending of the trend-. Is it possible? Thanks a lot!
[Deleted]
I have my takeprofit for my last two orders set at 1.03694.y 4:00 am that price reaches that target. Why did I get stopped out at 6:55 given that I reached the take profit first
This script may or may not be of interest to anybody directly, but it does also show by example how to read the keyboard, which may increase its usefulness. Be warned that reading keys like this will take key presses that "belong to anyone". In other words if the key is pressed for any reason the...
[Deleted]
Hi, In the pictures for the MT4 iphone app I see that you can have more than one 'Indicator Window' under the 'Main window'. When I downloaded the app I only had one Indicator Window under the Main window. How do you add more?
[Deleted]
I searched through google for how to set stoploss and takeprofit on an ecn broker. I tried all the examples what could be wrong with my code? I actually initialized my active open orders ticket number to my variables so that it would work but to no avail on MBtrading bull.trade = true; Bear...
[Deleted]
Dear Sir , In some of the EA , I found a different approach to broker 5 and not 5 digits , for example the following code segment : int digits = MarketInfo ( " EURUSD " , MODE_DIGITS ) ; if ( digits == 5) { int StopMultd = 10; } else { StopMultd = 1; } int Slippage = Slip * StopMultd ; My question
Hi, can I add a note to my chart, and when I do, it leaves a small symbol on the chart to remind me I have a note, perhaps double click on the icon/symbol to read the note does anything like this exist ? the Text thingy is hopless, one line most of the time isn't enough. Thanx gary
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.