Big Mike's Day Trading Forum

Go Back   Big Mike's Day Trading Forum > Trading Forums > Programmers Paradise > NinjaTrader Programming

Thread Statistics
Started:February 1st, 2010 (07:32 AM) by cclsys Views:1,089
Last Reply:February 15th, 2010 (01:18 PM) Replies:18

Reply
  10
 
LinkBack Thread Tools Search this Thread Display Modes

Skew & Chop Indicator - collaboration invited
Old February 1st, 2010, 07:32 AM   #1 (permalink)
Elite Member
Trading Experience: Intermediate
Trading Platform: Ninja
Favorite Instrument: TF,S,GC
 
cclsys's Avatar
 

Join Date: Nov 2009
Location: Sydney, NS
Posts: 605
Chats: 26
Thanks Given: 248
Thanks Received: 280

Points: 32,452, Level: 100
Points: 32,452, Level: 100 Points: 32,452, Level: 100 Points: 32,452, Level: 100
Forum Activity: 22%
Forum Activity: 22% Forum Activity: 22% Forum Activity: 22%
Skew & Chop Indicator - collaboration invited

Shortly after DeanV on the NT forum developed a dynamic PVP indy which uses data series after the close of a bar (i.e. not live-updating only), I wrote a 'skew indicator'.

Essentially based only on volume and price, it does a pretty good job of identifying chops and is sometimes very fast at identifying possible turning points. The backcolor indicates chop-type conditions and can be written many different ways, a couple of ideas for which are commented out in the current code. (Skew is the difference between vwap and dynamic PVP/POC. If vwap > PVP, skew is positive else if vwap < PVP skew is negative. )

The skew is plotted as the blue (bear) or gold (bull) bars then around them are drawn narrow and wide ATR bands to provide context.

The current problem with this indy is that the vwap always starts at midnight when called in another indicator. The vwap on this chart starts at 8.20 I think although because of the gap over the weekend on this pic it starts at 1800 Sunday night when the market re-opened.

I might try adding all this PVP/skew code to an existing vwap indy in order to get them all able to start and end at the same time. In any case, the principal is already there.

But what I would love to be able to put together here but lack programming skills to effect is:

1. either build a new indicator within an existing vwap so that the time-calling issue is resolved or have a new vwap whose start and end times can be called in other indies
2. Have the option to have all components either start at same time and/or be in 'rolling' mode, i.e. an 8 hour rolling period. Cory has already written something that does this with the VaT and VaB with dynamic PVP, so if a rolling vwap or callable start-end time vwap could be put in there to synchronise with the existing code this would work.
3. Even better would be a live-updating indy based on Gom's work because that way the PVP points would be more accurate and often turning points/skew flips would be indicated more accurately and, I suspect, in a more timely fashion.

This indicator can be used to identify probable chop areas very quickly, much more quickly than other indies I have seen. And then non-chop areas (no backcolor in attached indy) have higher probability of making decent moves.

So if anyone would like to try to get the vwap and PVP synchonised that would be a huge step forward. Again, I suspect either this means re-writing a vwap indy so the start and end times can be called (like DValue can already be called), or inserting PVP code into a vwap that shares the same start/end times. And then of course the rolling option is another excellent option in there.



Attached Thumbnails
Skew & Chop Indicator - collaboration invited-bm-0201-skewpic1.png  
Attached Files
File Type: zip dValueSkew0201.zip (22.1 KB, 19 views)
Reply With Quote
     

Old February 1st, 2010, 07:32 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.

Reply With Quote
     

Old February 8th, 2010, 09:10 PM   #3 (permalink)
Elite Member
Trading Experience: Intermediate
Trading Platform: Ninja
Favorite Instrument: TF,S,GC
 
cclsys's Avatar
 

Join Date: Nov 2009
Location: Sydney, NS
Posts: 605
Chats: 26
Thanks Given: 248
Thanks Received: 280

Points: 32,452, Level: 100
Points: 32,452, Level: 100 Points: 32,452, Level: 100 Points: 32,452, Level: 100
Forum Activity: 22%
Forum Activity: 22% Forum Activity: 22% Forum Activity: 22%


Well, that was a real hit!

Of old the skilled first made themselves invincible to await the enemy's vincibility.
Invincibility lies in oneself. Vincibility lies in the enemy.
Thus the skilled can make themselves invincible.
They cannot cause the enemy's vincibility.
Thus it is said: 'Victory can be known; it cannot be made.'
Reply With Quote
     

Old February 8th, 2010, 10:00 PM   #4 (permalink)
MADA practitioner
Trading Experience: Intermediate
Trading Platform: ninja
 
cory's Avatar
 

Join Date: Jun 2009
Location: usa
Posts: 950
Chats: 68
Thanks Given: 50
Thanks Received: 714

