Indicator of Metastock to NinjaTrader - NinjaTrader Programming | futures io social day trading
futures io futures trading


Indicator of Metastock to NinjaTrader
Updated: Views / Replies:2,374 / 9
Created: by dimitri Attachments:1

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
 

Indicator of Metastock to NinjaTrader

  #1 (permalink)
Elite Member
Athens - Greece
 
Futures Experience: Intermediate
Platform: Metastock
 
Posts: 75 since Jul 2010
Thanks: 202 given, 32 received

Indicator of Metastock to NinjaTrader

Hi,
I am actualy new in NinjaTrader and i am trying to convert some indicators to NinjaTrader language.

1) Ref(LLV(C,2),-1) means plot the price (value) of Previous Day --Ref(........,-1)-- of ...(LLV(C,2),..) means
Lowest Low Value , Closing Price, 2=2 Last Time Periods.

2) Ref(HHV((H-L),2),0) means plot the price (value) of Today --Ref(........,0)-- of ...(HHV(H-L,2),..) means
Highest HighValue , Closing Price, 2=2 Last Time Periods.

Anybody who can give a help because i am not a programmer for NinjaTrader.
My mail dimitrioscharitos@gmail.com

Thank you for your attention
dimitri

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
Orlando, Florida
 
Futures Experience: Advanced
Platform: NinjaTrader, TradeStation, MultiCharts, eSignal, MetaTrader
Favorite Futures: ES
 
Posts: 56 since Aug 2010
Thanks: 3 given, 66 received


dimitri,
I think this is what you're looking for.

1) MIN(Close,2)[1]
2) MAX(Close,2)[1]


dimitri View Post
Hi,
I am actualy new in NinjaTrader and i am trying to convert some indicators to NinjaTrader language.

1) Ref(LLV(C,2),-1) means plot the price (value) of Previous Day --Ref(........,-1)-- of ...(LLV(C,2),..) means
Lowest Low Value , Closing Price, 2=2 Last Time Periods.

2) Ref(HHV((H-L),2),0) means plot the price (value) of Today --Ref(........,0)-- of ...(HHV(H-L,2),..) means
Highest HighValue , Closing Price, 2=2 Last Time Periods.

Anybody who can give a help because i am not a programmer for NinjaTrader.
My mail dimitrioscharitos@gmail.com

Thank you for your attention
dimitri


Reply With Quote
The following 2 users say Thank You to MooreTech for this post:
 
  #4 (permalink)
Elite Member
Athens - Greece
 
Futures Experience: Intermediate
Platform: Metastock
 
Posts: 75 since Jul 2010
Thanks: 202 given, 32 received

Thank you for your reply.
Is that possible to send me as an indicator so i can import and check....
Thank you again
Dimitri

Reply With Quote
 
  #5 (permalink)
Elite Member
Orlando, Florida
 
Futures Experience: Advanced
Platform: NinjaTrader, TradeStation, MultiCharts, eSignal, MetaTrader
Favorite Futures: ES
 
Posts: 56 since Aug 2010
Thanks: 3 given, 66 received

This is the code for the indicator. Are you using NT 6.5 or 7?

 
Code

#region Using declarations
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Xml.Serialization;
using NinjaTrader.Cbi;
using NinjaTrader.Data;
using NinjaTrader.Gui.Chart;
#endregion

// This namespace holds all indicators and is required. Do not change it.
namespace NinjaTrader.Indicator
{
    /// <summary>
    /// Enter the description of your new custom indicator here
    /// </summary>
    [Description("Enter the description of your new custom indicator here")]
    public class test : Indicator
    {
        #region Variables
        // Wizard generated variables
            private int barsBack = 2; // Default setting for BarsBack
        // User defined variables (add any user defined variables below)
        #endregion

