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


Metastock Pivot Lines for Ninjatrader
Updated: Views / Replies:3,921 / 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

Reply
 
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));
pp:=(yc+yh+yl)/3;
r1:=(pp*2)-yl;
r1m:=r1-((r1-pp)/2);
s1:=(pp*2)-yh;
s1m:=pp-((pp-s1)/2);
r2:=pp+r1-s1;
r2m:=r2-((r2-r1)/2);
s2:= pp-r1+s1;
s2m:=s1-((s1-s2)/2);
r2;
r2m;
r1;
r1m;
pp;
s1m;
s1;
s2m;
s2

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?

Thanks!

Attached Thumbnails
Metastock Pivot Lines for Ninjatrader-metastock_4hr_pivots.jpg  

Last edited by peakskill; November 20th, 2010 at 11: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,653 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary


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 PivotsHourly.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.

~Jim

Reply With Quote

Reply



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)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

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 04:28 PM
From METASTOCK to Ninja Trader dimitri NinjaTrader Programming 20 November 15th, 2010 11:32 AM
how to get the previous value of indicator like "prev" in Metastock? duzers EasyLanguage Programming 4 October 1st, 2010 09:59 AM
3 day Pivot pchofard The Elite Circle 2 August 21st, 2010 09:45 PM
Indicator of Metastock to NinjaTrader dimitri NinjaTrader Programming 9 August 17th, 2010 09:12 AM


All times are GMT -4. The time now is 12:48 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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 2017-12-14 in 0.09 seconds with 20 queries on phoenix via your IP 54.221.93.187