Support Board
Date/Time: Thu, 06 Feb 2025 13:59:56 +0000
Post From: Adding 2nd Tading System Built on Alert study for Buy Exit
[2020-04-19 23:23:53] |
User696768 - Posts: 4 |
Getting back into trading after a 10-year hiatus. Checked out several packages including: TradeStation, NinjaTrader. Settling on SC as it seems full-featured, fast, and more intuitive with chart studies. Plus, I know C++ (rusty, though). I followed along with the Optimus YouTube video on "Automated Trading System Based on Alert Condition" https://www.youtube.com/watch?v=_NSLDwhSTC8&list=PL8H8YRBcXPV3y6eBcw9CKtwlq4-dJvpnG&index=25&t=0s It uses a price cross of SMA to enter long. Got it working ok, but they did not show a corresponding Buy Exit condition. I added a 2nd "Trading System Based on Alert" study, duplicated the inputs from the 'Buy Entry' study, changing only the following two settings: 1. changed 'Order Action on Alert' from 'Buy Entry' to 'Buy Exit' 2. change alert condition from: CROSSFROMBELOW(C, ID1.SG1) TO CROSSFROMABOVE(C, ID1.SG1) But, when I run the chart replay, I get the following error: Alert Formula Error - Chart: Replay 120X: ESM20[M] 1 Min #1 | Study: Trading System Based on Alert Condition | Error: #NAME? | Formula: =CROSFROMABOVE(C, ID1.SG2) | No alert sound/email. Anyone know what's wrong here? Or, can you point me to a text or video tutorial on how to add both 'Buy Entry' and 'Buy Exit' "Trading System Based on Alert" studies? |