- ago
Hi,
My current WL6 scheme used ^SPX to generate signals to trade SPY options.
(The trading piece was C# code that directly interacted with TD Ameritrade)
To do the same with WL8, I was hoping to do the following:
Transaction transaction = PlaceTrade(bars, TransactionType.Buy, OrderType.Market);
transaction. Quantity = 10;
transaction.SecurityName = "SPY"; (or SPY option name)
returns SecurityName is read only.
Can you please indicate how I can implement this?
Thanks!
0
159
Solved
3 Replies

Reply

Bookmark

Sort
- ago
#1
Added information: trading at-the-money options.
So, the option name is calculated on the spot at time of buy.
0
- ago
#2
There's a Tag property associated with the Transaction and Position objects that you can assign.
CODE:
   Transaction t = PlaceTrade(bars, TransactionType.Buy, OrderType.Stop, bars.Close[bar] + atr22[bar]*0.14, "Voss Money Flow buy");    t.Tag="Hello world";
But understand you can assign the reference (i.e. pointer) of any object to the Tag property. So if you declare a "struct" of data, you can now assign its reference to the Tag property and access the individual data elements of that structure.
0
- ago
#3
The answers are in the options blog. Sorry for the confusion.
Please consider this closed.
2
Best Answer

Reply

Bookmark

Sort