NeoTicker: C# versus Delphi

C# discussion

Moderator: moderators

User avatar
michal.kreslik
rank: 1000+ posts
rank: 1000+ posts
Posts: 1036
Joined: Sat May 13, 2006 2:40 am
Reputation: 4
Location: Monte Carlo, Monaco
Real name: Michal Kreslik
Gender: Male
Contact:

NeoTicker: C# versus Delphi

Postby michal.kreslik » Mon Jul 24, 2006 10:32 pm

JPT wrote:Michal, AspTrader recommended Delphi but you are sticking with C#. Since C# is free, I guess I am with you.

I need to go to Fry's and find a C# for dummy book!!!! Thanks


C# is in my opinion much better tool than Delphi.

Microsoft did choose C# as their flagship programming language. They are showing what their .NET platform can really do on C# examples very often.

Delphi seems to me to be just a "better Pascal with added objects". C#, on the other hand, is a language that has been written from scratch several years ago and is based on the best features from C++, Java and several other languages.

You can write incredible things with C#. In Visual Studio 2005, there are SQL "connectors" that make it EASY to write an application that uses SQL in a matter of minutes, no prior exhaustive knowledge required. Just have a look at the learning videos in the "important links" topic in this forum.

The new NeoTicker optimizer (the GO - Grid optimizer) uses SQL, too and allows users to pick data, construct multiple objective fitness functions etc. etc. with SQL. That is revolutionary. Tradestation is 100 years behind in this respect.

It will not be easy to master all the possibilities NeoTicker brings, but definitely worth the effort.

By the way, today I have bought the Neo monthly subscription finally.

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.

User avatar
eudamonia
rank: 500+ posts
rank: 500+ posts
Posts: 536
Joined: Thu Jun 15, 2006 9:50 pm
Reputation: 0
Location: Rocklin, CA
Real name: Edward Heming
Gender: Male
Contact:

Postby eudamonia » Mon Jul 24, 2006 10:57 pm

Michal,

Congratulations. Please keep us posted. I'm still behind on learning C# and getting onboard with NeoTicker but I'm finally going to start moving in that direction.

Edward
Eudaimonia (pron.: you-die-moan-e-a) (Greek: εὐδαιμονία) is a classical Greek word commonly translated as 'happiness'. The less subjective "human flourishing" is often preferred as a translation.

Luke
rank: 50+ posts
rank: 50+ posts
Posts: 65
Joined: Sat Jul 01, 2006 1:46 pm
Reputation: 0
Gender: Male

Postby Luke » Wed Aug 16, 2006 5:47 pm

The differences are rather small. What you have spent so much time learning is the object model of NeoTicker. If you weren't a programmer before you might have also had to spend some time learning how to make object declarations, using if-then statements and comparison operators. If I were you, I would start by converting an existing Delphi IDL indicator into a C# indicator. This would by far be the best way to learn. The benefit of C# is in the existing .Net framework which has numerous abilities in solving advanced programming tasks. You probably won't use many of them at first but when your indicator development advances, you will have all that to pull from. You can slowly pick up new C# knowledge as you develop but by no means do you need to know everything before you start to develop indicators in C#.

Simple differences you would have to learn.
Object declarations / assignment
//Delphi
intVar : int;
doubleVar : double;
intVar : = 48;
doubleVar : = 34.34;
//C#
int intVar;
double doubleVar;
intVar = 48;
doubleVar = 34.34;

As you can see the differences are small. I think in general you will find C# much easier and intuitive once you get the hang of it.

This link has a much more complete comparison of syntax differences:
http://www.gekko-software.nl/DotNet/Art01.htm
Last edited by Luke on Tue Oct 03, 2006 5:58 pm, edited 1 time in total.

User avatar
michal.kreslik
rank: 1000+ posts
rank: 1000+ posts
Posts: 1036
Joined: Sat May 13, 2006 2:40 am
Reputation: 4
Location: Monte Carlo, Monaco
Real name: Michal Kreslik
Gender: Male
Contact:

Postby michal.kreslik » Thu Aug 17, 2006 1:41 pm

In sharp contrast to C sharp :), Delphi is not fully object-oriented. That means, it's legal to write a code without any objects involved at all with Delphi. That sometimes produces a spaghetti-like code which is hard to manage, test and debug, especially if your projects exceed certain size.

Thank to its strict object-orientation, C# code is much better organized visually, too. Logical and functional units are enlosed with {block symbols} and if you look at any random code row, you can always tell which functional unit it belongs to.

The principal aim of object-oriented programming is to split the problem into smaller separate problems (objects) and implement every object so that it has got a clearly defined behavior and ideally, it's reusable elsewhere. Then if something doesn't work, you can easily track the trouble down to the disobedient object :) and either correct it, rewrite it or use an existing object that does the same thing from elsewhere (internet..). You can't enforce such a modularity in a programming language that is not strictly object-oriented (like Delphi).

Michal

User avatar
michal.kreslik
rank: 1000+ posts
rank: 1000+ posts
Posts: 1036
Joined: Sat May 13, 2006 2:40 am
Reputation: 4
Location: Monte Carlo, Monaco
Real name: Michal Kreslik
Gender: Male
Contact:

Postby michal.kreslik » Sun Aug 20, 2006 1:09 am

Knight,

Ruby is said to be the textbook etalon of a pure OOP language. Well actually I've good news for you. You absolutely CAN use Ruby in NeoTicker :)

Ruby.NET compiler:

http://plas.fit.qut.edu.au/Ruby.NET/

http://weblogs.asp.net/bleroy/archive/2 ... 40442.aspx


Guess what's amazing with NeoTicker: you can use any progamming language that supports .NET.

Michal

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.

Luke
rank: 50+ posts
rank: 50+ posts
Posts: 65
Joined: Sat Jul 01, 2006 1:46 pm
Reputation: 0
Gender: Male

Postby Luke » Sun Aug 20, 2006 8:00 pm

Han,

I'm a relatively new trader. I can't say I will be doing this for ever. I'm trading my own account; I don't have a hedge fund to keep me going. If I am unable to find a consistently profitable system then I will not continue. Based on statistics, the odds are 9-1 against me.
What I can say is that as long as I'm developing in NeoTicker I will use C# to write my indicators with and I will try and answer fellow NeoTicker users' questions and help out when I am able. I will not be a comparable resource to aspTrader. But everything he has given you and the community is still applicable in C#. The object models are the same for Delphi and .Net.

User avatar
michal.kreslik
rank: 1000+ posts
rank: 1000+ posts
Posts: 1036
Joined: Sat May 13, 2006 2:40 am
Reputation: 4
Location: Monte Carlo, Monaco
Real name: Michal Kreslik
Gender: Male
Contact:

Postby michal.kreslik » Sun Aug 20, 2006 10:58 pm

Han,

I will be developing my C# framework for Neo and I'll be publishing the publishable code. Will be happy to discuss problematic issues concerning C#/Neo with C#/Neo programmers.

Michal

Please add www.kreslik.com to your ad blocker white list.
Thank you for your support.


Return to “C# coding for NeoTicker”