Dark Theme
Light Theme
Welcome to NexusFi: the best trading community on the planet, with over 200,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 -- discounts are available after registering.
-- The NexusFi team
(If you already have an account, login at the top of the page)
Updated October 17, 2017
trending_up
2,734 views
thumb_up
2 thanks given
group
2 followers
forum
4 posts
attach_file
0 attachments
October 11th, 2017, 01:21 PM
Orlando Florida
Posts: 3 since Oct 2017
Thanks Given: 2
Thanks Received: 0
Does anyone have a script that will display with a line the midpoint of the previous and current Weeks High and low? Previous weeks midpoint display could be a dashed line and current weeks midpoint could be a solid line for example.....TIA
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
October 13th, 2017, 03:06 PM
Vancouver Canada
Experience: Intermediate
Platform: TOS, IB
Trading: es ym etf's
Posts: 35 since Feb 2011
Thanks Given: 24
Thanks Received: 26
fmsfx
Does anyone have a script that will display with a line the midpoint of the previous and current Weeks High and low? Previous weeks midpoint display could be a dashed line and current weeks midpoint could be a solid line for example.....TIA
Try this for now - plots the week average - will take a closer look over w'end re hi/lo, etc:
dashed line u can do in input and options "Draw as:" and "Style:"
-------------------
plot Data = open;
def th = high(period = "week")[0];
def tl = low(period = "week")[0];
def pc = open(period = "week")[0];
def avgrange2 = (th - tl) / 2;
plot weekavg = (th + tl) / 2;
input bubbles = yes;
AddChartBubble(bubbles and !IsNaN(close[4]) and IsNaN(close[3]), weekavg[4], "weekMid", Color.VIOLET, yes);
---
October 13th, 2017, 09:19 PM
Orlando Florida
Posts: 3 since Oct 2017
Thanks Given: 2
Thanks Received: 0
Cerberus
Try this for now - plots the week average - will take a closer look over w'end re hi/lo, etc:
dashed line u can do in input and options "Draw as:" and "Style:"
-------------------
plot Data = open;
def th = high(period = "week")[0];
def tl = low(period = "week")[0];
def pc = open(period = "week")[0];
def avgrange2 = (th - tl) / 2;
plot weekavg = (th + tl) / 2;
input bubbles = yes;
AddChartBubble(bubbles and !IsNaN(close[4]) and IsNaN(close[3]), weekavg[4], "weekMid", Color.VIOLET, yes);
---
OK perfect...thanks for the help and look forward to any added script.
Dave
October 15th, 2017, 06:27 PM
Vancouver Canada
Experience: Intermediate
Platform: TOS, IB
Trading: es ym etf's
Posts: 35 since Feb 2011
Thanks Given: 24
Thanks Received: 26
fmsfx
OK perfect...thanks for the help and look forward to any added script.
Dave
I tinkered around with some code I had. Leave the the displace option on zero
You can pick a range of aggregation periods under inputs - also week of course )
Chartbubbles are Phi Plo for Period hi resp lo. If you use only week you can adjust the bubble with ie Wkhi Wklo.
Depends also how many lines you have on your charts. Bubbles help to keep confusion somewhat under control
Let me know if that works
----
plot Data = close;input aggregationPeriod = AggregationPeriod.DAY;
input length = 1;
input displace = 0;
input showOnlyLastPeriod = no;
plot DailyHigh;
plot DailyLow;
if showOnlyLastPeriod and !IsNaN(close(period = aggregationPeriod)[-1]) {
DailyHigh = Double.NaN;
DailyLow = Double.NaN;
} else {
DailyHigh = Highest(high(period = aggregationPeriod)[-displace], length);
DailyLow = Lowest(low(period = aggregationPeriod)[-displace], length);
}
DailyHigh.SetDefaultColor(GetColor(4));
DailyHigh.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
DailyLow.SetDefaultColor(GetColor(4));
DailyLow.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
AddChartBubble( !IsNaN(close[4]) and IsNaN(close[3]), DailyHigh[4], "Phi", Color.LIGHT_GREEN, yes);
AddChartBubble(!IsNaN(close[4]) and IsNaN(close[3]), DailyLow[4], "Plo", Color.DARK_ORANGE, yes);
----------------
..
October 17th, 2017, 04:56 PM
Orlando Florida
Posts: 3 since Oct 2017
Thanks Given: 2
Thanks Received: 0
Cerberus
I tinkered around with some code I had. Leave the the displace option on zero
You can pick a range of aggregation periods under inputs - also week of course
)
Chartbubbles are Phi Plo for Period hi resp lo. If you use only week you can adjust the bubble with ie Wkhi Wklo.
Depends also how many lines you have on your charts. Bubbles help to keep confusion somewhat under control
Let me know if that works
----
plot Data = close;input aggregationPeriod = AggregationPeriod.DAY;
input length = 1;
input displace = 0;
input showOnlyLastPeriod = no;
plot DailyHigh;
plot DailyLow;
if showOnlyLastPeriod and !IsNaN(close(period = aggregationPeriod)[-1]) {
DailyHigh = Double.NaN;
DailyLow = Double.NaN;
} else {
DailyHigh = Highest(high(period = aggregationPeriod)[-displace], length);
DailyLow = Lowest(low(period = aggregationPeriod)[-displace], length);
}
DailyHigh.SetDefaultColor(GetColor(4));
DailyHigh.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
DailyLow.SetDefaultColor(GetColor(4));
DailyLow.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
AddChartBubble( !IsNaN(close[4]) and IsNaN(close[3]), DailyHigh[4], "Phi", Color.LIGHT_GREEN, yes);
AddChartBubble(!IsNaN(close[4]) and IsNaN(close[3]), DailyLow[4], "Plo", Color.DARK_ORANGE, yes);
----------------
..
Thanks Again...will load it up. I would post a pic of my goal of this idea but I need a few more post to post pic via Gyazo
Last Updated on October 17, 2017