Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Recently i've made this script but i'd like to put some condition on it.
1: i want it to show horzontal line only if the gap criteria. ( is above 10% or 30% for example).
def a = Open(period = AggregationPeriod.DAY);
def b = 1.2;
def c = 1.3;
plot push1 = a * b;
plot push2 = a * c;
If gaps interest you, try this on a daily chart. It marks every gap greater than a percentage, and determines if it closed the gap or went higher. For this study, I used the previous high to find the gaps rather than previous close. It also aggregates the results of the chart in the label. Not sure if there's any edge here, but may be useful if you are studying gaps.