NexusFi: Find Your Edge


Home Menu

 





Why are not all lines drawn?


Discussion in EasyLanguage Programming

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




 
Search this Thread
  #1 (permalink)
kristian
Zurich
 
Posts: 8 since Aug 2015
Thanks Given: 4
Thanks Received: 3

Hey guys

I'm having a problem with my open range breakout strategy.. The range lines of the last day are not drawn as you can see in the image, but when I isolate the the "range-drawing" part of the code (no entries/exits, only line drawing) it draws the ranges for every day.

The range drawing code is as following:

 
Code
if date <> date[1] then begin

	highestHigh = 0;
	lowestLow = 99999999;

end;


// Define range
if (Time >= 800) and (Time <= 1100) then begin

	storedLow = Low;
	storedHigh = High;
	
	highestHigh = MaxList(High, highestHigh);
	lowestLow = MinList(Low, lowestLow);
	
	absoluteRange = highestHigh - lowestLow;
	
end;


// Draw range lines
if (Time = 1100) then begin

	rangeLowLine = tl_new(Date, 1100, lowestLow, Date, 1600, lowestLow);
	rangeHighLine = tl_new(Date, 1100, highestHigh, Date, 1600, highestHigh);
	
end;

What could be causing this behavior? I don't get any errors with my strategy..



Reply With Quote

Can you help answer these questions
from other members on NexusFi?
EA
Platforms and Indicators
My Rant with AMP Futures
Trading Reviews and Vendors
Datafeed for Atas
Platforms and Indicators
No book, only a stair: journaling fills where price move …
Cryptocurrency
Trump Media to sell instant access to market-moving soci …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Mes vs MNQ
6 thanks
NexusFi site changelog and issues/problem reporting
5 thanks
BERN ALGOS algo trading journal
3 thanks
Johnnys Journal
2 thanks
TopStep Trader disappointment
2 thanks




Last Updated on November 14, 2015


© 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