Document:

<PAGE>
                                                                    EXHIBIT 10.5

                            TRADESTATION GROUP, INC.

                              AMENDED AND RESTATED
                     NONEMPLOYEE DIRECTOR STOCK OPTION PLAN

         1. PURPOSE. The purpose of the Plan is to attract and retain
outstanding individuals to serve as members of the Board of Directors of
TradeStation Group, Inc. (the "Company") by providing such persons opportunities
to acquire common stock, $.01 par value, of the Company ("Common Shares"),
thereby strengthening the mutuality of interest between such persons and the
Company's shareholders.

         2. SHARES RESERVED UNDER THE PLAN. There is hereby reserved for
issuance under the Plan an aggregate of Three Hundred Fifty Thousand (350,000)
Common Shares, which shall be authorized but unissued shares, reduced by an
aggregate amount of shares of common stock, $.01 par value, of Omega Research,
Inc., the predecessor of the Company ("Omega Research"), issued by Omega
Research prior to December 29, 2000 pursuant to the exercise of options granted
under the Plan. If there is a lapse, expiration, termination or cancellation of
any option granted under the Plan by the Company or Omega Research, all unissued
shares subject to or reserved for such option may again be used for new options
granted under the Plan.

         3. PARTICIPATION. Participation in the Plan is limited to members of
the Board of Directors who are not salaried officers or employees of the Company
or any of its direct or indirect subsidiaries (a "Nonemployee Director" or
"Participant").

         4. OPTIONS TO BE GRANTED UNDER THE PLAN. Effective on or about the date
of a Nonemployee Director's initial election to the Board of Directors (which
initial election shall be deemed to have occurred when elected by the Board of
Directors of either the Company, Omega Research or onlinetradinginc.com corp.),
each Nonemployee Director may be awarded nonqualified stock options to purchase
up to a maximum of Seventy-Five Thousand (75,000) Common Shares (the "Initial
Option"). The actual number of stock options awarded to each Nonemployee
Director comprising the Initial Option shall be determined by the Board of
Directors as it deems necessary or advisable and in the best interests of the
Company in order to attract and obtain outstanding and highly qualified
candidates to serve on the Company's Board of Directors. Upon each re-election
of such Nonemployee Director to the Board of Directors at the Company's annual
meeting of shareholders ("Annual Meeting") commencing with the Annual Meeting
held on June 18, 2001, each Nonemployee Director shall automatically be awarded
an additional nonqualified stock option (the "Additional Option") to purchase
Seven Thousand (7,000) Common Shares, provided, however, that a Nonemployee
Director shall not be granted such Additional Option upon such re-election if
such Nonemployee Director was granted an Initial Option in the immediately
preceding twelve (12)-month period upon his or her initial election to the Board
of Directors in accordance with this Section 4. The Company is authorized to
provide the Participant with a stock option agreement consistent with the terms
of the Plan.

         5. OPTION EXERCISE PRICE. Each option granted under the Plan shall be
exercisable at an option price equal to 100% of the Fair Market Value (as
defined in Section 10 hereof) of the Common Shares on the date of grant
hereunder.

<PAGE>

         6. LIMITATIONS ON EXERCISE. Any option granted under the Plan may be
exercised (in accordance with Section 7 hereof) in whole or in part, from time
to time after the date granted, subject to the following limitations:

                  (a) No option granted hereunder may be exercised during the
first year following the date such option was granted. Thereafter, each option
may be exercised:

                           (i) to a maximum cumulative extent of one-third (1/3)
         of the total shares covered by the option on or after the first
         anniversary of the date the option was granted;

                           (ii) to a maximum cumulative extent of two-thirds
         (2/3) of the total shares covered by the option on or after the second
         anniversary of the date the option was granted; and

                           (iii) to a maximum cumulative extent of 100% of the
         total shares covered by the option on or after the third anniversary of
         the date the option was granted.

                  (b) Notwithstanding the limitations of Section 6(a) above, any
option granted under the Plan shall become fully exercisable upon the death of
the Nonemployee Director while serving on the Board of Directors or upon the
Retirement (as hereinafter defined in this Section 6(b)) of the Nonemployee
Director if such death or Retirement occurs on or after the first anniversary of
the date such option was issued. For these purposes, "Retirement" means a
Nonemployee Director's termination of service as a member of the Board of
Directors after age 70 or at any time with the consent of the Board of
Directors. Further, notwithstanding the limitations of Section 6(a) above, any
option granted under the Plan shall become fully exercisable upon a Change in
Control or a Sale of the Company. For these purposes, a "Change in Control"
shall be deemed to have occurred on the date that (a) William Cruz (counting for
these purposes all Common Shares owned by any of his affiliates) and Ralph Cruz
(counting for these purposes all Common Shares owned by any of his affiliates),
in the aggregate own less than 25% (or less than 51% if the Company is not
public) of the issued and outstanding Common Shares, (b) William Cruz (counting
for these purposes all Common Shares owned by any of his affiliates) and Ralph
Cruz (counting for these purposes all Common Shares owned by any of his
affiliates), viewing all of the foregoing as one stockholder, is not the
stockholder of the Company owning the highest number of issued and outstanding
Common Shares, or (c) neither William Cruz nor Ralph Cruz occupies the position
of Chairman of the Board, Co-Chairman of the Board, Chief Executive Officer,
Co-Chief Executive Officer or President of the Company. For these purposes, a
"Sale of the Company" means any transaction pursuant to which all or
substantially all of the business or operations of the Company are directly or
indirectly sold, assigned or transferred to an arms-length purchaser through the
sale, exchange or other transfer, by purchase, merger or otherwise, of the
assets or equity of the Company.

                  (c) Any option granted under the Plan shall not be exercised
after the earliest to occur of any of the following events:

                           (i) more than ninety (90) days after termination of
         any Nonemployee Director's service as a member of the Board of
         Directors for any reason other than death or Retirement (and then only

                                       2
<PAGE>

         to the extent that such Nonemployee Director could have exercised such
         option on the date of termination);

                           (ii) more than one hundred eighty (180) days after a
         Nonemployee Director's Retirement from the Board of Directors (and then
         only to the extent that such Nonemployee Director could have exercised
         such option on the date of Retirement, after giving effect to Section
         6(b) above);

                           (iii) more than twelve (12) months after death of a
         Nonemployee Director (and then only to the extent that such Nonemployee
         Director could have exercised such option on the date of death, after
         giving effect to Section 6(b) above); or

                           (iv) more than ten (10) years from the date the
         option is granted.

         7. METHOD AND TIME OF EXERCISE: DELIVERY OF CERTIFICATES. Any option
