MQL4 and MetaTrader 4 - page 880

Hi, I am after some help combining 2 scripts that have functions that I like. The first one reads from a text file and draws Horizontal Lines on the currently open chart. The second draws a Trend line on the currently open chart from were you place the cursor. What I need is to be able to read from...
Hey, can anyone point me to a good resource (indicator, code, tool, or even a service) that will display depth of market or order book detail? Also called DOM, pepperstone gives some limited DOM info, but would like to find some kind of mt4 indicator or even a stand alone service. Thanks!
When I run my EA on the Euro (and on any pair besides GBP/USD) it returns a large number of mismatched chart errors. Does anybody have any idea what these mean? Thanks for any input - "SymbolEURUSD (Euro vs US Dollar)Period4 Hours (H4) 2004.12.09 12:00 - 2008.02.28 04:00ModelEvery tick (the most...
[Deleted]
Hi! Here is my entry function. Before I've added RefreshRates(), it didn't place any orders and did not show any errors..Now that I've added RefreshRates,it shows "OrderSend Error 130" although the SL and TP are 0 as you can see. :D Please Advice,thank you.
Hello, everyone! Seems like I need help, I spent hours trying to figure out a simple matter (at least I thought it would be simple). So, I'm writing this function in my expert, that would take the symbol name (string) and convert it to a number (integer), so the function StrToInteger() seems like...
[Deleted]
Hi, I have little knowledge about programing. Everything I do is mostly copy/paste add/remove from one indicator to another . In this particular case, i've searched (almost) everywhere for a Weighted RSI applied to PRICE_TYPICAL with no success. For the PRICE_TYPICAL question, I've managed that in
Moderator Edit <CODE REMOVED> I created this for start. But, I realized it automatically gets into the folder of "Custom Indicator." Also, I realized when I wanted to delete, which means 1. select the label so that black rectangle appears 2. right click of the mouse and find delete in the pop up...
Hi everyone, I'm looking for a way to automatically stop\pause my algo for X days in certain cases. Any idea\snippet for that? Thanks
Hi, Im writing a function for an EA that upon change of trend it will sum all the opened trades and open an order in the opposit direction with a new magic number. This order will only close when the trend changes again. For some reason it is opening multiple orders with the right amount of lots(the...
I know you can SetLevelValue( int level, double value) to an indicator, but how do you read them if they have been set already? lets say for example, the RSI indicator, i will set it to 70 and 30 levels. But how can I read these 70 and 30 level values from another indicator or EA? Thanks for your...
hello every one is there any way to edit this trend line by angle to give its alert ONLY when the Bid price equals its corresponding point on the line, as it givs an alert with every price tick even if it's far away from the line. thanks in advanse #property indicator_chart_windowextern string...
[Deleted]
Hello :-) I use iCustom to get zigzag values of a predefined list of pairs. The ci cycles through the list and is calling icustom with each pair listed. Opening the chart and refreshing the history (right click on chart -> refresh) leads icustom to get me a different result compared to a not opened...
[Deleted]
Hi, my trendChange variable is howing up as false even though I set it true at the beginning. It never changes during the whole run. This variable is a string but I tried bool too and it only gave me 0 in the printout. What am I doing wrong? bool     openTrade=false;int      ticket;double   current...
[Deleted]
Hi I am looking for a custom indicator to be made . Should be really simple to do . All I want is horizontal lines to be added at specific distances when I place a trade ( or place a line / indicator ) at a price point. Once a price is shown, I want lines to appear at ZERO ( a given price) and...
[Deleted]
It would be very nice to have the chart selection bar above the charts and below the toolbar to allow quicker movement from the toolbar to the chart selection bar and vice versa. I do a lot of multiple time frame analysis on multiple charts and switch back and forth many times. Having to to go from...
Dear, I am getting problem about double value condition: I wrote code below: double am0_13 = iMA(NULL,PERIOD_M5,MA2_5min,0,Mode_EMA,MaPrice,0); double am1_13 = iMA(NULL,PERIOD_M5,MA2_5min,0,Mode_EMA,MaPrice,1); in the chart MA1 show = 1.53977 and MA2 show = 1.53975 When I write...
[Deleted]
Hello, When I run the attached EA in Strategy Tester I get the following in the Results tab. The entry in bold is the one I don't understand. This EA hedges a trade between a buystop and sellstop while doubling lotsize as price reverses and sets takeprofit and stoploss at equal opposing levels. As...
I've noticed my phone only alerts me to a push notification when I open the MT4 app on my phone. It won't vibrate when the app is closed. This severely limits the use of the notification. Is there any way I can get the notification vibration as long as my phone is on, even if the MT4 app is closed...
This kinda follows on from my previous question - https://www.mql5.com/en/forum/146554 I contacted Birt about the issues with the dates... His suggestion was it could be related to the way my EA is coded (no surprise really, as this is all still fairly new to me). His thoughts, that it could be...
Hi MT4 develpers, It takes a while to horizontally scrol the chart to the begin of the test period (testing without chart). Would you be so nice to include such button in your next build? Many thanks at forhand ! Regards, HansSpain
New article Expert Advisor for Trading in the Channel has been published: The Expert Advisor plots the channel lines. The upper and lower channel lines act as support and resistance levels. The Expert Advisor marks datum points, provides sound notification every time the price reaches or crosses the...
We have implemented a number of changes to Signals statistics to simplify evaluation of results. Now, you can quickly assess the trading activity of a selected signal, as the informative value of the charts has been considerably improved. First, Growth and Balance charts now feature...
I've had this great indicator that had been doing very very well trading the 4hr time frames. I've had my go with coding EA and haven't been able to pull it off. The idea is that when the indicator turns green buy and red sell and to close the trades when the color changes. Below is said indicator,...
I found this indicator and I want to make an EA of it but I'm stuck at one value. No, I don't have the source code, otherwise I wouldn't need your help. If you attach this to any chart, you will have 2 horizontal lines (usually the same value in positive and negative). I need to know how these 2...
I know nothing about programming (proven by my 3 hour attempt to write software for an EA where I became utterly lost), but I have a trading system for Forex, metals & indices which has performed exceptionally well on paper. It has made profits on 22 out of 25 entities on which I tried it I am keen...
this Is part of my code I want to change it and mt4 automatically calculate last 2 day: extern datetime GOBACK = D'2015.08.30 00:00';extern datetime GOBACKtill = D'2013.08.29 00:00';int start(){   int countedBars = IndicatorCounted();   if (countedBars < 0)       countedBars = 0;...
The indicator is https://www.mql5.com/en/code/10928 and the certain bars are the ones with arrows.
Hi there, i am just reading the MQL4 Book und i have a Problem to undestand this Part of the EA "tradingexpert". Concret the part with counting the Market orders. If i have two market orders, the variable Total gets the Value 2. But in this case the Condition Total<1 is not fulfilled and the Alert...
[Deleted]
I would hope and think that this one is easy, I'm just too new to MQL4 programming to do it yet... Can anyone out there build me a simple indicator that is similar to the Moving Average indicator of Period: 1, Shift: 0, MA Method: Simple, Apply To: Median Price (HL/2) Style: Blue line BUT... replace...