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)
Is anyone interested in converting this NT7 bar code into NT8?
// SVERenko Bars Type - V1.0
// Display of Renko full size bars with or without session breaks
// Sylvain Vervoort
// http://stocata.org
//
using System;
using System.ComponentModel;
using System.IO;
public override PeriodType BuiltFrom
{
get { return PeriodType.Tick; }
}
public override Gui.Chart.ChartStyleType[] ChartStyleTypesSupported
{
get { return new Gui.Chart.ChartStyleType[] { Gui.Chart.ChartStyleType.CandleStick }; }
}
public override int GetInitialLookBackDays(Period period, int barsBack)
{
return 1;
}
public override object Clone()
{
return new SveRenkoBarsType();
}
public override int DefaultValue
{
get { return 10; }
}
public override string DisplayName
{
get { return "SveRenko"; }
}
public override PropertyDescriptorCollection GetProperties(PropertyDescriptor propertyDescriptor, Period period, Attribute[] attributes)
{
PropertyDescriptorCollection properties = base.GetProperties(propertyDescriptor, period, attributes);
// Remove properties not needed for SveRenko
properties.Remove(properties.Find("BasePeriodType", true));
properties.Remove(properties.Find("BasePeriodValue", true));
properties.Remove(properties.Find("PointAndFigurePriceType", true));
properties.Remove(properties.Find("ReversalType", true));
// Names used in the data series properties
Gui.Design.DisplayNameAttribute.SetDisplayName(properties, "Value", "\rRenko Tick Size");
Gui.Design.DisplayNameAttribute.SetDisplayName(properties, "Value2", "\rSession Breaks (1=Y:2=N)");
return properties;
}
public override bool IsIntraday
{
get { return true; }
}
public override double GetPercentComplete(Bars bars, DateTime now)
{
throw new ApplicationException("GetPercentComplete not supported in " + DisplayName);
}
public SveRenkoBarsType() : base(PeriodType.Custom1) {}
/// <summary>
/// write debug to log file
/// </summary>
// Use this to store wanted debug information in a file Renko.log in the NinjaTrader log folder
// string msg = string.Concat("myValue1: ", myValue1.ToString(), "\r\nmyValue2: ", myValue2.ToString());
// Debug(time, bars.Count, msg);
void Debug(DateTime time, int bar, string msg)
{
// local variables
string path = string.Concat(Cbi.Core.UserDataDir.ToString(), @"log\Renko.log");
FileInfo file = new FileInfo(path);
I hope someone will give you a hand with this. In the meantime, here are some suggestions that may improve your chances:
1, (And by far the most important) -- If you want some programming help, do not ever just print out the code in a post window. Why? Because it does not indent the lines properly, and it produces a huge blob of text that no one can read and that no one is going to try to figure out.
This is not your fault. It is the fault of the software, but take my word for it as a long-time programmer, the code as you are showing it is unreadable. This is actually worse than it seems, because when you copy/paste the code into the post window, it looks like it's indented OK. It just renders like this big mess when you hit Submit.
Instead, either export the indicator code in a zip file, or better yet, locate the .cs file (if you don't know what I'm talking about, just use the .zip export), and attach that file, without printing it, to your request. Why? Because anyone who is going to work on the indicator will need it as a file, not as text they have to copy off the screen, so make it easier for them.
2. Since you are an Elite member, you have access to the free NT7 to 8 thread, so you can make your post there and have a better chance of it being looked at. Here"s the link:
As we near the release of NinjaTrader 8, I wanted to post this notice and provide a thread for conversion requests.
As you know, NT7 indicators will not work in NT8 without modification. Some will require only very minor tweaks that may …
3. Show someone who is reading your post some reason why they should want to help. Usually traders like cool things on charts, so one thing you could do would be to put up a screen shot showing that this is a cool indicator that does something interesting, Or, you could simply add a description of what it does and why you think it's something that is useful. If you don't do something to engage someone else's interest, all you're doing is asking them to do some extra work for you without telling them why they should care. Not the best idea.
I hope you are successful in getting your code converted. These ideas may help you.
Bob.
When one door closes, another opens.
-- Cervantes, Don Quixote