granted under the Plan shall be deemed exercised on the date written notice of
exercise is received by the Secretary of the Company at the Company's corporate
headquarters. Such notice shall be accompanied by: (a) a check payable to the
Company for the purchase price of the shares to be purchased; or (b) delivery of
Common Shares owned by the Participant for at least six (6) months whose Fair
Market Value on the date of exercise equals the purchase price of the shares to
be purchased; or (c) any combination of the foregoing.

         8. NONTRANSFERABILITY. Any option granted under this Plan shall not be
transferable other than as required by law or by will or the laws of descent and
distribution, and shall be exercisable, during the Participant's lifetime, only
by the Participant or the Participant's guardian or legal representative. If a
Nonemployee Director dies during the option period, any option granted to such
Participant may be exercised by his estate or the person to whom the option
passes by will or the laws of descent and distribution, but only in accordance
with Section 6 above. Notwithstanding the foregoing, an option shall
automatically become transferable to the Participant's "immediate family
members" or trusts or family partnerships for the benefit of such persons. For
purposes of this Section 8, "immediate family members" shall mean the
Participant's spouse and lineal descendants.

         9. OTHER PROVISIONS; SECURITIES REGISTRATION. The grant of any option
under the Plan may also be subject to other provisions as counsel to the Company
deems appropriate, including, without limitation, such provisions as may be
appropriate to comply with federal or state securities laws and stock listing
requirements.

         10. DEFINITION OF FAIR MARKET VALUE. The term "Fair Market Value" shall
mean, as of any date, the mean between the highest and lowest sale prices of the
Common Shares as reported on The Nasdaq National Market (or such other
consolidated transaction reporting system on which such Common Shares are
primarily traded) on the date immediately preceding the date of grant (or
exercise where applicable), or if such Common Shares were not traded on such
day, then the next preceding day on which the shares were traded, all as
reported by such source as the Board of Directors may determine.

         11. ADJUSTMENT PROVISIONS. If the Company shall at any time change the
number of issued Common Shares without new consideration to the Company (such as
by stock dividend or stock split), the total number of shares reserved for
issuance under the Plan and the number of shares covered by each outstanding

                                       3
<PAGE>

option and the exercise price thereunder shall be automatically adjusted so that
the aggregate consideration payable to the Company and the value of each option
shall not be changed. If, during the term of any option granted under the Plan,
the Common Shares shall be changed into another kind of stock, securities, cash
or other property, whether as a result of reorganization, sale, merger,
consolidation, or other similar transaction, the Board of Directors shall cause
adequate provision to be made whereby all Participants shall thereafter be
entitled to receive, upon the due exercise of any outstanding options, the
stock, securities, cash or other property such Participants would have been
entitled to receive immediately prior to the effective date of any such
transaction for Common Shares which could have been acquired through the
exercise of such options.

         12. AMENDMENT OR DISCONTINUATION OF PLAN. The Board of Directors may
