Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 05-13-2009, 11:10 AM   #1

daedalus's Avatar

Join Date: Jul 2007
Location: Omaha, NE
Posts: 627
Ignore this user

Thanks: 431
Thanked 551 Times in 228 Posts

Coding Analysis Commentary?

So what I want to do is be able to count the number of bars from a pivot high to a lower high. Basically I just want to be able to see how close swings are to one another. I tried modifying the TTM Scalper indicator to no avail and I had used the "Analysis Commentary" button before on programs like MTPredictor and thought that might be something that would work.

The only thing is, I have no idea how that all works? Would it be possible to use the analyisis commentary to click on a bar and then just count forward from that bar on and put numbers at the bottoms of the candles...

Or better yet, click once on the starting bar, and once on the ending bar and calculate the number of bars in between?

Anyway, I know its a shitty pipe dream, but if you guys have any ideas on how I might accomplish this i'd love to know.

Cheers!
daedalus is offline  
Reply With Quote
Old 05-13-2009, 11:49 AM   #2

BlowFish's Avatar

Join Date: Mar 2007
Location: In Da House
Posts: 3,292
Ignore this user

Thanks: 129
Thanked 1,054 Times in 702 Posts

Re: Coding Analysis Commentary?

I think Clyde Lee's Swing Lee II should do it. It used to be in the file section of his Yahoo Group (might be called the Swing Machine can't remember for sure). It does volume on a swing (pivot to pivot) which is pretty intresting.
BlowFish is offline  
Reply With Quote
The Following User Says Thank You to BlowFish For This Useful Post:
daedalus (05-13-2009)
Old 05-13-2009, 12:47 PM   #3

Tams's Avatar

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

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

Re: Coding Analysis Commentary?

first, you need to define the "pivot.high".

pseudo code:

if pivot.high = true then counter = 0;
counter = counter + 1;
// counter is incremented after every bar


counter is the number of bars since the pivot.high.
you just need to decide on a way to present the number.


.

Last edited by Tams; 05-13-2009 at 01:20 PM.
Tams is offline  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
daedalus (05-13-2009)
Old 05-13-2009, 01:17 PM   #4

daedalus's Avatar

Join Date: Jul 2007
Location: Omaha, NE
Posts: 627
Ignore this user

Thanks: 431
Thanked 551 Times in 228 Posts

Re: Coding Analysis Commentary?

Thanks gents! Gives me somewhere to start.
daedalus is offline  
Reply With Quote
Old 05-13-2009, 01:21 PM   #5

Tams's Avatar

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

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

Re: Coding Analysis Commentary?

one place you can put the number is at the top of the chart:
http://www.traderslaboratory.com/for...head-5768.html
Tams is offline  
Reply With Quote
The Following User Says Thank You to Tams For This Useful Post:
daedalus (05-13-2009)

Reply

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
B4 the Bell News Commentary TwosComplement Trading and the Markets 0 04-15-2009 08:34 AM
News Commentary TwosComplement Trading and the Markets 0 04-13-2009 08:41 AM
Final 'Volume Distribution' Commentary Dogpile Market Profile 4 11-22-2007 11:02 AM
Todays Profile Commentary Dogpile Market Profile 12 06-07-2007 11:02 AM
Daily Market Commentary MTnews Market Analysis 4 02-22-2007 05:42 PM

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