So I was
working on an EA that looks back several days on the 1 minute time frame, and I
was getting strange results I didn’t understand. Until I noticed that not all
history is available in the strategy tester.
SomeTime = iTime(...
I have a
class that I use to check for a new bar. I initiate a timer in OnInit with the
iTime function. Then in OnTick I check
to see if the timer still corresponds with the time of the current bar.
I noticed a weird behavior...
This has happened
a couple of times now. My EAs have a few string input parameters. The values of
those strings are sometimes empty after restarting the terminal. There is no
warning or anything like that. The strings are suddenly just empty. But...
mixing MQL4 and MQL5, what kind of new features do you like to use? The reason
I ask is because I just don’t see the point of most of it. Structures are
great. They are a no-brainer. But beyond that…
instance, why would I use the...
MT4 build 675. I made an EA which opens a market BUY and market SELL at the same time.
Both trades have the same lot size.
enters at 1.18436 and exits 1.18236 (20 pips loss). The SELL enters at 1.18431
and exits at 1...
I wonder if anyone else has noticed this. Before the latest release the terminals that I run on my vps, would require little of the CPU. They would take up quite a lot of memory on start up but after a couple of hours they would release at least...
week I got an email from one of the brokers I use, stating that they would
switch from Instant Execution to Market Execution on the 29th of June.
It also mentioned that you can’t set SL and TP directly when using a market
order. You have to...
while back I used BUY and SELL stops to place my trades, because they are
easier to program and handle. After a while I found out that my broker (market
maker) was hunting these stops, so I switched to market orders.
I have an account...
I have been
recording broker data for two years now, in the hopes that my data has a higher
quality than the history download. I only recorded the 1m, 5m, 15m, 1h and 1d
because that is what I use mostly. I have 2 brokers and 2 terminals per...
I don't know if anyone has posted this yet (the search is down), but here it is in any case. I run Windows 8.1 and when I tried to uninstall build 6xx via uninstall.exe, I got an error message saying something about a missing link. I tried removing...
I'm affraid I already know the answer to this one, but I thought I asked just in case. Is there any way to influence where files for history, experts, etc. are placed? In the past they were located on my D disk which is a RAID 1 set up. Now they end...
Is the spread field in the strategy tester in pips or fractional pips? I can't find it in the documentation. For instance, on a pair with 5 digits should that parameter be set to 1.6 or 16 if you want to simulate a spread of 1.6 pips?
can look for a specific magic number by looping through MOD_TRADES.for( int Loop = 0; Loop <= OrdersTotal() - 1 ; Loop ++ )
OrderSelect( Loop , SELECT_BY_POS , MODE_TRADES );
if( OrderMagicNumber() ==...
No, I don’t
want discuss what kind of psychology one needs to become a successful trader. I
want to discuss the psychology needed to stay sane once you have become successful.
I’ve been a
programmer for years in the field of Business...
This is kind of a stupid question but I can't find the answer anywhere. I've noticed that on the trade tab in ther terminal the prices, stoplosses and take profits are sometimes highlighted with a green or red background. What does that mean?
double High_pending = iHigh( Symbol(), PERIOD_D1, 1 );
double Low_pending = iLow( Symbol(), PERIOD_D1, 1 );
This problem might have been mentioned before but I wouldn't have a clue how to find that specific topic. I use the above statements...
Is anybody else using Alpari UK? I have been using an Alpari Classic account for the past year and was very satisfied. However, during this month I've experience five connection failures on both my VPS and pc at home. It last from a few minutes to...