Support Board
Date/Time: Sat, 23 Nov 2024 19:05:40 +0000
Post From: trading system - study subgraph crossover
[2024-08-07 14:12:14] |
John - SC Support - Posts: 36238 |
First, set the Input for "Action on Crossover When in Position" to "Exit on Crossover". Refer to the information on this in the documentation here: Trading System - Study Subgraph Crossover With regards to only getting Long trades, you would have to change the code for that study to do this, as it is not setup to allow you to select this (it determines whether a Buy or Sell is done based on the direction of the crossover). The source code is in the 'tradingsystem.cpp' file located in the ACS_Source folder under your main Sierra Chart installation folder. Refer to the following: How to Build an Advanced Custom Study from Source Code The other option is to use the "Trading System Based on Alert Condition" and set the Alert Condition to be the following: =CROSSOVER(ID6.SG3, ID6.SG4) On this system, you can define the order type to occur when the condition is met. Keep in mind there are also options for "CROSSFROMABOVE()" and "CROSSFROMBELOW()" if you want a certain direction only to generate the order. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |