High/Low horizontal line of n bars - futures io
futures io



High/Low horizontal line of n bars


Discussion in Sierra Chart

Updated
      Top Posters
    1. looks_one EdgeOfChaos with 4 posts (0 thanks)
    2. looks_two mkata with 2 posts (1 thanks)
    3. looks_3 tomgilb with 1 posts (3 thanks)
    4. looks_4 jdrower with 1 posts (0 thanks)
    1. trending_up 1,274 views
    2. thumb_up 4 thanks given
    3. group 4 followers
    1. forum 8 posts
    2. attach_file 2 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • 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 and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

High/Low horizontal line of n bars

(login for full post details)
  #1 (permalink)
EdgeOfChaos
Paris/France
 
 
Posts: 14 since Feb 2017
Thanks: 4 given, 0 received

Hello all,
Is it possible, with one of the standard studies, to draw an horizontal line to the high and one to the low of n bars and once those n bars are reach, the level created remain through the day.
I've tried doing it with the "Highest High/Lowest Low Over N Bars" study but, as expected, the lines keep moving throughout the day as the line are redrawn after each 5 new bars...
Cheers.

Reply With Quote

Journal Challenge April 2021 results (now extended!):
Competing for $1800 in prizes from Jigsaw
looks_oneMaking a Living with the Microsby sstheo
(183 thanks from 22 posts)
looks_twoSalao's Journalby Salao
(51 thanks from 11 posts)
looks_3Deetee’s DAX Trading Journal (time based)by Deetee
(38 thanks from 18 posts)
looks_4Learning to Profit - A journey in algorithms and optionsby Syntax
(15 thanks from 14 posts)
looks_5Maybe a little bit different journalby Malykubo
(14 thanks from 15 posts)
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Big Mike in Ecuador
76 thanks
The Crude Dude Oil Trading System
64 thanks
Would You Sell Your System?
43 thanks
Help improve the FIO community
36 thanks
futures io site changelog and issues/problem reporting
27 thanks
 
(login for full post details)
  #2 (permalink)
 mkata 
Columbus, OH
 
Experience: Intermediate
Platform: SierraChart
Trading: CL
 
Posts: 34 since May 2013
Thanks: 148 given, 23 received

This request is unclear to me, could you annotate a pic of what you're trying to do. It might clear up my confusion.

Reply With Quote
 
(login for full post details)
  #3 (permalink)
 jdrower 
Alameda, CA
 
Experience: Intermediate
Platform: Sierracharts
Trading: NQ
 
Posts: 45 since Oct 2011
Thanks: 170 given, 30 received


Have you used Highest-Lowest over a specific time frame?

Reply With Quote
 
(login for full post details)
  #4 (permalink)
EdgeOfChaos
Paris/France
 
 
Posts: 14 since Feb 2017
Thanks: 4 given, 0 received

Ok, sorry for the lack of clarity, i'm trying to keep track of the highs and lows of, for instance, the first 10 (range bars) starting at the European open 8h00.
I've joined pictures showing what i'm trying to explain.

The first one is what i'm looking for, At 8h00 the first candle starts (drawing a low in this instance) and ten candles later no more high/low are taken into consideration, keeping the highest high of the ten candles (drawn at the 6th candles) throughout the day.
I can't really use a time specific high/low as i'm using range bars and am trying to get the the high /low of those 10 first range candles starting at a specific time (8h00 in the morning kin this example.)

The second picture is a chart using the "Highest High/Lowest Low Over N Bars" study and is not what i want.

I hope this rather laborious wall of text is making any sense
Cheers

Attached Thumbnails
Click image for larger version

Name:	2017-06-22_09h56_39.png
Views:	109
Size:	9.0 KB
ID:	236354   Click image for larger version

Name:	2017-06-22_09h58_36.png
Views:	88
Size:	10.1 KB
ID:	236355  
Reply With Quote
 
(login for full post details)
  #5 (permalink)
 CenFlo 
Tampa FL
 
Experience: None
Platform: Sierra Charts/TOS
Broker: Future Path/TDA
Trading: Futures/Cryptos
 
CenFlo's Avatar
 
Posts: 639 since Apr 2016
Thanks: 830 given, 958 received

You could try using the High / Low for time period and specify in the study the time to plot the lines based on what time frame of chart you are using.

Edit, just reread the above post and see that using a time frame isn't going to work.

You miss 100% of the shots you don't take. - Wayne Gretsky
Follow me on Twitter Reply With Quote
 
(login for full post details)
  #6 (permalink)
 mkata 
Columbus, OH
 
Experience: Intermediate
Platform: SierraChart
Trading: CL
 
Posts: 34 since May 2013
Thanks: 148 given, 23 received

lol, yes that laborious wall of text made it much more clear, thanks

The only automated way to do what you want is to write an ACSIL program or build the criteria in the SC spreadsheet.

Short of that, you would have to identify the time of bar 10 and manually enter the approximate end time in the High/Low for Time Period - Extended study. This will work perfectly well with range bars too.

Reply With Quote
The following user says Thank You to mkata for this post:
 
(login for full post details)
  #7 (permalink)
EdgeOfChaos
Paris/France
 
 
Posts: 14 since Feb 2017
Thanks: 4 given, 0 received

All right then, looks like i'm going to learn how to properly use the SC spreadsheet function then !! or go the goold old manual way.
Thanks for the reply guys, and thanks to you too mkata for listing me the alternative options.

Reply With Quote
 
(login for full post details)
  #8 (permalink)
 tomgilb 
Nashville TN USA
 
Experience: Advanced
Platform: SierraChart
Broker: Sierra Futures/SC Denali
Trading: NQ ES YM
 
Posts: 431 since Nov 2009
Thanks: 168 given, 534 received


EdgeOfChaos View Post
All right then, looks like i'm going to learn how to properly use the SC spreadsheet function then !! or go the goold old manual way.
Thanks for the reply guys, and thanks to you too mkata for listing me the alternative options.

Here is how to do what you want using the Spreadsheet Study study:

Add the Spreadsheet Study study
1) On the Settings and Inputs tab:
-Set the Chart Region to 1
-Give it a name in the Spreadsheet Name field

2) On the Subgraphs tab:
-Set the subgraph Draw Styles like this:
K (SG1): Ignore
L (SG2): Stair Step
M (SG3): Stair Step
N (SG4): Stair Step
O (SG5): Stair Step
-Set SG2 and SG3 colors the same
-Set SG4 and SG5 colors the same

3)On the spreadsheet, use these formulas:
Cell K3:
 
Code
=IF(A3-INT(A3)>TIMEVALUE("08:00:00")+8/24,0,IF(MROUND(A3-INT(A3),1/86400)=TIMEVALUE("08:00:00"),1,K4+1))
Cell L3:
 
Code
=IF(AND(K3>0,K3<=10),MAX(C3,L4),0)
Cell M3:
 
Code
=IF(L3>0,0,IF(K4=10,L4,M4))
Cell N3:
 
Code
=IF(AND(K3>0,K3<=10),MINZ(D3,N4),0)
Cell O3:
 
Code
=IF(N3>0,0,IF(K4=10,N4,O4))

Reply With Quote
The following 3 users say Thank You to tomgilb for this post:
 
(login for full post details)
  #9 (permalink)
EdgeOfChaos
Paris/France
 
 
Posts: 14 since Feb 2017
Thanks: 4 given, 0 received

Wow that's very nice of you tomgilb !! Thanks you very much!! I'm going to test it this afternoon

Reply With Quote


futures io Trading Community Platforms and Indicators Sierra Chart > High/Low horizontal line of n bars


Last Updated on June 26, 2017


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Journal Challenge w/$1,800 in prizes!

April
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts