NexusFi: Find Your Edge


Home Menu

 





Why are not all lines drawn?


Discussion in EasyLanguage Programming

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




 
Search this Thread

Why are not all lines drawn?

  #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?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
ZombieSqueeze
Platforms and Indicators
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Exit Strategy
NinjaTrader
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
17 thanks




Last Updated on November 14, 2015


© 2024 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 - Privacy Policy - Downloads - Top
no new posts