Metastock Pivot Lines for Ninjatrader - NinjaTrader Programming | futures io social day trading
futures io futures trading

Metastock Pivot Lines for Ninjatrader
Updated: Views / Replies:4,536 / 3
Created: by peakskill Attachments:3

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Thread Tools Search this Thread

Metastock Pivot Lines for Ninjatrader

  #1 (permalink)
Elite Member
west greenwich, ri, usa
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: PFG Best
Favorite Futures: gbp/usd
peakskill's Avatar
Posts: 31 since Oct 2010
Thanks: 52 given, 12 received

Metastock Pivot Lines for Ninjatrader

I have an indicator that I use in Metastock ProFX to draw rolling pivot lines during a 4 hour period, based on High, Low, Close of previous 4 hour period.

I use these for forex trading only. The time periods are 0100-0500, 0500-0900, 0900-1300, 1300-1700, 1700-2100, and 2100-0100, all times EST.

For example, at 0500 EST, pivot lines, including the central pivot (blue line) as well as two support and two resistance pivots (solid red lines), and mid-points in between each support and resistance line (dashed red lines) are automatically drawn based on the High, Low and closing price from 0100-0500. See attached image.

Here is the metastock code:

new:= Mod(Hour()-1,4)=0 AND Minute()=0;
yh:=ValueWhen(1,new, Ref(HighestSince(1,new,H),-1));
yl:=ValueWhen(1,new, Ref(LowestSince(1,new,L),-1));
yc:=ValueWhen(1,new, Ref(C,-1));
s2:= pp-r1+s1;

Typically I plot these 4 hour pivot lines on a 3 minute GBPUSD chart. I look for short signals below the central blue pivot line and long signals above, using either the support or resistance lines for profit targets, depending upon whether I am short or long. Often, these targets work out rather well for FOREX trading.

I do not know how to program in Ninjatrader. Can anyone help?


Attached Thumbnails
Metastock Pivot Lines for Ninjatrader-metastock_4hr_pivots.jpg  

Last edited by peakskill; November 20th, 2010 at 10:30 AM. Reason: add the work "rolling"
Reply With Quote
  #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.

  #3 (permalink)
Elite Member
Berlin, Europe
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
Fat Tails's Avatar
Posts: 9,680 since Mar 2010
Thanks: 4,226 given, 25,724 received

Have coded a rolling pivots indicator today. It is a first version so it still needs some adjustments.

- It currently does not have midpivots, but that is easy to add.

- This version aligns itself to the sessions selected via session manager, but I will add an option that the indicator aligns itself to the daybreak only, so that the 4-hour-period will not be interrupted by the start of an intraday session.

- I could also add different versions of pivots, such as wide pivots, Camarilla pivots or Fibonacci pivots.

The chart below shows the time periods that you requested. It uses one session starting at 5:00 PM Est and displays the 4-hourly-pivots for the 6 intraday periods that follow.

Attached Thumbnails
Metastock Pivot Lines for Ninjatrader-gbpusd-3-min-09_12_2010.jpg  
Attached Files
Register to download File Type: zip (6.1 KB, 50 views)
Reply With Quote
The following 3 users say Thank You to Fat Tails for this post:
  #4 (permalink)
Elite Member
west greenwich, ri, usa
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: PFG Best
Favorite Futures: gbp/usd
peakskill's Avatar
Posts: 31 since Oct 2010
Thanks: 52 given, 12 received

Nice Pivots

Thank you for the rolling pivots. They work rather well and I will be sure to use them in my strategy.

Best trading to you and thanks again.


Reply With Quote


futures io > > > > > Metastock Pivot Lines for Ninjatrader

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

Wyckoff Hunting for Great Risk/Reward Ratio w/Gary Fullett

Elite only

Digging into the Details of iSystems w/Stage 5 & iSystems

Jun 5

Similar Threads
Thread Thread Starter Forum Replies Last Post
Plot PIVOT POINTS as horizontal lines for trading sessions in MultiCharts virginiatrader The Elite Circle 7 June 22nd, 2013 03:28 PM
From METASTOCK to Ninja Trader dimitri NinjaTrader Programming 20 November 15th, 2010 10:32 AM
how to get the previous value of indicator like "prev" in Metastock? duzers EasyLanguage Programming 4 October 1st, 2010 08:59 AM
3 day Pivot pchofard The Elite Circle 2 August 21st, 2010 08:45 PM
Indicator of Metastock to NinjaTrader dimitri NinjaTrader Programming 9 August 17th, 2010 08:12 AM

All times are GMT -4. The time now is 03:56 PM.

Copyright © 2018 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432,
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.
no new posts
Page generated 2018-05-22 in 0.10 seconds with 20 queries on phoenix via your IP