|
|
Basic
Option Graph Step 5
Add
Controls to the Last Panel

Use the Toolbox to add three new Controls to the Panel with the two
Find buttons, and set the Properties as shown. Also, change the Text
and Size Properties on the two existing Find Buttons and move them to
the Locations shown.
|
CONTROL
|
NAME
|
LOCATION
|
SIZE
|
READONLY
|
TEXT
|
BACKCOLOR
|
|
TextBox
|
EntryValue
|
619,6
|
89,20
|
True
|
|
|
|
Label
|
|
549,10
|
|
|
Entry Value
|
|
|
Button
|
B_CopyLeg1
|
3,5
|
96,23
|
|
Copy Leg1 to All
|
Cyan
|
| |
B_FindPrice
|
295,6
|
124,20
|
|
Find Price and Graph
|
|
| |
B_FindIV
|
425,6
|
114,20
|
|
Find IV and Graph
|
|
Later, we will add code to handle the "Copy Leg1 to All"
button that will make it much easier to set up multi-leg strategies.
After you set Leg1 to the number of contracts, stock price, strike price,
expiration date, and IV, pressing the Copy button will copy all the
Leg1 entries to the other legs, so all you need to do for the additional
legs is change a few entries instead of entering all new information
for each leg.
Save your Project.
|