Write entire algos from a sentence
Chat, Plan or Agent mode. The assistant sees your open files and @-mentions, creates and edits whole projects, and every change goes through Accept / Undo with the lines highlighted.
1import pandas as pd 2 3class MaRevert(Strategy):4 period = Input(42)56 def on_bar(self, bar):7 ma = self.sma(self.period)8 if bar.close < ma and not self.position:9 self.buy()10 elif bar.close > ma:11 self.close() # exit
- Inputs exposed for optimization
- Compiles for Trade charts






