Login Page - Create Account

Support Board


Date/Time: Mon, 13 May 2024 22:38:50 +0000



Post From: Trading System Based on Alert Condition

[2018-03-16 08:54:05]
User35525 - Posts: 180
I figured this out after watching a video from Infinity Futures called "Ready, Aim, Fire How to Create a System and Send Automated Trades with Sierra Chart": https://www.youtube.com/watch?v=8o_jYvu1HzQ

I didn't understand fully that most study alerts aren't like the "Color bar based on alert condition" alerts, which will process the last completed bar when selecting "Evaluate on Bar Close Only".

For anybody else needing help, the way to get Trading System Based on Alert Condition to process signals generated from "Color bar based on alert condition" alerts directed to evaluate on bar close only, is to use these settings, within the Trading System Based on Alert Condition study:
1. Deselect "Evaluate On Bar Close" on the Alerts tab (this is optional and doesn't seem to make any difference, but I deselected it anyway to be extra careful).
2. Select "Alert Only Once per Bar" on the Alerts tab, to make sure you don't get a follow-up, duplicate signals after a complete round turn has executed, in the event the chart is still building the bar following the signal generated by the "Color bar based on alert condition" study. (may be moot due to state logic in Trading System Based on Alert Condition but it doesn't hurt).
3. Set "Evaluate on Bar Close Only" to "No" on the "Settings and Inputs" tab. This is vital, and documented by SC, but I didn't understand that "Trading System Based on Alert Condition" processes the current bar by default (which will be the following bar after a signal generated on bar-close (...yes it's obvious now)
4. Use indexing to refer to the previous full bar on the alert set on the Alerts tab: i.e. for my example in post #15 use this: ID1.SG1[-1]=1

This study is a very welcome addition to Sierra Chart and is very handy.
Date Time Of Last Edit: 2018-03-16 09:17:50