NexusFi: Find Your Edge


Home Menu

 





Open BIAS line


Discussion in EasyLanguage Programming

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




 
Search this Thread
  #1 (permalink)
ernmen
Fleming Island
 
Posts: 6 since Jul 2019
Thanks Given: 2
Thanks Received: 0

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;


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
CFTC Opens First COT Report Review in 20 Years -- Asks W …
Traders Hideout
Roland Garros Final Day: $3M on Zverev at 80.5% -- Leban …
Prediction Markets & Event Contracts
Weekend Update: First Qatari LNG Transit Attempted -- IR …
Traders Hideout
Warsh Rate Hike at 40%, Iran June 15 Expires Tonight at …
Prediction Markets & Event Contracts
June 15 Peace Odds Surge From 3.6% to 12.25% After Trump …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
196 thanks
Sober Journey With S&P
27 thanks
30 Sessions
20 thanks
BERN ALGOS algo trading journal
8 thanks
Volume Indicators
8 thanks
  #2 (permalink)
SunTrader
Boca Raton, FL
 
Posts: 267 since Nov 2018
Thanks Given: 84
Thanks Received: 185

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.


Reply With Quote
  #3 (permalink)
Kolnidrei
Lyon/France
 
Posts: 23 since Aug 2012
Thanks Given: 1
Thanks Received: 14


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;


Reply With Quote
Thanked by:




Last Updated on March 14, 2021


© 2026 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 - Downloads - Top
no new posts