New programmer and trader need some tips

Hi guys,

Basically I am a new trader and would like just some understanding of how some of this works. I originally started in MT5 but found it too hard and moved to cAlgo but limitations of the software meant I didn't enjoy it much. A few questions I have:

1. Can you do partial closing in this on the backtest???? cAlgo didn't support partial closing and it put me off.
2. Can you do indicators of indicators??? This seem straight forward but I'm just making sure.
3. What is tolerance and how does it work???? What is the "m" at the for??? I understand its like slippage but I am just making sure.
4. Is there an optimization feature?
5. Is the following format for an order correct or is it some other way??

if condition than
else if reverse condition than
end if

thank you for answers and sorry if these are idiotic questions I'm new to this and not much of a coder just looking to backtest a few strategies.
Update Backtest

Hey Jagtar, I hope this helps clear some things up:

1. Not 100% sure what you mean by partial closing, it sounds like if you can buy 100 shares, and then sell 50 shares? If that is what you're asking then yes. You can buy/sell any amount provided your cash/leverage allows it.

2. Yes, we support composition of indicators through a few different syntaxes. My favorite syntax is the '.Of' extension method (See on github). Also, check out the attached project for an example of composing indicators.

3. Not sure I understand your question. Some context would help here. The 'm' makes me think of the C# literal for saying a number is of decimal type:

// the 'm' at the end here tells the compiler this is a decimal value, not a double value
decimal myDecimalValue = 1.23m;
double myDoubleValue = 1.23;

4. Optimization is an upcoming feature and is expected to be released following paper/live trading.

5. You can submit orders in any way you choose. It is not uncommon to have completely different entrance and exit criterion. The example you provided is sufficient however. I recommend you take a peak at the MovingAverageCross example in the QC University.

ok thanks for your reply.

Update Backtest


The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


This discussion is closed