NexusFi: Find Your Edge


Home Menu

 





Poor High / Poor Low thinkscript?


Discussion in ThinkOrSwim

Updated
    1. trending_up 2,608 views
    2. thumb_up 1 thanks given
    3. group 4 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread

Poor High / Poor Low thinkscript?

  #1 (permalink)
mrmitch
San Francisco+CA
 
Posts: 4 since Jan 2019
Thanks Given: 0
Thanks Received: 3

Hi All!

I can't believe this is so hard to find, but I'm looking for a thinkscript that will show me poor highs and lows when they occur in the current session, either RTH or Overnight. Anybody have something that does this?

FYI, poor high being defined as a high that is not at least 2 ticks higher than the previous high on 30 minute candles. Poor low is the converse.

Anybody got something on this?

I'm tired of banging my head against the wall.

THANK YOU!

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Quantum physics & Trading dynamics
The Elite Circle
REcommedations for programming help
Sierra Chart
Better Renko Gaps
The Elite Circle
What broker to use for trading palladium futures
Commodities
ZombieSqueeze
Platforms and Indicators
 
  #2 (permalink)
VanDriver
Jackson, MS
 
Posts: 34 since Dec 2015
Thanks Given: 1
Thanks Received: 5

This would be an advanced thinkscript which is why you’re not easily finding it. You’re dealing with defining the high/low, time aggregate, and then price within a variable of those two. It can be done but it’s many lines of script. I suggest you ask one the folks in the thinkscript lounge on the TOS platform.

Reply With Quote
  #3 (permalink)
 JayC 
San Diego, CA
 
Experience: Beginner
Platform: TOS, Sierra
Trading: Emini ES, Crude CL
Posts: 55 since Mar 2019
Thanks Given: 9
Thanks Received: 43


I've taken a shot at a poor high low script, based on your description and my basic understanding of the concept. I created a plus/minus band around the daily high and lows and kept count each time it tagged it on the day. Poor low/highs are marked for any point where the counts are greater than 1, and reset at the specified time. I've set the reset time to 6pm est. Drop this study onto a 30min chart.

NOTE: This is obviously a work in progress, so do your own testing and use caution.

V1
https://tos.mx/5FC1LRG

V2 - small adjustment made to the bands, since the upper/lower offsets were unnecessary.
https://tos.mx/60PGlU0


JayC

Reply With Quote
  #4 (permalink)
mrmitch
San Francisco+CA
 
Posts: 4 since Jan 2019
Thanks Given: 0
Thanks Received: 3

At first glance, this is perfect!

I'll play for a while and update here.

THANK YOU!

Reply With Quote
  #5 (permalink)
mrmitch
San Francisco+CA
 
Posts: 4 since Jan 2019
Thanks Given: 0
Thanks Received: 3

So here's a funny ... I'm trying to build a poor high/low script in Sierra Chart and struggling with it. So I have this great idea - I'll look for a TOS script and translate it. So I search google and find this thread. Then I see that I started this thread and received a response. Thank you Jay! And then to my thorough embarrassment, I realize that I promised to come back with a review the the work that Jay did. And I failed to do so. From three years ago! Nice manners there, MrMitch.

I modified it to my needs - here is the updated version.

I should make note that this doesn't actually the work the way I'd expect and thus I've not been using it. But I wanted to extend thanks all the same.


input bandTicks = 2;
input drawStartLine = Yes;

def dailyHigh = high(period = "DAY");
def dailyLow = low(period = "DAY");

input Start_Time = 0630;
def StartTime = SecondsFromTime(Start_Time) == 0;

AddVerticalLine(StartTime,"Start_Time = " + Start_Time, Color.GREEN, Curve.SHORT_DASH);



def bandOffset = TickSize() * bandTicks;

plot highUpperBand = dailyHigh;
plot highLowerBand = dailyHigh - bandOffset;
highUpperBand.setDefaultColor(Color.UPTICK);
highLowerBand.setDefaultColor(Color.UPTICK);

plot lowUpperBand = dailyLow + bandOffset;
plot lowLowerBand = dailyLow;
lowUpperBand.setDefaultColor(Color.DOWNTICK);
lowLowerBand.setDefaultColor(Color.DOWNTICK);

def insideHighBand = high >= highLowerBand && high <= highUpperBand;
def insideLowBand = low >= lowLowerBand && low <= lowUpperBand;

def highCount = if StartTime then 0 else if insideHighBand then highCount[1] + 1 else highCount[1];
AddChartBubble(insideHighBand && highCount > 1, high, "Poor High at : " +highUpperBand, Color.YELLOW, yes);

def lowCount = if StartTime then 0 else if insideLowBand then lowCount[1] + 1 else lowCount[1];
AddChartBubble(insideLowBand && lowCount > 1, low, "Poor Low at : " + lowLowerBand, Color.YELLOW, No);

Reply With Quote
Thanked by:




Last Updated on May 9, 2022


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts