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

Reply
Old 01-19-2009, 02:56 AM   #9

Join Date: Feb 2008
Location: zip
Posts: 54
Ignore this user

Thanks: 20
Thanked 11 Times in 8 Posts



Re: TTM Scalp Average for Ninja

here's an image of actual scalper peaks and troughs. From that the midpoint is calculated and plotted (No smoothing is done). Changes in the midpoint are done at the time a peak/trough is detected. While scalper paints in the past based on the confriming bar, the midpoint paints at the time of the confirming bar. Does this look closer to what you had intended?
Attached Thumbnails
TTM Scalp Average for Ninja-scalpermid.png  
justlurkin is offline  
Reply With Quote
Old 01-19-2009, 03:09 AM   #10

Join Date: Feb 2008
Location: zip
Posts: 54
Ignore this user

Thanks: 20
Thanked 11 Times in 8 Posts



Re: TTM Scalp Average for Ninja

And here's one with the 11 period smoothed version.
Attached Thumbnails
TTM Scalp Average for Ninja-scalpersmoothed.png  
justlurkin is offline  
Reply With Quote
Old 01-19-2009, 03:56 AM   #11

thehaul's Avatar

Join Date: Dec 2008
Location: West Coast, USA
Posts: 35
Ignore this user

Thanks: 10
Thanked 1 Time in 1 Post



Re: TTM Scalp Average for Ninja

It does look more like it. But when I would add length to the original it wouldn't create any smoothing. In this screen capture it shows a cyan 4 length and a yellow 1 length.
Attached Thumbnails
TTM Scalp Average for Ninja-screen-capture-6.png  

Last edited by thehaul; 01-19-2009 at 04:02 AM.
thehaul is offline  
Reply With Quote
Old 01-19-2009, 04:35 AM   #12

thehaul's Avatar

Join Date: Dec 2008
Location: West Coast, USA
Posts: 35
Ignore this user

Thanks: 10
Thanked 1 Time in 1 Post



Re: TTM Scalp Average for Ninja

Here's a good example. The cyan line is a 4 length and the yellow is a 11 length. In the box the scalper code fires a cyan bar, both averages make a step down when that cyan bar appears 2 bars later. Then a magenta bar fires and the average reacts a few bars later. But as you can see cyan line makes it back to price faster and the yellow becomes resistance. This is only one scenario but there's many possible. But as you can see the longer length line doesn't smooth like my new Ninja version.
Attached Thumbnails
TTM Scalp Average for Ninja-screen-capture-2.png  
thehaul is offline  
Reply With Quote
Old 01-19-2009, 10:16 PM   #13

thehaul's Avatar

Join Date: Dec 2008
Location: West Coast, USA
Posts: 35
Ignore this user

Thanks: 10
Thanked 1 Time in 1 Post



Re: TTM Scalp Average for Ninja

When a longer average overlaps the shorter it becomes S/R. Knowing which one is the hard part. You can trade anything just have to find the pattern.
Attached Thumbnails
TTM Scalp Average for Ninja-screen-capture-6.png  
thehaul is offline  
Reply With Quote
Old 01-19-2009, 10:21 PM   #14

Join Date: Feb 2008
Location: zip
Posts: 54
Ignore this user

Thanks: 20
Thanked 11 Times in 8 Posts



Re: TTM Scalp Average for Ninja

Quote:
Originally Posted by thehaul »
Here's a good example. The cyan line is a 4 length and the yellow is a 11 length. In the box the scalper code fires a cyan bar, both averages make a step down when that cyan bar appears 2 bars later. Then a magenta bar fires and the average reacts a few bars later. But as you can see cyan line makes it back to price faster and the yellow becomes resistance. This is only one scenario but there's many possible. But as you can see the longer length line doesn't smooth like my new Ninja version.

I see. The image is much clearer. I can assume that the period is also being used in the swing function within Ninja, but I'll investigate.
justlurkin is offline  
Reply With Quote
The Following User Says Thank You to justlurkin For This Useful Post:
thehaul (01-19-2009)
Old 01-19-2009, 10:33 PM   #15

thehaul's Avatar

Join Date: Dec 2008
Location: West Coast, USA
Posts: 35
Ignore this user

Thanks: 10
Thanked 1 Time in 1 Post



Re: TTM Scalp Average for Ninja

Thanks for your efforts!
thehaul is offline  
Reply With Quote
Old 01-19-2009, 10:53 PM   #16

thehaul's Avatar

Join Date: Dec 2008
Location: West Coast, USA
Posts: 35
Ignore this user

Thanks: 10
Thanked 1 Time in 1 Post



Re: TTM Scalp Average for Ninja

This is a 15127 volume chart so the Scalp fires less when there's a trend and fires more when it's cycling. You can see that in the average itself as the longer term average wiggles.
Attached Thumbnails
TTM Scalp Average for Ninja-screen-capture-8.png  
thehaul is offline  
Reply With Quote

Reply

Tags
average, coding, ninja, ttm

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Free MP for Ninja darthtrader Market Profile 17 01-19-2009 05:55 PM
? Ninja Trader bobby Introduce Yourself 2 11-22-2008 02:02 PM
Using .eld Indicators in Ninja Trader coldsigh Coding Forum 3 10-09-2008 01:44 AM
Ninja Trader and Interactive Brokers Freddie Brokers and Data Feeds 3 02-21-2007 11:30 PM
Question with Ninja.... Soultrader Brokers and Data Feeds 9 01-25-2007 12:18 PM

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