Login Page - Create Account

Support Board


Date/Time: Sun, 28 Apr 2024 00:41:26 +0000



[Programming Help] - Adding 2nd Tading System Built on Alert study for Buy Exit

View Count: 633

[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?
[2020-04-25 18:41:43]
User696768 - Posts: 4
Are y'all favoring "Spreadsheet System for Trading" over "Trading System Built on Alert"?
[2020-04-25 19:29:16]
Sawtooth - Posts: 3980
From the log entry: =CROSFROMABOVE(C, ID1.SG2) should be =CROSSFROMABOVE(C, ID1.SG2)
Date Time Of Last Edit: 2020-04-26 00:37:50
[2020-04-26 18:44:20]
User696768 - Posts: 4
Right...thanks.

Funny, I copied and pasted the original; messed up the edit.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account