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.