Why are not all lines drawn? - EasyLanguage Programming | futures.io
futures.io futures trading

Go Back   futures.io

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation > EasyLanguage Programming

Why are not all lines drawn?
Started:November 14th, 2015 (11:19 AM) by kristian Views / Replies:111 / 1
Last Reply:November 14th, 2015 (11:19 AM) Attachments:1

Welcome to futures.io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

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, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Why are not all lines drawn?

Old November 14th, 2015, 11:19 AM   #1 (permalink)
Trading Apprentice
Futures Experience: Intermediate
Platform: Multicharts
Favorite Futures: $CL
Posts: 6 since Aug 2015
Thanks: 4 given, 1 received

Why are not all lines drawn?

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:

if date <> date[1] then begin

	highestHigh = 0;
	lowestLow = 99999999;


// 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;

// 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);

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

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote

Old November 14th, 2015, 11:19 AM   #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.



futures.io > Futures Trading, News, Charts and Platforms > Platforms and Indicators > TradeStation > EasyLanguage Programming > Why are not all lines drawn?

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strategy referencing an indicator drawn object jwikker NinjaTrader Programming 4 August 7th, 2013 02:32 AM
Slope for drawn lines in NT Auric NinjaTrader 4 May 20th, 2013 05:39 PM
Italy 'Hung, Drawn and Quartered' by Deadlock Quick Summary News and Current Events 0 February 26th, 2013 02:30 AM
Drawn trend line automatically on other charts, How? hector24 NinjaTrader 4 November 2nd, 2011 12:32 PM
Is CL going to get drawn and quartered? RM99 Commodities Futures Trading 1 July 25th, 2011 04:37 PM

All times are GMT -4. The time now is 03:42 AM.

Copyright © 2016 by futures.io. 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.
no new posts

Page generated 2016-10-26 in 0.07 seconds with 20 queries on phoenix via your IP