NexusFi: Find Your Edge


Home Menu

 





hourly pivot indicator-Ninja trader


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Fat Tails with 15 posts (56 thanks)
    2. looks_two wldman with 3 posts (1 thanks)
    3. looks_3 shaz123 with 3 posts (0 thanks)
    4. looks_4 pnguyen720 with 3 posts (1 thanks)
      Best Posters
    1. looks_one Fat Tails with 3.7 thanks per post
    2. looks_two Big Mike with 1.7 thanks per post
    3. looks_3 trendisyourfriend with 0.5 thanks per post
    4. looks_4 wldman with 0.3 thanks per post
    1. trending_up 18,400 views
    2. thumb_up 66 thanks given
    3. group 9 followers
    1. forum 36 posts
    2. attach_file 14 attachments




 
Search this Thread

hourly pivot indicator-Ninja trader

  #11 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103


Big Mike View Post
Notifications sent.

Strike that, this is a new upload not an update?

Mike

It is an update, but I had never uploaded this indicator to the download section.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Cheap historycal L1 data for stocks
Stocks and ETFs
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
REcommedations for programming help
Sierra Chart
Quant vue
Trading Reviews and Vendors
NexusFi Journal Challenge - May 2024
Feedback and Announcements
 
  #12 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,527 since Oct 2009
Thanks Given: 4,176
Thanks Received: 6,020

In a future update, could you add the possibility to display the pivot range as you do with the daily version?


Fat Tails View Post
I have updated the hourly pivots indicator and improved the code efficiency. It is now several times as fast as the original version and can be used with COBC = false.

The indicator is also an example for a simple multi-timeframe indicator.

It is now available in the download section of the forum.






Reply With Quote
Thanked by:
  #13 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103


@trendisyourfriend: Following you request, I have reworked the indicator and added the pivot range and the prior high and low.

I have also improved the multi-timeframe architecture and speed up the indicator a little. If it takes a second to show up on the chart, this is due to the use of DrawRegion(), which always slows the plot a bit. It would be better to replace DrawRegion() with a manually coded plot, but that would take too much time now.

The hourly pivots need to be aligned somewhere, that is you need to start to count the full hour at one point. The indicator now alternatively allows to align the starting point to the trading day or the session start.

The updated indicator is here:



The chart below shows the 120 min pivots for CL 03-13.



Reply With Quote
  #14 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103

Attached are two examples of an unconventional use of the indicator for 6E 03-13:


Displaying daily pivots (ETH) based on the high, low and close:

If you select the combined length of the intraday session - for 6E this is 1380 minutes - then the indicator can also be used to display daily pivots over the intraday session segments. The pivots need to be aligned to the start of the trading day.





If you use the indicator with the same settings, but switch it to align the start of the pivot period to each session, then it will calculate the pivots from the 3 prior sessions, which cover 1380 minutes. The sessions are rolled.



Reply With Quote
Thanked by:
  #15 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,460 since Jun 2009
Thanks Given: 33,234
Thanks Received: 101,655

Notifications sent.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #16 (permalink)
 
Rad4633's Avatar
 Rad4633 
Greensboro NC
 
Experience: Advanced
Platform: TOS/ NT Dorman
Trading: ES TF CL
Posts: 1,357 since Sep 2011
Thanks Given: 2,657
Thanks Received: 894

@Fat Tails

After I installed the HourlyPivot indicator from downloads. I installed it and it plotted on my Hybrid renko chart but when I tried to go to a 5 min the chart , it plotted as shown in attachment. Then after trying various changes ie session templates time changes my chart had a red X appear on it so i had to close down chart. I reopened another hybrid chart installed hourly pivot on it but they did not plot, I tried different session templates none would make the hourly pivot indicator plot. Then I noticed my min bar types would only plot on the chart as shown in picture attachment, also week,day,month,year bar type all plot the same as in attachment. Sec, tick,range,hybrid,uni renko all plot correctly.

The only fix I can find is to remove Hourly Pivot indicator, restart Ninja then min and all others work fine again. Thoughts?

Attached Thumbnails
Click image for larger version

Name:	f1.PNG
Views:	246
Size:	28.2 KB
ID:	100109  
Visit my NexusFi Trade Journal Reply With Quote
  #17 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103


Rad4633 View Post
@Fat Tails

After I installed the HourlyPivot indicator from downloads. I installed it and it plotted on my Hybrid renko chart but when I tried to go to a 5 min the chart , it plotted as shown in attachment. Then after trying various changes ie session templates time changes my chart had a red X appear on it so i had to close down chart. I reopened another hybrid chart installed hourly pivot on it but they did not plot, I tried different session templates none would make the hourly pivot indicator plot. Then I noticed my min bar types would only plot on the chart as shown in picture attachment, also week,day,month,year bar type all plot the same as in attachment. Sec, tick,range,hybrid,uni renko all plot correctly.

The only fix I can find is to remove Hourly Pivot indicator, restart Ninja then min and all others work fine again. Thoughts?

@Rad4633: Thank you for your comment. You are correct. The indicator had a bug, which let it access an indefined value under specific conditions. I have modified the code. Could you please test and report back?

Attached Files
Elite Membership required to download: HourlyPivots.zip
Reply With Quote
Thanked by:
  #18 (permalink)
 
Rad4633's Avatar
 Rad4633 
Greensboro NC
 
Experience: Advanced
Platform: TOS/ NT Dorman
Trading: ES TF CL
Posts: 1,357 since Sep 2011
Thanks Given: 2,657
Thanks Received: 894


Fat Tails View Post
@Rad4633: Thank you for your comment. You are correct. The indicator had a bug, which let it access an indefined value under specific conditions. I have modified the code. Could you please test and report back?

Thank you for your fast response, this indicator works with no issues

Visit my NexusFi Trade Journal Reply With Quote
  #19 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103

I had to update the hourly pivots, because it did not work with all datafeeds.

Here is the reason: During times when liquidity is low, it may happen that no transaction takes place during a full minute. Not all data feeds handle this situation in a similar way.

(1) some data feeds insert a minute bar which shows a single trick at the last price traded
(2) other data feeds insert nothing, leaving a blank space

With the second type of data feed an hour sometimes had less than 60 minute bars, and the indicator did not work properly. Therefore I have recoded it based on time intervals, which is the appropriate way of dealing with hourly pivots anyway.

The indicator is a genuine multi-timeframe indicator. The hourly pivots are calculated from a secondary bar series of 1-minute bars. For the sake of discretionary traders, I have allowed the indicator to repaint the lines back to the session start during the first minute of each hour (or other interval selected via indicator dialogue box). This will also avoid a different picture in modes COBC = false and COBC = true. Due to the repainting the indicator is not fit for use with an automated strategy. Please contact me, if you wish to use it for automated trading, as it will require a minor modification.

The indicator can be found here:




Reply With Quote
  #20 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,460 since Jun 2009
Thanks Given: 33,234
Thanks Received: 101,655


Notifications sent.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on December 20, 2021


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts