Welcome to the Traders Laboratory Forums.
Trading Indicators Post your custom trading indicators. If you download, remember to click INSTALL.

Reply
Vertical Lines at Specified Time Details »»
Vertical Lines at Specified Time
Platform: 3.1, by aaa aaa is offline
Developer Last Online: May 2012 Show Printable Version Email this Page

Platform: MultiCharts Rating:
Released: 05-16-2009 Last Update: Never Installs: 3
 
No support by the author.

// Vertical Lines at specified time
// author: aaa
// date: 20090516
//
// to see how the market reacts everydays specially Cash Opening and NY Opening or whatever you want
// holding the mouse at the end of a lines shows intraday price High Low difference

Please, feel free to correct my code if needed

Download Now

File Type: txt Vertical Lines at specified time.txt (1.5 KB, 80 views)

Screenshots

Vertical Lines at Specified Time-snap2.jpg  

Show Your Support

  • If you like to thanks you by the author -> Click Thanks to the Author
  • This modification may not be copied, reproduced or published elsewhere without the author's permission.

Similar Indicator
Mod Developer Type Replies Last Post
Tick Time Box walterw Trading Indicators 6 02:06 PM 06-01-2009
PBF Squeeze Replica For Tradestation Futurestrader Trading Indicators 67 07:46 PM 10-21-2010
How to Draw a Tape Tams Trading Indicators 5 02:26 PM 07-29-2009
ATR Marker Tams Trading Indicators 7 12:24 PM 10-14-2009
Programmer's Data Box Tams Trading Indicators 0 09:04 AM 03-28-2009
Tidal Wave Tams Trading Indicators 7 07:49 AM 11-05-2009
Paint the Town Red Tams Trading Indicators 3 02:03 PM 04-18-2009
Candle pattern Tams Trading Indicators 9 04:36 PM 10-08-2010
Masthead Tams Trading Indicators 0 01:41 PM 04-16-2009
Bottomline Tams Trading Indicators 10 08:34 PM 04-19-2009
The Following 2 Users Say Thank You to aaa For This Useful Post:
Tams (05-19-2009)

Comments
Old 05-16-2009, 09:56 PM   #2

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,477 Times in 912 Posts

Re: Vertical Lines at Specified Time

Nice idea!

Very structured code!




Let's examine it a bit...

If you click on the trendline and drag it to one side, you will see another trendline sitting where it was before.

If you click on that trendline and drag it to one side, you will see yet another trendline sitting there.

The reason being this section of the code:

if PlotOpenCash <> 0 and time >= OpenCash then


MC will evaluate this condition time >= OpenCash at every bar.
If this condition is TRUE, MC will draw a trendline at "OpenCash".

At the next bar, MC will evaluate this condition again.
If the condition is true, it will draw another trendline (at the same place).

MC will draw a new trendline, again and again, at the same place, until end of the day.


Although the duplicated trendlines do not affect the chart, it will consume precious CPU power.
If you have a few indicators opened, it will slow down your computer.


To fix the problem, all you have to do is take the multiple condition away:
if PlotOpenCash <> 0 and time = OpenCash then


you can do the same with OpenNewYork.

Last edited by Tams; 05-16-2009 at 10:31 PM.
Tams is offline  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
aaa (05-17-2009)
Old 05-17-2009, 03:26 AM   #3
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 443
Ignore this user

Thanks: 240
Thanked 283 Times in 136 Posts

Re: Vertical Lines at Specified Time

I was sure that they were a problem with the lines

Tams, you have Xray eyes

only > makes the difference from a wrong code to a correct code.

ThanX for the pedagogic explanation
aaa is offline  
Reply With Quote
Old 05-17-2009, 03:50 AM   #4
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 443
Ignore this user

Thanks: 240
Thanked 283 Times in 136 Posts

Re: Vertical Lines at Specified Time

Quote:
Nice idea!

Very structured code!
Thanx for your words of encouragement

The most I've learned comes from this forum

And this indicator was possible only with your gentle and clever support
aaa is offline  
Reply With Quote
The Following User Says Thank You to aaa For This Useful Post:
Tams (05-17-2009)
Old 05-17-2009, 09:41 PM   #5

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,477 Times in 912 Posts

Re: Vertical Lines at Specified Time

Code:
//-----------------------------------------------------
		inputs:
//----------------------------------------------------
    
	PlotOpenCash( 	1   	),
	PlotOpenNewYork( 	1   	),

I prefer to use

PlotOpenCash( True ),
PlotOpenNewYork( True ),



I found True/False is more intuitive at the Format Study window.

plus,
in EasyLanguage,

if PlotOpenCash = true then...

can be written as

if PlotOpenCash then...


1. "True" is implied.
2. the code looks cleaner without so many equal signs.



just a personal preference... makes no difference to the effectiveness of the code.
Tams is offline  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
aaa (05-18-2009)
Old 05-18-2009, 02:43 AM   #6
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 443
Ignore this user

Thanks: 240
Thanked 283 Times in 136 Posts

Re: Vertical Lines at Specified Time

Dear Tams

I agree with you ; Programing is an art.

Because I'm a lazy animal..

...I write down 0/1 oftenly in the format window instead of true/False wich is more source of faults.
aaa is offline  
Reply With Quote
Old 05-23-2009, 04:56 AM   #7
aaa

aaa's Avatar

Join Date: Jun 2008
Location: Switzerland
Posts: 443
Ignore this user

Thanks: 240
Thanked 283 Times in 136 Posts

Re: Vertical Lines at Specified Time

// Vertical Lines at specified time
// author: aaa
// Version 0.1
// date: 20090516
//
// date: 20090523
// Version 0.2
// Code cleaned by Tams

// to see how the market reacts everydays specially Cash Opening and NY Opening or whatever you want
// holding the mouse at the end of a lines shows intraday price High Low difference

Attached Thumbnails
Vertical Lines at Specified Time-snap1.jpg  
Attached Files
File Type: txt Vertical Lines at specified time 0.2.txt (2.3 KB, 24 views)
aaa is offline  
Reply With Quote
The Following 2 Users Say Thank You to aaa For This Useful Post:
simterann22 (07-07-2009), Tams (09-01-2009)

Reply

Tags
easylanguage, trendline

Thread Tools
Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Create an ELD to Plot Vertical Lines or Arrows at Price. forrestang Coding Forum 16 05-19-2009 09:55 AM
Vertical Lines at Specified Time aaa Coding Forum 1 05-16-2009 05:06 PM
TradeStation Custom Time Lines -variation to Fibo Cycle Tool (help Required) sneo Coding Forum 0 05-04-2009 04:40 AM
TPO Lines for OEC Trendup_ Open E Cry 2 03-14-2009 09:12 PM
Value Area Lines conr Technical Analysis 2 01-07-2008 11:23 AM

All times are GMT -4. The time now is 08:37 AM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.