        /// <summary>
        /// This method is used to configure the indicator and is called once before any bar data is loaded.
        /// </summary>
        protected override void Initialize()
        {
            Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "Plot0"));
            Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "Plot1"));
            CalculateOnBarClose    = true;
            Overlay                = true;
            PriceTypeSupported    = false;
        }

        /// <summary>
        /// Called on each bar update event (incoming tick)
        /// </summary>
        protected override void OnBarUpdate()
        {
            if (CurrentBar<barsBack)
                return;
            
            double min = MIN(Close,barsBack)[1];
            double max = MAX(Close,barsBack)[0];
            Plot0.Set(min);
            Plot1.Set(max);
        }

        #region Properties
        [Browsable(false)]    // this line prevents the data series from being displayed in the indicator properties dialog, do not remove
        [XmlIgnore()]        // this line ensures that the indicator can be saved/recovered as part of a chart template, do not remove
        public DataSeries Plot0
        {
            get { return Values[0]; }
        }
        
        [Browsable(false)]    // this line prevents the data series from being displayed in the indicator properties dialog, do not remove
        [XmlIgnore()]        // this line ensures that the indicator can be saved/recovered as part of a chart template, do not remove
        public DataSeries Plot1
        {
            get { return Values[1]; }
        }

        [Description("")]
        [Category("Parameters")]
        public int BarsBack
        {
            get { return barsBack; }
            set { barsBack = Math.Max(1, value); }
        }
        #endregion
    }
}
Also, the description you give "2) Ref(HHV((H-L),2),0) means plot the price (value) of Today --Ref(........,0)-- of ...(HHV(H-L,2),..) means Highest HighValue , Closing Price, 2=2 Last Time Periods." looks inconsistent. HHV((H-L),2) looks like you are using the value of H-L, not the closing price. Which is correct? The code above uses closing prices.

Reply With Quote
The following user says Thank You to MooreTech for this post:
 
  #6 (permalink)
Elite Member
Athens - Greece
 
Futures Experience: Intermediate
Platform: Metastock
 
Posts: 75 since Jul 2010
Thanks: 202 given, 32 received

Dear Sirs,
Thank you really very much for your REPLY ... !!!

As i am testing both NT 6.5 and 7, please info me if special attention needed.
I told that i am novice in NT, please tell me how to impost this "test" indicator and how to save it. Because i have tried to replace the content of another indicator which i create through "indicator wizard" and i replaced all the "text", but it does not show on the indicator list if i want to apply on to a chart..... , but it appears in the "edit indicator" menu.... Please Help.

Thank you in advance
Best Regards
Dimitri

Reply With Quote
 
  #7 (permalink)
Elite Member
las vegas
 
Futures Experience: Intermediate
Platform: Sierra Chart
Broker/Data: Velocity/IB
Favorite Futures: 6E
 
Posts: 1,147 since Feb 2010
Thanks: 304 given, 836 received

"public class test : Indicator"

I believe this part of the code controls the name, after pasting and compiling can you see the indicator listed as "test"?

Reply With Quote
 
  #8 (permalink)
Elite Member
las vegas
 
Futures Experience: Intermediate
Platform: Sierra Chart
Broker/Data: Velocity/IB
Favorite Futures: 6E
 
Posts: 1,147 since Feb 2010
Thanks: 304 given, 836 received

No, that's not it, I don't know how it works, but try this, click File, Utilities, Import Ninjascript and select this file.

Attached Files
Register to download File Type: zip DimitriHighLow.zip (5.5 KB, 28 views)
Reply With Quote
The following user says Thank You to vegasfoster for this post:
 
  #9 (permalink)
Elite Member
Athens - Greece
 
Futures Experience: Intermediate
Platform: Metastock
 
Posts: 75 since Jul 2010
Thanks: 202 given, 32 received

Dear VEGASFOSTER,
Thank you very much too, for your help. I will try it and let know to all of you....
Could you, please expain how to "produce" a text (indicator/strategy) into a ZIP and .cs file ?????

Thank you again
Dimitri

Reply With Quote
 
  #10 (permalink)
Elite Member
Athens - Greece
 
Futures Experience: Intermediate
Platform: Metastock
 
Posts: 75 since Jul 2010
Thanks: 202 given, 32 received


Dear VEGASFOSTER,

I have tried, it looks OK!.
If i need them separated also .... how could i do that ?????

Regards
Dimitri

Reply With Quote

Reply



futures io > > > > > Indicator of Metastock to 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
Looking for NinjaTrader Indicator h20polo NinjaTrader 3 May 24th, 2011 06:40 PM
Importing Indicator to NinjaTrader Spudz NinjaTrader 2 April 29th, 2011 02:30 AM
Metastock Pivot Lines for Ninjatrader peakskill NinjaTrader Programming 3 February 6th, 2011 08:22 AM
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


All times are GMT -4. The time now is 08:54 PM.

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-16 in 0.18 seconds with 20 queries on phoenix via your IP 54.160.245.121