I'm asking for comment or conceptual comment on the changes in Mt4 (600+) regarding the OnTick() versus Start() command, reaching beyond the limited help file details I've found. Not expecting specific answers below in every case, but to try to explain the confusion I'm finding if a couple of paragraphs in reply might help clarify things. Not meaning to rant. :(
Despite having programmed in Mt4 for several years, my experience came from the more forgiving Pascal language and the older pre-600 Mt4 compiler. I have not tangled with Mt5 previously. The update to Mt4 600+ has been frustrating. Many of the help files remain brief and frequently make assumptions to lean examples or no examples at all in some cases.
Is it best to sustain the Start() function in EA's consistent with prior Mt4 design or is the OnTick() function now preferred, if even just in lieu of pending end of life cycle from Mt4 to Mt5?
Is OnTick() an option to be used inside the Start() event for critical process? It's clear the return functions are different and it appears OnTick() tries to remain on the near stack rather than heap. Several things might benefit there in performance, I'm sure.
I don't seem to be understanding OnTick() fully as a "replacement" for Start() or in addition to, but that I'm having to declare most variables static under OnTick() if not global to preserver their statefulness. Increasing exposure to globals wouldn't seem to make sense but the help files I've seen never do say explicitly "do or don't" use OnTick() in a particular manner for EAs, that I've found. It seems by errors emitted, as if OnTick() is reinforcing rigid persistence to the stack, which makes sense, but in an event driven system it's hard at times to picture the degree of stability on a variable in local scope of the start() function competing for next event. In the past, I was not bound to using "static" for the errors which now arise under OnTick() and yet variables not declared static seem to lose persistence at end of scan, regardless of next tick arrival. Or I'm imagining it from runtime assumptions incorrectly. At least in the tester, static declarations appear under OnTick() to even survive a restart, which really surprised me to see on screen Comment()s show up preserved on restarts.
I've always held to the concept to complete a scan before the next tick by efficiency (if possible), but in conditions like Sleep() events, what happens to the state of the current scan / event with Sleep() delay under OnTick()? Does the current event survive and delay letting ticks pass by or end up wiped and cycle next event? I typically have applied a small sleep() period when making calls to the server in the past just as a standard of external events, despite stateful return messaging. I'm guilty of using RefreshRates() sparingly as needed versus MarketInfo() but even that comes to question if statefulness is being sustained / destroyed per event.
I seem to just be missing something conceptual about OnTick() and possibly reading too much into it for lack of a fuller understanding, (at the risk of being told to go find a relevant programming class) :|
I do understand the difference of OnTick() related to indicators or scripts versus EAs, but any literal clarity from the more experienced crowd regarding EAs with OnTick() would be appreciated. I'm sure others could benefit as well from a bit more generalized concept than I've found so far at least.
Thanks much for anyone braving some free thinking replies on concept or specifics, greatly appreciated, (end rant).
A script for opening a grid of orders
If you need to quickly open several pending orders (Buy Limit, Sell Limit, Buy Stop, Sell Stop) on a certain distance from the current price, this script will do all the routine for you! Allow AutoTrading before running the script.
Run the script on a chart.
Language of messages displayed (EN, RU, DE, FR, ES) - language of the output messages (English, Russian, German, French, Spanish). Price for open - open price. If set to
The Expert Advisor implements the classic "triangular arbitrage", which is successfully used by hedge funds.
"Triangular" arbitrage refers to a class of neutral-market strategies, in which the profit or loss of open positions does not depend on the direction of the market movement as a whole.
In order to take profit, the EA exploits a weak spot of market makers - it utilizes the difficulty of balancing cross rates of all currency pairs.
The advantages of the strategy are the following:
Who will be interested in this product:
those who are used to diversify the portfolio with a large number of pairs. those who work with a large number of orders those who trade news using pending orders (see the "Grid request" tab).The panel is designed to make managing a large number of orders as easy as managing one.
The currency pairs and order types for opening are formed here. The prices and stop levels are set.
User can define the price valu
The PZ Day Trading indicator detects reversals in a zig-zag fashion, without repainting or backpainting. Based on breakouts of variable lengths, the indicator uses only price action to pick trades and reacts to the market very fast. The positional accuracy of its signals offers huge opportunity for profits, easily up to 80% winners.
Amazingly easy to tradeChart statistics will help you to optimize your tradingIt works on every single timeframe without fine tuningThe indicator analyzes its own q
The TrendX is a technical indicator which allows to determine not only the movement direction of the market, but also to identify the flat areas.
It is based on the CCI indicator and a combination of price patterns.
The indicator works on all symbols and timeframes.
Two parameters allow to customize the indicator as needed, PERIOD is the period of CCI and T_Value is the significance of the trend.
Safe Automatic is a safe MetaТrader 5 trading robot working autonomously on a VPS server. The good results are achieved on EURUSD.
The EA applies modified versions of a trend-following strategy, half-pyramiding, scalping, Elliott Wave method and speculating trading with a deposit protection. The EA switches the strategies automatically. The program also takes the news calendar into account: the robot does not enter the market in a 10-minute interval before and after a news rel
The indicator is intended for determining the spread and swap size, the distance for setting stop orders and stop losses from the current price allowed and the risk per 1 point in the deposit currency.
The indicator informs a trader about possible additional expenses and profits connected with transferring a position to the next trade session of the financial instrument. It also informs about the spread size and the distance of pending orders, stop loss and trailing from the current price. In a
MultiRSI indicator is a combined RSI indicator for several currencies allowing users to analyze their group movement.
Like all indicators of that kind, it helps identify the currency that is currently the most deviated from the market's general movement, as well as the most oversold or overbought currency in the cluster analyzed by RSI oscillator.
For example, the screenshots display the cluster of 7 currencies with Euro as a base one: EURUSD, EURGBP, EURCHF, EURAUD, EURCAD, EURJPY and EURNZD.
This Expert Advisor trades news on any timeframe.
The news are downloaded from the Forex Factory website. Make sure to add the URL to the terminal settings.
The EA is launched on a single chart and defines all necessary pairs for trading on its own.
The robot works with pending orders setting two Buy stop and Sell stop orders before a news release.
It determines the time zones of the calendar and terminal automatically. Make sure to add the time.is URL to the terminal settings.
The EA can b
Pivot Points MT5 is a universal color multicurrency/multisymbol indicator of the Pivot Points levels systems. You can select one of its three versions: Standard Old, Standard New and Fibo. It plots pivot levels for financial instruments in a separate window.
The system will automatically calculate the Pivot Point on the basis of market data for the previous day (PERIOD_D1) and the system of support and resistance levels, three in each.
A user can choose colors for the indicator lines.
Unique "scalping" trend indicator with the feature of multi-layered smoothing of the resulting lines and a wide selection of parameters. It helps determine a probable change in the trend or a correction virtually near the very beginning of the movement. The toggled intersection arrows are fixed and appear at the opening of a new bar, but, with enough experience, it is possible to look for entry opportunities as soon as the indicator lines intersect at the unfinished bar. The signal appearance li
AIIV EURUSD - Active Index Inflection Values EURUSD
The Indicator Shows:
The intensity and the direction of the movement of USD. The intensity and the direction of the movement of EUR. The inflection value of EURUSD.This indicator allows determining a state of inflection on the market with a delay of one-two candlesticks and a 60% precision (precision depends on the chart timeframe - the higher the timeframe, the more precise is the forecast).
AIIV is a series of indicators of inflection
The indicator is based on readings of two oscillators: Bulls Power and Bears Power. It clearly shows the balance of buyers and sellers power. A signal for entering a deal is crossing the zero line and/or a divergence. When the volume filter is enabled, yellow histogram bar shows low trading volume (below average for 50 previous bars).
Period - calculation period, 13 on default; CalculatedBar - number of bars for displaying a divergence, 300 on default; Filter by volume -
The script allows users to easily close positions if their profit/loss reaches or exceeds a value specified in pips.
Please set slippage value first. Sometimes some positions do not close due to high volatility of the market. Please set larger slippage or restart the script.
This is a classical trading strategy, which falls into the category of breakout systems. They form support and resistance levels, which temporarily limit further price movement. When the price breaks down the support level or breaks up the resistance level, there emerges a strong momentum in the breakout direction, which allows to make profit on strong price movements with moderate risk.
To create the strategy, we used historical data with the quality of history of 99.9%.
It uses filtration o
The indicator is based on the digital window-sinc filter with an excellent frequency division. Due to this property you can get a very smooth indicator line.
The indicator has three lines: the central line indicates the main trend direction and the "fair" price, the other two lines show the price range. When the central line is read, it is recommended to buy from the bottom line and close a position above the central line. When the line is blue, do the opposite - sell from the upper line and cl
This indicator gives full information about the market state: strength and direction of a trend, volatility and price movement channel. It has two graphical components:
Histogram: the size and the color of a bar show the strength and direction of a trend. Positive values show an ascending trend and negative values - a descending trend. Green bar is for up motion, red one - for down motion, and the yellow one means no trend. Signal line is the value of the histogram (you can enable divergence
Energy line is calculated similar to kinetic energy in physics: E = (mv^2)/2. Tick volumes (money stock) are used as mass, while price rate of change (ROC) is used as velocity.
Energy direction (positive or negative) is defined by ROC direction.
Chaikin Volatility (CHV) indicator is additionally used. Since the volatility starts increasing before the price actually moves, CHV notifies of the increased market activity in advance. Calculations result in the energy release, which usually occurs b
DCMV Trade Channel Oscillator
The indicator calculates the values of DCMV trade channel oscillator:
Trade channel width. The value of trade channel depends on the trend (it increases at start of the trend and has the maximum values at end of the trend). The value of trade channel decreases at flat movement. The lowest values of channel width indicates the high probability of the very strong price movement.
The +DC line shows the "bulls" power. The -DC line shows the "bears" power. Th
The most profitable trend traders are the ones who know how to recognize not only the market trend, but also the trading opportunities that arise once a trend has been established. The Pz Trend Trading indicator has been designed to profit has much as possible from trends taking place in the maket.
Established trends offer dozens of trading opportunities, but most trend trading indicators neglect them completely, and leave the trader completely uninformed about what the market is doing during a
The Trend Strength is now available for the MetaTrader 5.
This indicator determines the strength of a short-term trend using the tick history that is stores during its operation.
The indicator is based on two principles of trend technical analysis:
The current trend is more likely to continue than change its direction. The trend will move in the same direction until it weakens.The indicator works on the M30, H1, H4 and D1 timeframes.
It is easy to work with this indicator both in manu
The indicator determines and marks the short-term lows and highs of the market on the chart according to Larry Williams` book "Long-term secrets to short-term trading".
"Any time there is a daily low with higher lows on both sides of it, that low will be a short-term low. We know this because a study of market action will show that prices descended in the low day, then failed to make a new low, and thus turned up, marking that ultimate low as a short-term point. A short-term market high is just
Fast Copy MT5 allows to copy trades between different MetaTrader 5 (netting)(hedge) and MetaTrader 4 accounts in any direction and amount, quickly and easily (without loading the system).
Any type of copying is available
MT5 —> MT5 MT5 —> MT4 MT4 —> MT5 MT4 —> MT4
* For any interaction with the MT4, it is necessary to additionally install Fast Copy MT4
One tool for sending and receiving transactions: [master] > [slave] operation mode can be selected in
We present you an effective software solution for arbitrage between brokers.
The Arbitrage on the market became widespread due to decentralization. There are many liquidity providers, whose quotes differ for various reasons. By tracking the dynamics of changes in the quotes of different brokers, it is possible to determine the delayed and leading brokers, thereby predicting the future prices of the delayed broker for a short time. Knowing these prices and using efficient built-in software filte
Trade Channel Indicator DCMV
The DCMV Indicator calculates the following Channel characteristics:
Channel Bounds (for TP and SL). It's assumed that price will never go outside the channel.Center Line of the Channel.Settlement price (with probability 90% the price will return to this line).Reference line (used for detection of trend).Upper and Lower breakborder. Used for generation of trade signals: channel breakout (trend strategies), false breakouts (flat strategies).Usage:
The indicator pro
Main Pivots is an indicator which looks for pivots points on preset intervals (days, weeks, months, years, etc.). Then all extreme points are checked for splice and consistent support and resistance lines are formed. These lines are useful for detecting the best pivot points.
It finds a pair of pivot lines for each interval which correspond to Low (support line) and High (resistance line) of the price movement on the interval. Difference between these lines represemt the price movement for the
The script is intended for automatic placing of Sell Stop pending orders, Stop Losses and Take Profits on the user specified levels. This script is not that useful as "Virtual pending buy stop", since short positions are opened as Bid price crosses the levels. Thus spread widening is not dangerous. Nevertheless, you need to have this script to prevent unwanted hitting of the Stop Loss levels.
Automation of the process of placing the Sell Stop pending orders, Stop Losses and T
The script is intended for automatic placing of Buy Stop pending orders, Stop Losses and Take Profits on the user specified levels.
Avoiding unwanted entering a long position in case of false hitting the level as a result of widening of the spread by a dealing center. Avoiding unwanted triggering of a Stop Loss in case a quote pierces a significant level (fractal) without further confirmation with the close price. Setting a necessary virtual order and entering the market in
The indicator generates early signals basing on ADX reading data combined with elements of price patterns.
Works on all symbols and timeframes.
The indicator does not redraw its signals. You see the same things on history and in real time.
For better visual perception signals are displayed as arrows (in order not to overload the chart).
The indicator is a complete analogues of the Trend Monitor indicator for MetaTrader 4
The best results are obtained when the indicator works o
The script creates account summary report in a separate window.
The report can be created for all deals and on deals for selected financial instruments.
It is possible to specify a time interval of calculation and save report to htm-file.
The script creates account summary report in a separate window.
The report can be created for all deals and for deals of the selected financial instruments.
It is possible to specify a time interval of calculation and save report to htm-file.
Thanks and Yep, that's the exact help file I referred to that doesn't really seem to say much about ...
conceptual comment on the changes in Mt4 (600+) regarding the OnTick() versus Start() command
Not being sarcastic, I respect you're an accomplished and polished coder, but even with your greater experience, you don't elaborate.
The OnTick help file says... "can now be used instead." (What is OnTick() used instead of) ?
The Tick event is generated only for Expert Advisors, but this does not mean that Expert Advisors required the OnTick() function, since not only NewTick events are generated for Expert Advisors, but also events of Timer, BookEvent and ChartEvent are generated. It must be declared as the void type, with no parameters:
So basically, if I just stick with Start(), declare locals static and continue to use RefreshRates() or MarketInfo() strategically, it's about the same thing? I understood the Start() command was fired with the tick event already and that OnTick() let's any new ticks pass by just like Start() will, if the scan in latent in completion relative to next event.
Is my understanding wrong, or how then does the OnTick() event benefit code or performance, inside the Start() routine otherwise?
What is the distinction, purpose or benefit of OnTick(), especially forced as void? Am I missing some other help file that builds on the concepts?
Does it inform me inside Start() that yet another Tick has occurred while the Start() event was in process, (pseudo critical code section-ish)?
Is it just a matter of equivalency or support for higher order high level code applications, OO, or otherwise?
I tried to emphasize I did the homework to look it up. I just don't see any real information imparted beyond basic construct.
I'd like help on this too, so commenting in the hope that the question gets bumped up the list. I'm afraid that compared to the body of knowledge out there on just about any other language, the documentation and tutorials on MQL4 are just about useless.
I also have found the various references mentioned, and I also have bumped my head on local vs. global variables, so if anyone can make these questions clear I think there will be a lot of pleased new programmers..
I'm not entirely sure what is being asked, but in a nutshell (and with some gross oversimplifications):
Just replace Start() with OnTick()... they are synonymous. Think of it as a terminology change.
Before Build 600+, you were effectively limited to running code once per tick. If a tick didn't come in, the code didn't run.
Now you can run code on a timer using OnTimer(), or when certain events happen like mouse clicks, pressing keys or moving objects using OnChartEvent().
A variable with local scope can only be accessed from within the procedure where it was declared. So if you declare "double myVar" in OnInit(), you can't access "myVar" in OnTick(). Variables with a local scope do not hold their values once the procedure has run, unless they are declared as static e.g. "static double myVar".
A variable with global scope can be accessed from anywhere within the EA. So if you declare "double myVar" at the top of your EA (outside of any procedures), you can access "myVar" in OnInit(), OnTick() or anywhere else you want. Variables with a global scope will hold their values between procedure calls.
A global variable is something different - it can be accessed between different EAs. They are stored for 4 weeks after their last use.
Ok, Thank you. This confirms a better context to it, for those lacking experience in Mt5 as I am...
Possibly my question should have been, "WHY" is OnTick() used instead of Start().
I view your answer to mean the OnTick() handler basically encourages improved Mt5 code structure and performance options in as much as it's requirements on variables, stack, heap, etc. which starts to make some sense in evolution of Mt4 > Mt5 and future code provisions perhaps. Overall, avoiding long or far calls can have a huge cumulative impact on overall performance and integration stability, something which has always been an issue in the MT4 scripting constructs permitting sloppy code design.
It honestly was not clear to me in the support files that OnTick() might not apply inside the Start() cycle in some instances. It helps if considering OnTick() as an explicit option of replacement to Start() as likely the safest way to view it. I didn't test if OnTick() can possibly be permitted inside Start() but it would now seem redundant and prone to several issues if one could even do so, yet there may have been instances beyond obvious for lack of clarification in the help file, leaving assumptions to dangle.
Last, I did not find this, "remained for compatibility" searching help or prior web reference unless you're simply clarifying; all good either way. :)
Since I'm not familiar with Mt5 (which likely doesn't support the Start() command) and my question is here in the Mt4 forum, this also suggests an "Mt4.5" context in compatibility. I also don't use the newer template provisions which I'm sure would be intending to encourage Mt5 migration and a more rigid learning path.
The bottom line appears to identify Mt5 as supporting stateless design I would think points toward Object Oriented methods. These cross compatibilities appear to ease differences for Mt4 coders fumbling up to Mt5 methods and greater concepts of more virtual design versus the "stateful" event trap. The flexibility in Mt5 seems to become nearly endless but perhaps forces a greater reliance on state machine at the designer's hands inside the greater flexibility which might even lend well to UML design and very high-end potential Mt4 has wanted for.
I'm making some reaching assumptions but for those of us grappling with the changes to Mt5 outside of good academic training, making the transition without the benefit of more formal learning is a real pit for wanting to avoid building on poorly written code, if we can understand the newer concepts better. The Mt4.5 after all has become a "forced" initiative by MQ, so those of us not familiar with Mt5 have our hands full keeping forward code maintenance with learning better design integrity nearly overnight. This is where any secondary help file system really cannot provide a novice with much better than we have currently, except by greater discussion and if not for the compatibility of crossover options like OnTick() being permitted along side of Start() in Mt4.5 as a "bridge" to Mt5. It otherwise defines the "leap" to Mt5 which has been thwarting MQ from bringing Mt4 coders forward to Mt5 as they must. Painful as that may be for some of us, the potential benefits outweigh the struggle, if one intends to stay relevant as methods progress.
Owing to the frustration the build 600+ (Mt4.5) migration has been, the initiative MQ has undertaken is one of the most involved I've personally seen in any compiler overhaul and language upgrade. The Mt4.5 stage of this represents a huge afterthought with significant engineering thrust by MQ, still working out bugs even now. I'm sure some if not many might disagree but realistically Mt5 had to mature to a certain point before Mt4 end of life migration could be made a requirement supporting mass transition. Fuller understanding of this need (and the benefit for those of us confronted by new learning) couldn't be more important to help novices understand and justify the need to "just bite the bullet and go back to the work required to learn it" (and risk asking dumb questions in the open like the OnTick() command you've helped clarify).
Not so much a rant, but hopefully to encourage others beyond simply "RTFM" and to realize it is a transitional process not always having obvious context in reference, needing further clarification for those learning.
Thanks once more and feel free to correct my assumptions if appropriate or the thread can end. Simple (or stupid) as it was, you've helped me understand better why the question of OnTick() occurred and why the answers are not always obvious, since the forced migration has literally kept me too busy to learn Mt5 properly, frustrating almost like a paradox. Yes, I should have followed Mt5 sooner, like many. Maybe it helps others now stuck learning in similar ways too. It's a good thing we have those more experienced with patience, willing to help answer the sometimes "less than obvious" dumb questions on the way to Mt5. :)
Not to hijack your thread, but the main reason why nobody cares for MT5 and thus very low adoption was the fact that the language was not backward compatible at all with existing MT4 code. You pretty much had to re-write. Secondly, MT5 enforces the most stupid of rules used in only one country that I am aware of - the no hedging rule. You cannot hedge with MT5. This pretty much broke trading for everybody in the world except those in the US.
And I am not interested in going into a discussion about hedging except to say that I run multiple strategies on the same account. Some longterm, some shortterm. So I must be able to hedge and to control my margin effectively. If I cannot hedge, I need to run multiple accounts and thus require much more capital. Thankfully I am not in the US and will also never use MT5.
Hopefully now that MT5 is being backported to MT4, MT5 will eventually die and they can focus their efforts on a single codebase for a more stable environment.
Added new char, short, long, uchar, ushort, uint, ulong and double
data types. This will allow transferring codes from other C++ like
languages. Data of various types is processed at different rates.
Integer data is the fastest one to be processed. A special co-processor
is used to handle the double-precision data. However, due to the
complexity of the internal representation of floating-point data, it is
processed slower than integer one. Typecasting has also been implemented.
Strings are now presented in
Unicode format, though they were in ANSI format (single byte ones)
before. That should be considered if the program uses DLLs and passes
string variables to them.
variable is now of long type. The time series for accessing the volumes
also consist of long type arrays. It is recommended to use explicit
casting of data having this type to the target type in old MQL4 programs
to avoid type overflow error.
Structures and classes, object pointers, void type and this
key word allowing an object to receive a reference to itself have been
added. All object-oriented programming standards are supported:
ООP allows developing programs
using classes. This facilitates debugging and development of large
applications, as well as provides ability to reuse previously generated
code multiple times due to inheritance. However, that does not mean that
you cannot generate your MQL4 code in procedure-oriented style as
before. You can develop your programs as you did in the past if you
don't need the new features.
init(), deinit() and start() predefined functions have remained for compatibility, however, OnInit(), OnDeinit(), OnStart(), OnCalculate() and OnTick() ones can now be used instead. Besides, new predefined OnTimer(), OnChartEvent() and OnTester()
handler functions have been implemented. In the previous MQL4,
predefined functions could have any parameters and any return type, and
they could be called by their names, not signatures. In the new MQL4,
all predefined functions should strictly correspond to their signatures.
In other words, they should have precisely defined set of parameters
and return type.
WHRoeder 2014.10.16 14:59 #
I gave you the link why couldn't you read it?
Mmmm, apparently because I had already exhausted the local help files in frustration and already moved into the OnTick() help description on that link before I searched for "Compatibility", being over-focused on the single function of interest rather than the overall. I was then AGAIN returning to the same process on your reference and shot past the first link, to the OnTick() reference redundantly, search fail. To that extent the adage RTFM applies toward being more thorough, right? Sorry. (blush) I've spent a lot of time hammering help files and Google in recent weeks which has created a negative habit of glancing into drill down, which in this case worked against the goal. This underscores the extent of frustration of dealing with relatively wide compiler changes amid bringing existing, running code forward in a live setting compounded by the compulsory nature of this transitional Mt4 change. Reminiscent of past Perl updates fighting with backward compatibility. Most of what I'm dealing with are stateful issues of real-time tick mode processing which is a tedious issue typically in playback mode as is, when scope issues begin to show up while trying to improve the application along with updating where possible to better structure.The sun was in my eyes. I had the flu that day. Yeah, that's it. :/ I'm probably not the only one that will benefit from this incursion through this mud puddle having fairly beat this horse to death [SOLVED], so best I can say for my oversight is "Point taken.", Thank you for bringing it home, RTFM THOROUGHLY. :)MTC
Mmmm, apparently because I had already exhausted the local help files in frustration and already moved into the OnTick() help description on that link before I searched for "Compatibility", being over-focused on the single function of interest rather than the overall. I was then AGAIN returning to the same process on your reference and shot past the first link, to the OnTick() reference redundantly, search fail. To that extent the adage RTFM applies toward being more thorough, right? Sorry. (blush) I've spent a lot of time hammering help files and Google in recent weeks which has created a negative habit of glancing into drill down, which in this case worked against the goal. This underscores the extent of frustration of dealing with relatively wide compiler changes amid bringing existing, running code forward in a live setting compounded by the compulsory nature of this transitional Mt4 change. Reminiscent of past Perl updates fighting with backward compatibility. Most of what I'm dealing with are stateful issues of real-time tick mode processing which is a tedious issue typically in playback mode as is, when scope issues begin to show up while trying to improve the application along with updating where possible to better structure.
The sun was in my eyes. I had the flu that day. Yeah, that's it. :/
I'm probably not the only one that will benefit from this incursion through this mud puddle having fairly beat this horse to death [SOLVED], so best I can say for my oversight is "Point taken.", Thank you for bringing it home, RTFM THOROUGHLY. :)