Metastock Pivot Lines for Ninjatrader - futures io
futures io



Metastock Pivot Lines for Ninjatrader


Discussion in NinjaTrader

Updated
    1. trending_up 6,451 views
    2. thumb_up 3 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 4 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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

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

 
Search this Thread
 

Metastock Pivot Lines for Ninjatrader

(login for full post details)
  #1 (permalink)
 peakskill 
west greenwich, ri, usa
 
Experience: Intermediate
Platform: NinjaTrader
Broker: PFG Best
Trading: gbp/usd
 
peakskill's Avatar
 
Posts: 31 since Oct 2010
Thanks: 52 given, 12 received

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
Click image for larger version

Name:	metastock_4hr_Pivots.jpg
Views:	233
Size:	304.0 KB
ID:	25947  
Started this thread Reply With Quote

Can you help answer these questions
from other members on futures io?
TD Sequential for NT or MW?
Platforms and Indicators
For the experts of Metastock
Platforms and Indicators
Experience with AGN (Introducing Broker)
Brokers
Eurex Denali vs dxFeed
Sierra Chart
1 min chart v-shape scan help please
ThinkOrSwim
 
 
(login for full post details)
  #3 (permalink)
 Fat Tails 
Berlin, Europe
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,858 since Mar 2010
Thanks: 4,238 given, 26,770 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
Click image for larger version

Name:	$GBPUSD (3 Min)  09_12_2010.jpg
Views:	192
Size:	95.1 KB
ID:	26762  
Attached Files
Register to download File Type: zip PivotsHourly.zip (6.1 KB, 51 views)
Reply With Quote
The following 3 users say Thank You to Fat Tails for this post:
 
(login for full post details)
  #4 (permalink)
 peakskill 
west greenwich, ri, usa
 
Experience: Intermediate
Platform: NinjaTrader
Broker: PFG Best
Trading: gbp/usd
 
peakskill's Avatar
 
Posts: 31 since Oct 2010
Thanks: 52 given, 12 received

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

Started this thread Reply With Quote


futures io Trading Community Platforms and Indicators NinjaTrader > Metastock Pivot Lines for Ninjatrader


Last Updated on February 6, 2011


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Our 12-year anniversary w/ $$,$$$ prizes (check soon)

August
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), 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