Hello everyone:

I have setup a basic framework to test daily resolution based trades (much like classes in the file BasicTemplateFrameworkAlgorithm.cs). However, I found that the default resolution is "minute"  and it seems hard to do daily resolution based trades in LEAN framework.

For example:

In Alpha Create stage, I use indicators like ADX or MACD to test if there is a trend on daily candles and calculate the stop price to buy the stock. But there is no way to pass these stop prices to the following stages(PortfolioConstruction, RiskManagement, Execution...).

In LEAN examples, I found that most trades are made by MarketOrder. Since most examples are run in minute resolution, it works fine. However in daily resolution based trades I always use StopMarketOrder or StopLimitOrder. I seldom find an example to use such order types and run in daily resolution like in my situation.

Could anyone tell me how can I do it? Thanks!