I am still not following what you are trying to do. Perhaps this will fill part of the solution. This allows you to specify your lookback period...
Something like this? def todaysopen=open(period=aggregationPeriod.DAY); I am assuming you are using intra-day, which would normally infer the...
[ATTACH]
I don't understand what you mean by "But I would like to plot the last value on the intraday chart and ignore today's value."! You seem to be...
No! Not in any friendly way! However, you "may?" find that it can be useful "as is" for many trading ideas, with it's "P/L Graph" negating the...
Ah, so primarily for educational purposes! If you have access to TOS, it contains many features that may be very appropriate! It has thinkBack...
Regarding "unrealistic bid/ask pricing"... Since the option market is not active, there is no requirement for a BID or ASK (of the option) price...
Reading option chains after close is subjected to unrealistic BID/ASK pricing. caveat emptor If you have large positions on, you may consider...
Tongue in cheek (kinda): 1) Note that "expectancy" is dynamic (with respect to the market) and can go negative for an extended period of time,...
When did you open your position on those 2 contracts? If today, then you should note that the OpenInterest data is updated after market closes!
For Quick and dirty, just use position Delta. Am guessing this is "dirty-er" than you would like? Q&DPnL:=PnL+(positionDelta*(change in SPOT));
Please keep us (me) informed of your experience with this. Is this a "set and forget" trade, or would you have exit target prices and possible...
Something seems off with the example posted. The referenced test date is 3/7/2021, which is a Sunday (non trading day) -- Why use invalid data?...
Thnx for the post. Interesting. I have not had time to digest, but my initial thoughts (likely premature): (1) Since the option volume on...
You should risk no more than you will be comfortable with risking! Perhaps not very helpful, but may be correct. ;-) (Investing VS Trading should...
What strike and which series? I see activity, but you have not disclosed which PUT option you claim to hold. Are you trying to sell a different...
You may place limit order for just under the current ask, wait a couple minutes, then reduce by a small increment until you are near/at intrinsic...
Your error is you selected improper setting in TOS. Better to select "Spread:" as single, then construct the spread you actually want, else...
The lack of liquidity on KBE options make drawing conclusions from the IIV problematic. Friday, about 800 options total across all expirations and...
It would help if your "this" were more well defined! You say you wish to short, but also say you do not wish to short the stock outright. When...
Separate names with a comma.