Search:
Type: Posts; User: zirjeo
Search:
Search took 0.03 seconds; generated 15 minute(s) ago.
-
October 4th, 2013, 05:24 PM
I can't seem to send an attachment through the PM, here it is. Thank You for taken a look.
-
October 4th, 2013, 03:46 PM
I realize that my coding is very beginner but I know for a fact it doesn't work like this with this software, or at least not exactly. The default stock or 0 index is the stock that is highlighted...
-
October 4th, 2013, 08:52 AM
Received some further info regarding the Add method. It's not that List is not supported in the Ninja Trader Software, it's the fact that in order for a stocks data(such as open, close, high, low...
-
October 3rd, 2013, 10:17 PM
Oh I just meant the documentation regarding Lists. I'll PM after I look into the breakpoints a bit more. thanks
-
October 3rd, 2013, 08:17 PM
I've studied the msdn docs. It seems like the text on lists and count is just not advanced enough to tackle what I'm trying to accomplish. I've tried running breakpoints but it doesn't give the...
-
September 24th, 2013, 08:29 PM
Ok I will run some breakpoints. It's sounds like you are sure though the items added are taking on Index #'s for sure, I wasn't sure if they were taking on any Index at all and just going straight...
-
September 23rd, 2013, 08:52 PM
I sure don't feel like I'm in charge of my code..lol. I'm not getting any compile errors but it doesn't seem to be working correctly. When I add a stock to the List as below is this becoming Index...
-
September 22nd, 2013, 02:27 PM
I understand the dictionary class as far as the first argument being the key and the second being the values. I just didn't quite understand what you were trying to accomplish with having "ABC twice...
-
September 21st, 2013, 01:43 PM
With the way I already have it setup with the for loop below and the fact that I have to use the softwares internal command of BarsInProgress which requires an int, I guess my only choice really is...
-
September 20th, 2013, 08:02 AM
So where I have.... _
_stocks.Add("ABC", new StockEntry { Name = "ABC", ... } );
would I replace "ABC" with 0 as below?...
_stocks.Add(0, new StockEntry { Name = "ABC", ... } );
and if so...
-
September 19th, 2013, 08:23 PM
Ok so I have declared it for the class as such..
private Dictionary<string, StockEntry> _stocks;
But the problem now is that in my OnBarUpdate() section below it's trying to access a dictionary...
-
September 17th, 2013, 07:40 PM
Think I'm getting close, but I'm getting the error... "The name '_stocks' does not exist in the current context
" for the 3 locations highlighted in blue below. Any idea?
public struct...
-
September 16th, 2013, 08:27 PM
I think I might be retarded, so if I have Add("ABC", PeriodType.Minute, 5) instead I would do Add("ABC", PeriodType.Second, 300)?? It's not making sense to me because I have to put...
-
September 16th, 2013, 10:28 AM
I guess I am not following as Dictionary only allows 2 parameters as far as I know, I don't see how I can use 3.
-
September 12th, 2013, 09:41 PM
Unless you disagree with my above email and still think I can somehow use dictionary, I am moving forward and attempting to use a list of structs below. But how do I set it up so it has the 3...
-
September 11th, 2013, 08:02 AM
I don't believe it will allow me to do that, it appears from the software manual below that it requires 3 arguments, otherwise I would think I will get a compile error...
The following syntax...
-
September 6th, 2013, 04:56 PM
I solved the namespace issue by adding using System.Collections.Generic;
But using this... _stockCounts.Add("ACE",PeriodType.Minute, 5);
I don't think I can use...
Dictionary<string, int>...
-
September 2nd, 2013, 11:39 AM
I'm getting some compile errors. Do I put the Dictionary in the initialize() section above all the add's as I have below or is there something else basic I'm missing?
It's telling me type or...
-
August 30th, 2013, 04:29 PM
I just missed a curly bracket when I was copying and pasting and moving things around, sorry about that. And NumEntries++ is just the number of times a particular stock or index meets the criteria...
-
August 30th, 2013, 03:37 PM
Oh boy well here goes, hope it doesn't scare you away. I used NumEntries++ any place where I was wanting it to count and store entries, but that's not anything that actually functions. After it...
-
August 29th, 2013, 09:41 PM
Yes a single EnterLong() method gets called for all stocks. That for loop that loops the script through 0,1,2... that proceeds BarsInProgress == 0, then goes to BarsInProgress == 1 then...
-
August 28th, 2013, 02:28 PM
Ya, you actually understand what im trying to do thats great. EnterLong() gets called for any stock that meets the entry conditions. Each stock 0 thru 2 is passed thru the entry conditions via the...
-
August 27th, 2013, 09:57 PM
Thanks for this, best info I've received so far. If what I'm trying to count is the # of times the three stock ticker symbols below are triggered for a trade. Would I have to make a seperate...
-
August 23rd, 2013, 10:14 AM
Is there a way I can get count++ to function on multiple variables simultaneously.
Say I have variable X, Y & Z and X occurs have it count and store 1 occurrence for X and 2 occurrences for Y...
-
August 20th, 2013, 09:17 PM
The methods used below are internal to the automated trading software I use, I hope it's not too confusing. I've tried to comment below as much as possible. Basically the script Enters a stock...
|
Click Here to Expand Forum to Full Width
|