Points: 66,804, Level: 100
Points: 66,804, Level: 100 Points: 66,804, Level: 100 Points: 66,804, Level: 100
Forum Activity: 35%
Forum Activity: 35% Forum Activity: 35% Forum Activity: 35%

your chart has always confused me, to many layers of lines and shades. I try to understand the issue of start time as you had mentioned it many times before. I look at ivwap and it has start time and end time parm, are you saying it's not working.

Attached Thumbnails
Skew & Chop Indicator - collaboration invited-ivwap.png  
Reply With Quote
     

Old February 9th, 2010, 07:47 AM   #5 (permalink)
Elite Member
Trading Experience: Intermediate
Trading Platform: Ninja for charts, Xtrader for trades
Favorite Instrument: Wherever the action is!
 
Zondor's Avatar
 

Join Date: Jul 2009
Location: Reno, NV
Posts: 161
Chats: 38
Thanks Given: 227
Thanks Received: 142

Points: 17,783, Level: 92
Points: 17,783, Level: 92 Points: 17,783, Level: 92 Points: 17,783, Level: 92
Forum Activity: 13%
Forum Activity: 13% Forum Activity: 13% Forum Activity: 13%

CCL, I am interested. The hVWAP indicator has user customizable start and end times, so it seems to me that any indicator that uses it should be able to pass on its own corresponding times. Right now am busy with some other stuff, and I don't have a great command of date time manipulations. But I will look at this. Stay in touch!

(If you have trouble finding hVWAP send me a PM. I think it's here on Big Mike's. What a great forum this is!)

Reply With Quote
     

Old February 9th, 2010, 01:41 PM   #6 (permalink)
Elite Member
Trading Experience: Intermediate
Trading Platform: Ninja
Favorite Instrument: TF,S,GC
 
cclsys's Avatar
 

Join Date: Nov 2009
Location: Sydney, NS
Posts: 605
Chats: 26
Thanks Given: 248
Thanks Received: 280

Points: 32,452, Level: 100
Points: 32,452, Level: 100 Points: 32,452, Level: 100 Points: 32,452, Level: 100
Forum Activity: 22%
Forum Activity: 22% Forum Activity: 22% Forum Activity: 22%

To both

First: yes it IS a great forum!

I have hvwap. But you cannot call it's start-end times in other indicators, nor with any other of the 5-6 vwaps I have downloaded.

One workaround is to have the chart start and end at the day-session start time which means the vwap will start then. For some reason I didn't think of that earlier.

But ideally one should have a vwap whose start-end times can be called in other indicators. DvalueArea has a way of defining start-end times that is callable in other indicators and I shall try one day to modify a vwap to use his method. However, all the date-time coding I find very hard to work with and the couple of times I tried this earlier I got nowhere. Maybe now I am better at it and can luck out.

Another approach might be to start with a vwap and then call other indicators from within it, but I think when I looked into this I again had a hard time understanding the code. The vwap is a slightly tricky animal... Gomi's vwap code is delightfully simple - 2-3 lines - but then it is embedded in one of these live-updating situations which is also problematic.

The best would be to re-write a vwap that has
a) callable date-time inputs and
b) a rolling capability, i.e. the last X hours as long as
c) any volume histogram (such as DValueArea) also has rolling capability.

Cory: sorry my chart was confusing. I was just looking at the skew indy which is fairly self-explanatory. But the problem is that the vwap referenced in the indy starts at 12.00 am, whereas the vwap on the chart starts at 8.20.

Of old the skilled first made themselves invincible to await the enemy's vincibility.
Invincibility lies in oneself. Vincibility lies in the enemy.
Thus the skilled can make themselves invincible.
They cannot cause the enemy's vincibility.
Thus it is said: 'Victory can be known; it cannot be made.'
Reply With Quote
     

Old February 9th, 2010, 06:54 PM   #7 (permalink)
MADA practitioner
Trading Experience: Intermediate
Trading Platform: ninja
 
cory's Avatar
 

Join Date: Jun 2009
Location: usa
Posts: 950
Chats: 68
Thanks Given: 50
Thanks Received: 714

Points: 66,804, Level: 100
Points: 66,804, Level: 100 Points: 66,804, Level: 100 Points: 66,804, Level: 100
Forum Activity: 35%
Forum Activity: 35% Forum Activity: 35% Forum Activity: 35%

in this one I specify hVWAP at 11:45 - 13:30 are you saying you can't do it?

Attached Thumbnails
Skew & Chop Indicator - collaboration invited-cl-03-10-2_9_2010-1-min-.jpg.jpg  
Reply With Quote
     

Old February 9th, 2010, 07:38 PM   #8 (permalink)
Administrator: 'da Big Dawg
Trading Experience: Advanced
Trading Platform: MultiCharts (NT for DOM)
Favorite Instrument: CL futures
 
Big Mike's Avatar
 
Tournaments Won: 10

Join Date: Jun 2009
Location: Dallas, TX
Posts: 6,429
Chats: 3280
Thanks Given: 3,663
Thanks Received: 4,838


