Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: zirjeo

Search: Search took 0.01 seconds.

  1. Thread: count++

    by zirjeo
    Replies
    43
    Views
    61,411

    Re: count++

    I can't seem to send an attachment through the PM, here it is. Thank You for taken a look.
  2. Thread: count++

    by zirjeo
    Replies
    43
    Views
    61,411

    Re: count++

    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...
  3. Thread: count++

    by zirjeo
    Replies
    43
    Views
    61,411

    Re: count++

    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...
  4. Thread: count++

    by zirjeo
    Replies
    43
    Views
    61,411

    Re: count++

    Oh I just meant the documentation regarding Lists. I'll PM after I look into the breakpoints a bit more. thanks
  5. Thread: count++

    by zirjeo
    Replies
    43
    Views
    61,411

    Re: count++

    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...
  6. Thread: count++

    by zirjeo
    Replies
    43
    Views
    61,411

    Re: count++

    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...
  7. Thread: count++

    by zirjeo
    Replies
    43
    Views
    61,411

    Re: count++

    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...
  8. Thread: count++

    by zirjeo
    Replies
    43
    Views
    61,411

    Re: count++

    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...
  9. Thread: count++

    by zirjeo
    Replies
    43
    Views
    61,411

    Re: count++

    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...
  10. Thread: count++

    by zirjeo
    Replies
    43
    Views
    61,411

    Re: count++

    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...
  11. Thread: count++

    by zirjeo
    Replies
    43
    Views
    61,411

    Re: count++

    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...
  12. Thread: count++

    by zirjeo
    Replies
    43
    Views
    61,411

    Re: count++

    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...
  13. Thread: count++

    by zirjeo
    Replies
    43
    Views
    61,411

    Re: count++

    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...
  14. Thread: count++

    by zirjeo
    Replies
    43
    Views
    61,411

    Re: count++

    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.
  15. Thread: count++

    by zirjeo
    Replies
    43
    Views
    61,411

    Re: count++

    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...
  16. Thread: count++

    by zirjeo
    Replies
    43
    Views
    61,411

    Re: count++

    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...
  17. Thread: count++

    by zirjeo
    Replies
    43
    Views
    61,411

    Re: count++

    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>...
  18. Thread: count++

    by zirjeo
    Replies
    43
    Views
    61,411

    Re: count++

    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...
  19. Thread: count++

    by zirjeo
    Replies
    43
    Views
    61,411

    Re: count++

    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...
  20. Thread: count++

    by zirjeo
    Replies
    43
    Views
    61,411

    Re: count++

    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...
  21. Thread: count++

    by zirjeo
    Replies
    43
    Views
    61,411

    Re: count++

    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...
  22. Thread: count++

    by zirjeo
    Replies
    43
    Views
    61,411

    Re: count++

    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...
  23. Thread: count++

    by zirjeo
    Replies
    43
    Views
    61,411

    Re: count++

    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...
  24. Thread: count++

    by zirjeo
    Replies
    43
    Views
    61,411

    count++

    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...
  25. Replies
    0
    Views
    2,518

    stock market trading script...

    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...
Results 1 to 25 of 25


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center