Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
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 for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Hey guys traders and programmers alike, just wanted to give you the heads up of a new open source .net programming language.
My cousin spent the last so far all of 2014 coding it up, he got tried of using C# and he wanted to have true OO language to code with for .net i.e. C#, i.e. NT. He also designed the syntax and semantics to be easy for new traders to use, i.e. me.
in another thread i mentioned it yes, you must have over looked the part where i mention my lack of ability to program, my cousin has provided examples of code either on the code plex of his blog which i provided links to.
"Learning to Trade: The Cost Of Tuition"
- a roadmap of my lessons learned as taught by the market
altho, i can not provide you with code in all three languages, as i am not a programmer, and my cousin does not code easy lang. so let me see what i can find. hopefully it is both essence# and c#.
"Learning to Trade: The Cost Of Tuition"
- a roadmap of my lessons learned as taught by the market
I could not find any either, altho i know that i have watched him write some for examples, i'll ask him after i woke up as i have not slept yet.
here is a example for the code we are using that is likened to easy language this works with nt7 normally this info would be in the strategy dialogue, but we prefer to do it is script so we can have a record of changes made matched to results in our market research. this is not a complete entry and exit rules but it gives you an idea as to how we use essence# and what it looks like as we use.
again i'll have him right for you two pieces of code one in c# and the other essence# later today.
My cousins says that he is not yet at the point of worrying about sample code, he is still working on stuff after the maiden release, and will wait until after the to worry about getting sample code out there for people that need more of a explain then he has currently provided. so i'll keep you posted
"Learning to Trade: The Cost Of Tuition"
- a roadmap of my lessons learned as taught by the market
Here is the Ninja Trader 7 Indicator EMA of course it is written in C#.
//
// Copyright (C) 2006, NinjaTrader LLC <www.ninjatrader.com>.
// NinjaTrader reserves the right to modify or overwrite this NinjaScript component with each release.
//
#region Using declarations
using System;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.ComponentModel;
using System.Xml.Serialization;
using NinjaTrader.Data;
using NinjaTrader.Gui.Chart;
#endregion
// This namespace holds all indicators and is required. Do not change it.
namespace NinjaTrader.Indicator
{
/// <summary>
/// Exponential Moving Average. The Exponential Moving Average is an indicator that shows the average value of a security's price over a period of time. When calculating a moving average. The EMA applies more weight to recent prices than the SMA.
/// </summary>
[Description("The Exponential Moving Average is an indicator that shows the average value of a security's price over a period of time. When calculating a moving average. The EMA applies more weight to recent prices than the SMA.")]
public class EMA : Indicator
{
#region Variables
private int period = 14;
#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.Orange, "EMA"));
#region Properties
/// <summary>
/// </summary>
[Description("Numbers of bars used for calculations")]
[GridCategory("Parameters")]
public int Period
{
get { return period; }
set { period = Math.Max(1, value); }
}
#endregion
}
}
#region NinjaScript generated code. Neither change nor remove.
// This namespace holds all indicators and is required. Do not change it.
namespace NinjaTrader.Indicator
{
public partial class Indicator : IndicatorBase
{
private EMA[] cacheEMA = null;
private static EMA checkEMA = new EMA();
/// <summary>
/// The Exponential Moving Average is an indicator that shows the average value of a security's price over a period of time. When calculating a moving average. The EMA applies more weight to recent prices than the SMA.
/// </summary>
/// <returns></returns>
public EMA EMA(int period)
{
return EMA(Input, period);
}
/// <summary>
/// The Exponential Moving Average is an indicator that shows the average value of a security's price over a period of time. When calculating a moving average. The EMA applies more weight to recent prices than the SMA.
/// </summary>
/// <returns></returns>
public EMA EMA(Data.IDataSeries input, int period)
{
if (cacheEMA != null)
for (int idx = 0; idx < cacheEMA.Length; idx++)
if (cacheEMA[idx].Period == period && cacheEMA[idx].EqualsInput(input))
return cacheEMA[idx];
lock (checkEMA)
{
checkEMA.Period = period;
period = checkEMA.Period;
if (cacheEMA != null)
for (int idx = 0; idx < cacheEMA.Length; idx++)
if (cacheEMA[idx].Period == period && cacheEMA[idx].EqualsInput(input))
return cacheEMA[idx];