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 EA on multiple charts trying to open the same file simultaneously
Hello I have a 28 charts loaded with the same EA, and AutoTrading off.  The EA, on init, opens a file, populates an array from the contents, and close the filehandle. If I click AutoTrade on, all the EAs jump into action at the same time. 
strontiumDog
Added topic Problem with FileReadString - should be simple to fix
Hello I have a file which I wrote with Notepad which contains: 1406718000 1406719800 so should have Win line endings. This code: void readInTradeEvents() {     i = 0 ;      int fh= FileOpen ( "eventdates.txt"
strontiumDog
Added topic Comprehensive lot size calculation function for mql4
Right after spending basically all day researching and double checking bits of code from all over the place, I didn't find a nice, reliable, but simple and easy to implement function in one place that I could drop into my code which would give me the
strontiumDog
Added topic Close All Trades In All Charts Simultaneously Immediately
Hello I've searched around and I've not found a script for MT4 specifically which closes all trades on all charts immediately at whatever price.  Has anyone got one? This will help with testing EAs which work in strategies which work across
strontiumDog
Added topic Pull multiple charts onto terminal simultaneously
Hello I'm just checking with more experienced developers of MT4 than me that there really is no way of upgrading multiple charts' EAs simultaneously? I have a 28 symbol strategy, and although I use a profile to set up all 28 charts arranged as I like
strontiumDog
Added topic FileWrite will not write from start(), only in init()
OK, I've been on it now for ages, time to get a sanity check. The code below is only the important parts of my EA, which operates fine, but in order to get a more automated way of calculating the best stoploss without trawling back through visual
strontiumDog
Added topic mysymbol.isSynchronized() returns false. What now?
Hello I'm checking the above and it's returning false in demo forward. CSymbolInfo . Can I force the server to synchronize by refreshing the Terminal/EA?  I'm a bit stuck on how to synchronize so I canProceed(); any help appreciated
strontiumDog
Added topic MT4 Terminal Daylight Saving
OK, so as we know the MT4 terminal time is set to EET. It has been seen in the past that certain countries change their daylight saving times , dates, or even shift to not using it, or using it all the time. Which country should I pay attention to
strontiumDog
Added topic Terminal not logging
Hello I've gone through the help manual and it suggests that my terminal journal is logging and I can richt-click -> open a journal entry and it opens the explorer window showing the logs directory where the log for that entry is. It does that
strontiumDog
Added topic Script to switch to horizontal line
I have a strategy which involves manually trading the M1. It's fast moving and it's during the day and I am at work. In order to prep support and resistance lines, i want to create about 20 lines a day in as short a time frame as possible. it looks
strontiumDog
Added topic OrdersTotal doesn't appear to work
Hello This is probably a simple fix, but I've got a cold. In my buy function I have OrderSend(mrequest,mresult); and then if (mresult.retcode== 10009 || mresult.retcode== 10008 ) { // Request is completed or order placed
strontiumDog
Added topic Tester lists two copies of the same indicator
Hello I know that in order to have my template work with the strategy tester, I need to save a template with the same name as my EA.  Fine. So when I start a backtest I see my template applied in the tester window. Trouble with that is, in order
strontiumDog
Added topic How to find the angle of the SMA
Hello Assuming I have an smaHandle piping in SMA values to my smaVals[] array, I need to find the angle of the trend over a specified number of bars in a zoom-friendly manner. I've seen  OBJ_TRENDBYANGLE but it looks like it's geared towards
strontiumDog
Added topic Print statement not printing out at the right time, and no flush() for print
Hello I grabbed myself a copy of Yurich's FastZZ zigzag indicator from https://www.mql5.com/en/code/1027 Looks good, but feeling responsible, before I rely on it, I need to fully understand the code.  I'm relatively new to indicators and had a
strontiumDog
Added topic How to calculate a position size correctly
Hello I have the following code: double calcPositionSize() {          // calculate position size based on account balance, pcRisk, price, symbol and stoploss.          //
strontiumDog
Added topic mt5 strategy tester incorrectly remembering previous input values
Hello I'm getting this weird result from MT5 strat tester.  I have the simplest code snippet to prove that the problem is reproducable. I assign a few external input variables in the code.  I run the code and check the journal of the tester
strontiumDog
Added topic Close prices array unavailable to compiler
https://www.mql5.com/en/docs/standardlibrary/expertclasses/expertbaseclasses/cexpertbase/cexpertbaseclose Suggests to me that there is a function called Close which returns the double of the price of the candle specified as an integer argument
strontiumDog
Registered at MQL5.community
12