This will be my first post ever in a Stock Forum. I'm a beginner trader who has a long background of programming in Java, Vector Analysis and Finance in general - but I've just started out with TA and grown a big passion for Quantitative analysis and realised that it is what I would want to work with for the rest of my life.
Enough about me I'm sorry for posting such a beginner question. I'm very used to look for similiar answers on search engines, but since I've only been programming for two days in Power Language and I'm very stuck, I'll appreciate any help.
Problem Description: I'm trying to build a simple signal in MC which buys Stocks when RSI hits less than 30, and sells if it hits bigger than 70. Unfortunatley, I'm having a lot of difficulties understanding the arguments of the RSI() function in MC, and how would it know how much I would like to buy?
welcome to futures.io (formerly BMT). Your code uses "crosses over" for both thresholds, when in fact I guess you are looking for "crosses under OverSold". For specifying how much to buy/sell: This can either be done under the properties when you load the strategy to a chart or directly in the code like this.
"Shares" is the same as "contracts", so you can use either one.
The following 2 users say Thank You to ABCTG for this post: