strontiumDog
strontiumDog
Friends

Add friends via their profile or user search and you will be able to see if they are online

strontiumDog
Added topic ObjectSet and ObjectSetText not recognised by MetaEditor context sensitivity and don't operate as expected
Hello Trying out code from https://www.mql5.com/en/forum/130611/3340415#comment_3340415 as I have plotted a series of HLINEs and want to change the font of the descriptions of each:    if ( ObjectSetText (_lineName, "What you want to call
strontiumDog
Added topic Draw rectangle around range of bars by hours
Hello This ought to be easy but I'm finding it fiendish. I want to draw a rectangle around my non-trading hours. I can do this ok in a custom indicator , by scanning the Bars-IndicatorCounted() for the start hour of my trading day, and when I get
strontiumDog
Added topic Update script that Changes all templates using UserDLL to only affect certain charts
Hello I have this script which works great, and changes *all* my charts to a selected template.  But I have various fx pairs and oil and gold, and I don't want the template change to affect the oil and gold as I have different templates for
strontiumDog
Added topic ChartSymbol() not working as expected
Hello I have a function in my EA: void SetAllChartsToPeriod( int _period) {          long currChart,prevChart= ChartFirst ();          int lim = 30 ;
strontiumDog
Added topic ChartSymbol Fails to see a valid chart
Hello Anyone else had this?  I've attached an Alert from this code: void afxSetAllChartsToPeriod( int _period) {          long chid= ChartFirst ();          Alert (
strontiumDog
Added topic Pending Order line not drawn
Hi My investor's PC appears to be creating trades OK, SL/TP drawn, but not the actually order line itself.  See the attached pic. I've worked with mt4 and mql4 for about 6 years now and not ever seen this and wouldn't know where to look. Google
strontiumDog
Added topic Date Arithmetic
Hello I have a fn which calcs missed daily, weekly and monthly pivots, and plots lines. Due to the lines being triggered by buttons, the calc is done in an EA, not an indicator.  I need to plot the lines to start level with the first bar of the
strontiumDog
Added topic Best way to calculate bars in a week
Hello I'm working on a bespoke missed weekly pivots calculation.  If the user pulls such onto an M5 chart, as I process the Bars, if the Time of the last bar (i+1) is Sunday and the time of 'this' bar is Monday, I know i+1 is the last of last
strontiumDog
Added topic maximisation issue
Hi Sometimes, when I have a load of charts unmaximised, I maximise one of them for a while.  When I switch to the others they are maximised in window, but the window contents is still the same dimensions of the window as it was previously and
strontiumDog
Added topic Unpressing/undepressing buttons
Hello I have this code for my test button: int OnInit ()   {        if (!ButtonCreate( 0 ,InpName, 0 , 150 , 150 , 200 , 100 ,InpCorner, "Press" ,InpFont,InpFontSize
strontiumDog
Added topic Candles doesn't show up on time
Hi I've just noticed an H4 new bar at 00.09. Not 00.00? I must have missed something in the manual but nothing obvious is jumping out of google. 
strontiumDog
Added topic Code for calculation of pip difference of open trades
Hello As there is clearly only one correct answer to the question, 'How many pips of profit does my current trade exhibit?', I'm interested to see the most efficient way of coding this. I could work this out from reading, but I'm concerned about
strontiumDog
Added topic Lot Size Calculator
Hello For a while I've been using the following lot size calculation in EAs, and more recently in a script I can drag onto a chart for it to do the lot size calc for manual trades automatically.  My trading partner said, 'wow and it handles
strontiumDog
Added topic Hotkey to start a script
Hello I have a script I run every time I trade and so I want to make it quicker by assigning a hotkey to the attachment of that script to the focussed chart.  How can I do this
strontiumDog
Added topic Font of the label in the far top left of chart windows
Does anyone know what this is exactly?  I'm trying to put labels on the chart which match and I cannot work it out
strontiumDog
Added topic Detect Timzone
Hello Every tick , I want to update a variable with the current server time zone.  I can't find how this is done within mql4. I'd rather avoid having to scrape this off the web.  Can anyone tell me how to do this? Thanks
strontiumDog
Added topic ShellExecute not in docs
Hello I've recently found ShellExecuteA and W. qs: 1. Why are these not in any of the documentation categories except Forum?  i.e. why are these undocumented in the mql4 codebase, yet the function exists? 2. What are the return codes from this
strontiumDog
Added topic Gapping below stop loss: automatic close?
Hello A thought has crossed my mind, in those circumstances where high impact news causes a massive gap in the market/chart, if I have an open long near neither stop or take profit , and the gap changes the price down to below my stop loss, would the
strontiumDog
Added topic mqh function not defined
Hello I'm missing something which I cannot see easily on google.  Maybe I'm missing the point of header use. I'm getting 'RefreshRates' - function not defined when I compile a .mqh file. The same applies for loads of other functions I'm trying
strontiumDog
Added topic iCustom detection of output values for ex4-only indicator
Hello I acquired a free-to-download indicator for MT4 with no src code and no instructions on how to work with it in mql4 and I want to work with its output values in my EA.  Although I can see the extern value types from the input tab when I
12