Error CS0103
Author: 07nioe
Creation Date: 9/17/2014 3:30 PM
profile picture

07nioe

#1
Hi, I really don't understand where the error is. It is a bar Problem in line 148. But I don't know why. Does anyone hast an idea? Thank you.

Best
Niels

Here is the code:

CODE:
Please log in to see this code.
profile picture

Eugene

#2
Missing opening curly bracket "{":

CODE:
Please log in to see this code.


profile picture

07nioe

#3
GREAT!!! Thank you!!
profile picture

WEALTHPRO25

#4
i have a bar problem getting error cs0103, please help, thank you

CODE:
Please log in to see this code.
profile picture

Eugene

#5
Like I suggested more than two years ago in another conversation, "One can not just copy/paste blocks of code from different sources and expect them to work." Unfortunately, my impression is that your current code is still after this "method". At least placing BuyAtMarket outside of the trading loop (or maybe not creating one) and expecting this to work magically indicates that you're trying to mix some instructions from different scripts or insert your ideas in someone's scripts without attaining a solid understanding of the basic concepts of WealthScript such as the trading loop. This will inevitably cause compiler errors like CS0103 and others as per the other similar topics where you participated.

Wealth-Lab is a platform for programming trading systems but if it presents difficulty please consider using the Rules wizard. We've been supporting you since 2014 but if you plan to come up with a working strategy without investing a little effort into studying some C# 101 and the WealthScript Programming Guide (Programming Trading Strategies > Trading Loop), I'm afraid this will only end up in frustration for us both.
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).