Back

Signal Ranking

Hi all,

I'd like to know how QC ranks simulataneous signals. For instance, say there are 2 buy signals in a period, and enough capital for a single bet, which signal is chosen? I'd also like to know what is the best way to  include a custom function to replace the default behaviour. As an example, in Amibroker, there is the concept of PositionScore, i.e. see 'first kind of ranking' on the this page.

Any help would be appreciated,

Gavin.

Update Backtest








Hi Gavin, we don't have that concept in LEAN as we give you more direct control over the trading. The trade which is executed first is whatever you send first. Market orders are executed synchronously (so capital is updated immediately); and limit/stop orders are sent to the brokerage in the order sent so it will only execute the first one before rejecting the second with an insufficient capital message.

1

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.


Thanks Jared, I thought as much, but wanted to make sure I hadn't missed it in the docs. Despite being new to c#, I think can solve this one. Something along the lines of storing signals in a dictionary, iterating my function over it, storing and ordering the values.

1

Update Backtest





0

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.


Loading...

This discussion is closed