Community.Components generates error.
Author: bobydesi123
Creation Date: 12/19/2009 6:36 PM
profile picture

bobydesi123

#1
hi,
i have downloaded and installed the Community.Components DLL. trird to run the sample code below:
CODE:
Please log in to see this code.
i get compile error on line 6:
CS0116: a namespace does not directly contain members such as fields or method.
I am new to the wl5.5/c# environment, any help will be much appreciated.


profile picture

Eugene

#2
Hi,
CODE:
Please log in to see this code.

This is a user-induced error. Somehow when copying and pasting the code from Wiki, a line break was deleted. Solution: insert line break after this comment line --
CODE:
Please log in to see this code.

P.S. Please discuss Community.Components in Extensions forum, thank you.
profile picture

bobydesi123

#3
Thanks Eugene,
it compiled without error! I shall post the "community" related questions in the "Extensions forum" in future, sorry. Thanks again for ur prompt and helpful reply.
profile picture

bobydesi123

#4
hi Eugene,
Sorry, i have to keep asking u these silly questions. i am still using WL pro 4.x and trying to move to the WL5.6 environment because i had made lot of investement in creating pascal based stategies.
Ok, the above staretgy compiled fine but it has not fineshed executing yet at the time of this posting. i am trying to run this strategy on "AA" 500 daily bars! I have quad pro laptop with 6gb 1033mz FSB memory and a fast SSD so i dont think processing power/memory is the isssue.
1) why does it keep going. I copied and pasted the example code. I have not made any changes.
2) how do u stop it without closing the WL (in WL 4.x u could set max. time limit for WS file in options)
Thanks.
profile picture

Eugene

#5
QUOTE:
2) how do u stop it without closing the WL (in WL 4.x u could set max. time limit for WS file in options)

Try hitting Escape on your keyboard.
QUOTE:
1) why does it keep going. I copied and pasted the example code. I have not made any changes.

The code should execute in less than half a second. Try disabling on demand data update in the Data Manager, updating your DataSets, and running it again.
profile picture

bobydesi123

#6
Eugene,
Thanks for prompt reply. "esc" worked and disabling "data on demanded" executes the code like u said.
But now I get the following runtime error:
Value "7" is not valid for 'value'. 'value' should be between 'minimum' and 'maximum'.
at wealthlablpro.ChartForma(q)
.
.
.
etc.
(BTW is there a way to copy & paste the error messages?)
Thanks.
profile picture

Eugene

#7
QUOTE:
(BTW is there a way to copy & paste the error messages?)

No, unfortunately.
QUOTE:
Value "7" is not valid for 'value'. 'value' should be between 'minimum' and 'maximum'.

This is an interesting error that we and some other customer ran into a couple of times, but it's not possible to connect the code above and his code to draw a conclusion - they hardly have something in common. As a workaround, try copy/pasting the same code into a new Strategy window. If the error persits, restart WLP and try again.
profile picture

bobydesi123

#8
Eugene,
C & P the code to new strategy and restarting the WL worked! Its strange. Thanks Eugene, ur the man.
I am really impressed by ur quick response and knowledge.Thanks again.
profile picture

Eugene

#9
By the way, could you remember which data provider were you using at the time you've got that error message? tia.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).