Trading Articles
Article Categories
Article Tools
Open BIAS line
Updated March 14, 2021
trending_up
3,349 views
thumb_up
1 thanks given
group
3 followers
forum
2 posts
attach_file
0 attachments
Welcome to futures io: the largest futures trading community on the planet, with well over 150,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)
(login for full post details)
#1 (permalink )
Fleming Island
Posts: 6 since Jul 2019
Thanks: 2 given,
0
received
Open Range BIAS line first 5 min bar - having issue with this simple trend line not showing on all timeframes. Only shows on 1 min and 5 min chart. any help with fixing this to show on all timeframes would be appreciated...
thanks in advance!
Code
Variables:
highesthigh( 0 ),
lowestlow( 0 ),
storedlow( 0 ),
storedhigh( 0 ),
absoluterange( 0 ),
biasline_value( 0 ),
biasline( 0 );
if date <> date[1] then begin
highestHigh = 0;
lowestLow = 99999999;
end;
// Define range
if (Time >= 0930) and (Time <= 0935) then begin
storedLow = Low;
storedHigh = High;
highestHigh = MaxList(High, highestHigh);
lowestLow = MinList(Low, lowestLow);
absoluteRange = highestHigh - lowestLow;
biasline_value = highestHigh - (absoluteRange/2);
end;
// Draw OR_bias line
if (Time = 935) then begin
biasline = tl_new(Date, 0935, biasline_value, Date, 1600, biasline_value);
TL_SetColor(biasline, Yellow);
TL_SetStyle(biasline, 3);
TL_SetSize(biasline, 2);
end;
Can you help answer these questions from other members on futures io?
Best Threads (Most Thanked) in the last 7 days on futures io
(login for full post details)
#2 (permalink )
Boca Raton, FL
Posts: 230 since Nov 2018
Thanks: 70 given,
164
received
It directly references first 5 minutes. How do you suppose that can be done on a timeframe greater than first 5 minutes? Even more importantly why would you want to? Seems to defeat the purpose of what it was specifically coded for.
(login for full post details)
#3 (permalink )
Lyon/France
Posts: 23 since Aug 2012
Thanks: 1 given,
14
received
You can replace the defined timevalues by inputs one can adapt accordingly.
Code
Inputs:
starttime(0930),
endtime(0935),
endsessiontime(1600);
if date <> date[1] then begin
highestHigh = 0;
lowestLow = 99999999;
end;
// Define range
if (Time >= starttime) and (Time <= endtime) then begin
storedLow = Low;
storedHigh = High;
highestHigh = MaxList(High, highestHigh);
lowestLow = MinList(Low, lowestLow);
absoluteRange = highestHigh - lowestLow;
biasline_value = highestHigh - (absoluteRange/2);
end;
// Draw OR_bias line
if (Time = endtime) then begin
biasline = tl_new(Date, endtime, biasline_value, Date, endsessiontime, biasline_value);
TL_SetColor(biasline, Yellow);
TL_SetStyle(biasline, 3);
TL_SetSize(biasline, 2);
end;
The following user says Thank You to Kolnidrei for this post:
Last Updated on March 14, 2021
Ongoing