amend the Plan at any time or suspend or discontinue the Plan at any time, but
no such action shall adversely affect any outstanding option.

         13. GOVERNING LAW. The Plan and any options granted hereunder shall be
governed and construed in accordance with the laws of the State of Florida
(regardless of the law that might otherwise govern under applicable Florida
principles of conflicts of laws).

         14. SHAREHOLDER APPROVAL. The Plan was originally adopted by the Board
of Directors of Omega Research and approved by the shareholders of Omega
Research on July 24, 1997. On January 2, 1998, Omega Research's Board of
Directors amended the Plan to increase the number of options that may be awarded
to such individuals upon their initial election to the Board of Directors. The
Plan was then assumed as of December 29, 2000 by the Company pursuant to the
Agreement and Plan of Merger and Reorganization dated as of January 19, 2000
among Omega Research, onlinetradinginc.com corp., the Company, Omega Acquisition
Corporation and Onlinetrading Acquisition Corporation, and, in connection
therewith, the Plan was further amended by the Company's Board of Directors on
December 22, 2000 to be effective as of December 29, 2000 (the effective time of
the merger pursuant to the foregoing Plan of Merger and Reorganization (the
"Effective Time")), to reflect, among other things, the Company's assumption of
the Plan as of the Effective Time and to provide that all shares issuable after
the Effective Time upon exercise of any options granted under the Plan will be
shares of $.01 par value common stock of the Company. The Plan in such amended
form was approved by the Company's shareholders on December 22, 2000, to be
effective as of the Effective Time. On May 17, 2001, the Company's Board of
Directors approved an amendment to the Plan, subject to the approval of the
Company's shareholders, to increase the number of Common Shares reserved for
issuance under the Plan from 175,000 to 350,000 and to increase the number of
Common Shares included in the options automatically granted to a nonemployee
director upon each annual reelection from 3,000 to 7,000. Such amendment was
approved by the Company's shareholders on June 18, 2001. The Plan was
subsequently amended by the Company's Board of Directors, effective as of
January 30, 2002, to clarify that the options granted under the Plan will become
fully exercisable upon a Change in Control or a Sale of the Company.
Accordingly, the Plan represents the original 1997 Nonemployee Director Stock
Option Plan as restated and amended through January 30, 2002.

                                       4<PAGE>
                                                                 EXHIBIT 10.19

                               SEVERANCE AGREEMENT

         AGREEMENT, dated and effective as of July 20, 2001 ("Agreement"),
between TRADESTATION GROUP, INC., a Florida corporation ("TSGroup"), and FARSHID
TAFAZZOLI ("Departing Person").

                              PRELIMINARY STATEMENT

         From December 29, 2000 through July 20, 2001, Departing Person has
served as an employee, officer and director of TSGroup and/or one or more of its
subsidiaries (the Company and its subsidiaries are hereinafter collectively
referred to as "Company") in the positions of: Vice President of Brokerage
Technology of TSGroup; director of TSGroup; Chief Information Officer of
TradeStation Securities, Inc.; and director of TradeStation Securities, Inc. In
connection with the termination of Departing Person's employment with Company,
Departing Person and Company have agreed to create certain rights and
obligations as set forth in this Agreement. The purpose of this Agreement is to
support an amicable termination of the employment and agency relationships
between the parties, for the mutual benefit of all parties, and to settle any
and all disputes the parties have concerning to what payments Departing Person
is entitled as a result of termination of such employment and agency
relationships.

         NOW, THEREFORE, in consideration of the foregoing, and the
consideration exchanged by the parties in, by and through this Agreement, the
receipt and sufficiency of which are conclusively acknowledged by each party,
the parties agree as follows:

         1. PRELIMINARY STATEMENT. Each party represents and warrants to the
other that the Preliminary Statement is correct and accurate.

         2. RESIGNATIONS. Departing Person hereby voluntarily resigns as a
director and as Vice President of Brokerage Technology of TSGroup, and hereby
voluntarily resigns as a director and as Chief Information Officer of its
subsidiary, TradeStation Securities, Inc., and from any and all other employment
and agency relationships with Company. The Forms U5 filed in connection with
such resignations shall reflect that the resignations are voluntary, and
Departing Person shall, in connection with the foregoing resignations, execute,
file and/or deliver all such forms and documents as are required by applicable
law or regulations or otherwise appropriate or reasonably requested by Company.
In connection with such resignations, Departing Person shall promptly return to
Company all property and materials of Company of any kind and nature, tangible
or intangible, in Departing Person's possession or under his control.

         3. SEVERANCE PAY. In lieu of all payments, sums, amounts and other