Move the start-time and end-time parameter to the Category["Parameters"] and it will be able to be specified by another indicator.

Mike

Need help?
1) Stop changing things. No new indicators. No new charts. No new methods. Be consistent with what is in front of you first.
2) Start a journal and post to it every day with the trades you made. It will show your strengths and weaknesses.
3) Set goals for yourself that you can reach every day. Make them about how you trade, and not about how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance. You must look within.
5)
Have a question? Create a new thread so the community can help.

If you want
to support our community, become an Elite Member.
Reply With Quote
The following user says Thank You to Big Mike for this post:
     

Old February 10th, 2010, 01:05 PM   #9 (permalink)
Elite Member
Trading Experience: Intermediate
Trading Platform: Ninja
Favorite Instrument: TF,S,GC
 
cclsys's Avatar
 

Join Date: Nov 2009
Location: Sydney, NS
Posts: 605
Chats: 26
Thanks Given: 248
Thanks Received: 280

Points: 32,452, Level: 100
Points: 32,452, Level: 100 Points: 32,452, Level: 100 Points: 32,452, Level: 100
Forum Activity: 22%
Forum Activity: 22% Forum Activity: 22% Forum Activity: 22%

Thanks!!

First changed it to parameters.

Then had to figure out how to get the DValue ints used for StartHour and StartMinute into the hvwap string 00:00:00 format but was lucky and it worked.

Now I have a Skew Indy which has a start-time callable vwap.

So easy when you know how.

I don't even know if this indicator is helpful or not, but I wanted to at least monitor it because it is highly original and based mainly on the relationship of vwap and PVP, both of which are volume-derived statistics.

Thank you very, very much Mike.

My chart is a little messy now, but have marked the 'flips' with vertical lines on the lower panel and the main chart panel. Now they are synchronised properly so I can see how/if it is even helpful to have it.



Of old the skilled first made themselves invincible to await the enemy's vincibility.
Invincibility lies in oneself. Vincibility lies in the enemy.
Thus the skilled can make themselves invincible.
They cannot cause the enemy's vincibility.
Thus it is said: 'Victory can be known; it cannot be made.'
Attached Thumbnails
Skew & Chop Indicator - collaboration invited-bm-0210-skewworking.png  
Reply With Quote
     

Old February 10th, 2010, 01:18 PM   #10 (permalink)
Elite Member
Trading Experience: Intermediate
Trading Platform: Ninja
Favorite Instrument: TF,S,GC
 
cclsys's Avatar
 

Join Date: Nov 2009
Location: Sydney, NS
Posts: 605
Chats: 26
Thanks Given: 248
Thanks Received: 280

Points: 32,452, Level: 100
Points: 32,452, Level: 100 Points: 32,452, Level: 100 Points: 32,452, Level: 100
Forum Activity: 22%
Forum Activity: 22% Forum Activity: 22% Forum Activity: 22%


For you, Mike, a pic of 5 min Crude. I have changed my band indy from your excellent Collective to being based on the vwap with your Daily ATR lookback feature (for which hearty thanks). Again, this is first time I have been able to get the vwap to start at time other than midnight by now having it callable within the code.

For anyone else who might be interested, the relevant line is:
code/
_pvalue = (hVWAP(openHour +":" + openMinute + ":" + 00, openHour +":" + openMinute + ":" + 00 )[0]);

code^/

where the first one is endtime and second is starttime using the string format required by hvwap.



Of old the skilled first made themselves invincible to await the enemy's vincibility.
Invincibility lies in oneself. Vincibility lies in the enemy.
Thus the skilled can make themselves invincible.
They cannot cause the enemy's vincibility.
Thus it is said: 'Victory can be known; it cannot be made.'
Attached Thumbnails
Skew & Chop Indicator - collaboration invited-bm-0210-skewclwith-vwapbands.png  
Reply With Quote
     
Reply

Tags
5m_chart, atr, bars, chart, charts, chop, code, collective, context, es, gold, gomi, histogram, indicator, indicators, line, method, modify, multiple, ninja, ninjatrader, nt7, poc, price_action, programming, strategy, string, templates, think or swim, tick, trader, trading, trend, volume, vwap, wanted, workspace
     

Big Mike's Day Trading Forum > Trading Forums > Programmers Paradise > NinjaTrader Programming > Skew & Chop Indicator - collaboration invited

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
TS8 strategy; Ninja translators warmly invited. cclsys TradeStation/MultiCharts EasyLanguage Programming 10 May 6th, 2010 11:02 PM


All times are GMT -4. The time now is 06:32 PM.

Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
vBulletin Optimisation by vB Optimise (Reduced on this page: MySQL 5.13%).
Copyright © 2010 by Big Mike Trading. All information is for educational use only and is not investment advice.
 
no new posts

Page generated in 0.28 seconds with 37 queries