NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 04-05-2009, 11:09 AM   #1
ctrlbrk
Senior Member
 
Join Date: Oct 2008
Location: Dallas, TX
Posts: 682
Thanks: 0
Thanked 2 times in 2 posts
Default Seeking Programmer for Hire for complex project

Dear programmer,

I want to hire a Ninja programmer that can deliver to me:

1) Fully functioning source
2) Function I can easily incorporate into my other strategies
3) Ability to connect to my private MySQL database
4) Store information into my DB regarding the success/failure of last trade
5) Retrieve information from my DB regarding past trades success/failure

The information recorded on the trade would be something like:
a) Date/time of entry/exit
b) Instrument
c) Entry price
d) MAE
e) MFE
f) Exit price
g) Stop
h) Target
i) Multiple indicator values at entry and exit, such as "indicator 1: value 1", "indicator 1: value 2", "indicator 2: value 1", "indicator 3: value 1"

It is also very likely the DB will need to store a lot of other information in the database, such as the open/high of each bar and the values of each indicator passed to it. This is so that later when a trade fails, the database will contain the information necessary to determine what the indicator values would need to have been in order to either not take the trade if the target was not possible before hitting the stop, or what the indicator values should have been to get an earlier/later/better entry in order to hit the target before hitting the stop.

My strategy will need to be able to use the global function to query the database for this information, so it can make changes to itself (self-adapting/self-learning) for future trades.

I can call an update function onbarupdate (close of bar) so database has access to ninja variables. It can also be called immediately upon execution of an Entry order, with predefined stops and targets. So it can use this info to determine if a trade was a success or failure, or maybe there is another way to query Ninja directly for this.

I am willing to take on partners that want to split the cost of development and receive the full code, you can let me know if interested.

Mike
ctrlbrk is offline  
Reply With Quote
Old 04-10-2009, 01:15 AM   #2
ctrlbrk
Senior Member
 
Join Date: Oct 2008
Location: Dallas, TX
Posts: 682
Thanks: 0
Thanked 2 times in 2 posts
Default

Well, I've managed to accomplish the beginning of this on my own.

I now have a mySQL database storing trade transactions, and a whole slew of indicator values at the time of the trade, along with the profit target, stop limit, etc.

It is only a beginning, but I can now query the DB to see if the last trade was successful, and know what the values of certain indicators were if it was (or wasn't), and then Ninja could take a different action.

Below is a screen shot of mysql db table, along with the trades tab from ninja.

Woot!



Mike
ctrlbrk is offline  
Reply With Quote
Old 04-10-2009, 01:58 AM   #3
Elliott Wave
Senior Member
 
Join Date: Mar 2008
Posts: 731
Thanks: 0
Thanked 1 time in 1 post
Default

I had a similar idea a while ago. It seems like it could be a great way to develop and improve trading strategies.

Good luck.
Elliott Wave is offline  
Reply With Quote
Old 04-10-2009, 11:05 PM   #4
pauly139
Member
 
Join Date: Sep 2008
Location: Sunshine Coast, Australia
Posts: 98
Thanks: 0
Thanked 0 times in 0 posts
Send a message via Skype™ to pauly139
Default Indicator / Trade Analysis

Hi guys

I wish you good luck with your project - I spent 3 years as part of a team that did just this. We analysed 100s of millions of trades / indicator combinations, including combinations of indicators. We used Microsoft Analysis Server with a cluster of 10 pcs automatically collecting trade data and analysing over many 1000s of hours.

In our case it proved to be a dead end, all you get are the classic curve fitting results.

Rgds
Paul
pauly139 is offline  
Reply With Quote
Old 04-10-2009, 11:11 PM   #5
ctrlbrk
Senior Member
 
Join Date: Oct 2008
Location: Dallas, TX
Posts: 682
Thanks: 0
Thanked 2 times in 2 posts
Default

Quote:
Originally Posted by pauly139 View Post
Hi guys

I wish you good luck with your project - I spent 3 years as part of a team that did just this. We analysed 100s of millions of trades / indicator combinations, including combinations of indicators. We used Microsoft Analysis Server with a cluster of 10 pcs automatically collecting trade data and analysing over many 1000s of hours.

In our case it proved to be a dead end, all you get are the classic curve fitting results.

Rgds
Paul
Wow.

But surely you agree you can make better trade decisions (or the strategy can) by examining some of this information, yes?

Mike
ctrlbrk is offline  
Reply With Quote
Old 04-10-2009, 11:19 PM   #6
pauly139
Member
 
Join Date: Sep 2008
Location: Sunshine Coast, Australia
Posts: 98
Thanks: 0
Thanked 0 times in 0 posts
Send a message via Skype™ to pauly139
Default

It depends upon how you approach the whole exercise. If you use such a system to try and find indicators that work, no. If you design your analysis to look at indicators that you know have a certain performance, using whatever metrics you decide are useful, and then compare that performance in different market situations, then some value can be found.

However this was just my experience - others may have had better success :-)
pauly139 is offline  
Reply With Quote
Old 05-09-2009, 11:43 AM   #7
ScottB
Senior Member
 
Join Date: Jan 2009
Posts: 414
Thanks: 0
Thanked 20 times in 20 posts
Default

I am late to this thread but my experience is much the same as pauly139's. I was with a hedge fund working on high frequency/algorithmic trading and in the end most of that stuff didn't help.

What does work is pure price action analysis around opening ranges and pivots (R1, S1, etc). On another forum, someone (not me) started what amounted to an adult (to use the term loosely) food fight by quoting studies that seemed to indicate that most indicators were not useful at all and the rest were only marginally useful.

Traders just don't want to hear that. When looking at a chart, your eyes will naturally be drawn to things that look predictive but try those same techniques against what is affectionally known as the hard right edge of the chart.
Last edited by ScottB; 03-27-2011 at 07:53 AM.
ScottB is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Trendline n Horizontal Support and Resistences.Seeking Help from Programmers vrathee NinjaScript File Sharing Discussion 7 01-19-2011 08:30 AM
using NT functions in a VS2008 project jonmoron General Programming 1 03-28-2009 12:14 PM
A very complex stragey needs help vpr10c Strategy Development 1 06-23-2008 10:14 AM
Complex ATM Strategies Sidhartha ATM Strategies (Discretionary Trading) 6 04-18-2008 02:01 AM
Complex ATM deanldavis475 ATM Strategies (Discretionary Trading) 1 01-07-2008 06:05 AM


All times are GMT -6. The time now is 12:01 PM.