compensation to which Departing Person may be entitled under Departing Person's
employment agreement with TSGroup or any other agreement or arrangement with
Company: (a) Company shall continue to pay Departing Person his base salary (at
the rate of $200,000 per annum) through December 29, 2002 (such payments shall
be made in the same manner and at the same times, and subject to the same
withholding procedures and practices, as the payments of his base salary prior
to his termination of employment); (b) TSGroup shall pay Departing Person the
sum of $50,000 within three (3) business days of the date of this Agreement

<PAGE>

(subject to normal withholding procedures and practices); (c) assuming Departing
Person exercises his COBRA rights, TradeStation Securities, Inc. shall pay the
basic premium, solely for Departing Person (and not for any dependents and not
for any additional or premium benefits) through December 2002; and (d) Departing
Person shall be entitled to keep his Company portable telephone and telephone
number through December 2001 (but shall pay all usage charges). The Company and
Departing Person shall make arrangements for Departing Person to receive on
CD-ROM copies of any personal files on Departing Person's Company personal
computer.

         4. RELEASE. Simultaneously with the execution and delivery of this
Agreement, Departing Person shall execute and deliver to Company the General
Release of All Claims, a copy of which is attached as Exhibit "A," and shall
comply with and observe all terms and conditions of such General Release of All
Claims, it being understood and agreed that the execution, delivery, performance
and observance by Departing Person of the General Release of All Claims is a
material inducement to TSGroup entering into this Agreement. TSGroup represents
and warrants to Departing Person that, based solely on the actual knowledge on
the date hereof of the executive management of TSGroup, there are no facts
relating to Departing Person's acts, omissions or conduct as an officer,
director or employee of Company that shall serve as the basis for any claim of
any kind by Company against Departing Person.

         5. CONFIDENTIALITY. Company and Departing Person agree that the
existence and terms of this Agreement are strictly confidential and neither
party shall disclose or disseminate any information concerning any term of this
Agreement except as necessary or appropriate to comply with applicable laws,
rules, regulations, court or administrative orders and the like, and except that
each party, as appropriate, may make disclosure to its or his legal or tax
advisors.

         6. GOVERNING LAW; VENUE. This Agreement shall be governed by and
construed and enforced in accordance with the laws of the State of Florida, both
substantive and remedial. Each of Company and Departing Person agrees that this
Agreement and any controversies of any nature whatsoever arising under or
relating to this Agreement shall be subject to the exclusive jurisdiction of the
courts of Miami-Dade County, Florida, and Miami-Dade County, Florida shall be
the exclusive jurisdiction and venue for any disputes, actions or lawsuits
arising out of or relating to this Agreement or the matters contemplated hereby.
The parties to this Agreement irrevocably waive, to the fullest extent permitted
by law, any objection which they may now or hereafter have to the laying of
venue of any suit, action or proceeding arising out of or relating to this
Agreement, or any judgment entered by any court in respect thereof, in
Miami-Dade County, Florida, and further irrevocably waive any claim that any
suit, action or proceeding brought in Miami-Dade County, Florida has been
brought in an inconvenient forum.

         7. ENTIRE AGREEMENT. This Agreement (together with the General Release
of All Claims) represents the entire understanding and agreement between the
parties hereto with respect to the subject matter hereof and there are no
promises, agreements, conditions, undertakings, warranties or representations,
whether written or oral, express or implied, between the parties other than as
set forth herein. Except as otherwise expressly set forth in this Agreement or
the General Release of All Claims, and except for the Indemnity Agreement
between TSGroup and Departing Person and any indemnification rights that may
exist under TSGroup's bylaws or Florida law, this Agreement supersedes and
replaces any and all other agreements of any kind or nature between Departing

                                       2
<PAGE>

Person and TSGroup that relate in any way to the performance of, or failure to
perform, duties of Departing Person for Company and the parties' respective
rights and obligations with respect to matters that arise therefrom. This
Agreement cannot be amended, supplemented or modified except by an instrument in
writing signed by the parties against whom enforcement of such amendment,
supplement or modification is sought.

         IN WITNESS WHEREOF, the parties have executed and delivered this
Agreement as of the date first above written.

                              TRADESTATION GROUP, INC., a Florida corporation

                              By:      /s/ MARC J. STONE
                                 -----------------------------------------
                                    Name:       MARC J. STONE
                                         ---------------------------------
                                    Title:      VICE PRESIDENT
                                          --------------------------------

                              By:      /s/ FARSHID TAFAZZOLI
                                 -----------------------------------------
                                           FARSHID TAFAZZOLI

                                       3

Source: [{"source": "alea-institute/alea-institute/kl3m-data-edgar-agreements/train-00034-of-00352.parquet"}, [{"source": "alea-institute/alea-institute/kl3m-data-edgar-agreements/train-00034-of-00352.parquet"}]]