Minimum Percent % Change From Open Alert


0
0

Good morning! I am currently day trading options & would love some help setting up a custom ‘Study Alert’

I would like to set up an alert that signals when:

The current market price of a particular option contract is greater than or equal to a minimum of 23% of the opening price. As simple as it sounds, so far I have been unsuccessful. Any tips, pointers or help would be greatly appreciated!

Thank you so much!

Araik

Marked as spam
Posted by (Questions: 1, Answers: 0)
Asked on September 12, 2019 9:38 am
237 views
0
Unless you are trading options on QQQ or SPY there is probably not enough trading activity to make this work. Give me an OPRA code of this "particular options contract" that you want to apply this to.
( at September 12, 2019 11:15 am)
0
Hey Pete, thanks for the prompt reply. Let's look at the ROKU 147 CALLs expiring 9/20/19 (.ROKU190920C147) for today, 09/16. The option opened at 4.50 and has a current high of 8.00 as of 8:33AM Pacific Time. As you can see, there is plenty of trading activity or range.
( at September 16, 2019 8:36 am)
0
Private answer

After getting some details, here is the code. Screenshot below shows this applied to a Study Alert.

def dailyOpen = open(period = AggregationPeriod.DAY);
plot scan = close > dailyOpen * 1.23;

Attachments:
Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on September 16, 2019 8:50 am
0
Awesome! I have another quick question: What is the * 1.23 for at the end of the script? Can this script be applied to any option contract or is it specific to this ROKU contract?
( at September 16, 2019 10:20 am)
0
The * 1.23 is how we get to 23% above the open. The code will work on any ticker symbol that has sufficient trading activity.
( at September 16, 2019 11:13 am)