Holy Grail Compilation Error - NinjaTrader Programming | futures io social day trading
futures io futures trading


Holy Grail Compilation Error
Updated: Views / Replies:1,635 / 3
Created: by HartRend Attachments:2

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
 

Holy Grail Compilation Error

  #1 (permalink)
Elite Member
Indiana
 
Futures Experience: Beginner
Platform: Ninja Trader
Favorite Futures: Metal Futures
 
Posts: 7 since Feb 2011
Thanks: 5 given, 2 received

Holy Grail Compilation Error

Hello Traders,

I have an issue that I would like a solution for that I can't seem to get to the bottom of on my own. I found Sharky's classroom and have been an avid pupil since. I am attempting to compile a strategy based on the Double MA Paint Holy Grail V2 suggested by Sharky. I understand that he isn't a proponent of automated trading, but none the less I would like to see if I can incorporate this tactic into my strategy. My problem arises when I attempt to compile a strategy while referencing the Double MA Paint Holy Grail V2. Anytime I incorporate the Double MA Paint Holy Grail V2 I receive the "error on generating strategy" error from the compiler. I am using the built in strategy builder to attempt this, as I am not too comfortable with C# yet. I will take any suggestions you have on manually editing the code, I'm just not disciplined enough to build it from scratch. You can see attached a screen shot of the debugger and what it says is wrong. I would just like to be able to compile a strategy that references this indicator. Thank you to anybody who spends their valuable time on this problem with me.

Code from Compiler:


#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.Indicator;
using NinjaTrader.Gui.Chart;
using NinjaTrader.Strategy;
#endregion

// This namespace holds all strategies and is required. Do not change it.
namespace NinjaTrader.Strategy
{
/// <summary>
/// Enter the description of your strategy here
/// </summary>
[Description("Enter the description of your strategy here")]
public class MyCustomStrategy : Strategy
{
#region Variables
// Wizard generated variables
// User defined variables (add any user defined variables below)
#endregion

/// <summary>
/// This method is used to configure the strategy and is called once before any strategy method is called.
/// </summary>
protected override void Initialize()
{
Add(DoubleMAPaintHolyGrailV2(55, NinjaTrader.Indicator.DoubleMA_internal_SharkyPkg+DMAType.WMA, 55, NinjaTrader.Indicator.DoubleMA_internal_SharkyPkg+DMAType.WMA));
Add(DoubleMAPaintHolyGrailV2(55, NinjaTrader.Indicator.DoubleMA_internal_SharkyPkg+DMAType.WMA, 55, NinjaTrader.Indicator.DoubleMA_internal_SharkyPkg+DMAType.WMA));

CalculateOnBarClose = true;
}

/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
// Condition set 1
if (DoubleMAPaintHolyGrailV2(55, NinjaTrader.Indicator.DoubleMA_internal_SharkyPkg+DMAType.WMA, 55, NinjaTrader.Indicator.DoubleMA_internal_SharkyPkg+DMAType.WMA).Signal[0] == 1)
{
EnterLong(DefaultQuantity, "");
}

// Condition set 2
if (DoubleMAPaintHolyGrailV2(55, NinjaTrader.Indicator.DoubleMA_internal_SharkyPkg+DMAType.WMA, 55, NinjaTrader.Indicator.DoubleMA_internal_SharkyPkg+DMAType.WMA).Signal[0] == -1)
{
EnterShort(DefaultQuantity, "");
}
}

#region Properties
#endregion
}
}

Attached Thumbnails
Holy Grail Compilation Error-error.jpg   Holy Grail Compilation Error-dbugerror.jpg  
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
Santa Maria
 
Futures Experience: Advanced
Platform: NinjaTrader, ThinkOrSwim
Broker/Data: Mirus/Zen-Fire
Favorite Futures: ES
 
Posts: 295 since May 2010
Thanks: 101 given, 320 received


Ninja's strategy builder is broken with deeply nested enumerations.

Replace:
NinjaTrader.Indicator.DoubleMA_internal_SharkyPkg+ DMAType.WMA

With:
NinjaTrader.Indicator.DoubleMA_internal_SharkyPkg.DMAType.WMA

Reply With Quote
The following 2 users say Thank You to fluxsmith for this post:
 
  #4 (permalink)
Elite Member
Indiana
 
Futures Experience: Beginner
Platform: Ninja Trader
Favorite Futures: Metal Futures
 
Posts: 7 since Feb 2011
Thanks: 5 given, 2 received

Much Appreciation

FluxSmith,

Good Karma is coming your way!
It worked, and I've learned something new about NT and C#.
Your expertise is much appreciated.
Thanks !

Reply With Quote

Reply



futures io > > > > > Holy Grail Compilation Error

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
Wizards Den (Holy Grail II) TheWizard The Elite Circle 1489 October 10th, 2017 05:17 AM
Sim Trading and the Holy Grail tigertrader Traders Hideout 8 January 14th, 2015 08:32 AM
Holy Grail TheWizard Traders Hideout 585 January 3rd, 2015 11:38 AM
Can this be made to an Indicator(HOLY GRAIL) bugsbunny NinjaTrader Programming 2 February 18th, 2011 10:09 AM


All times are GMT -4. The time now is 09:14 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-16 in 0.15 seconds with 20 queries on phoenix via your IP 54.83.122.227