NexusFi: Find Your Edge


Home Menu

 





Why are not all lines drawn?


Discussion in EasyLanguage Programming

Updated
    1. trending_up 1,172 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?
What broker to use for trading palladium futures
Commodities
Better Renko Gaps
The Elite Circle
About a successful futures trader who didnt know anythin …
Psychology and Money Management
How to apply profiles
Traders Hideout
MC PL editor upgrade
MultiCharts
 




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