Login Page - Create Account

Support Board


Date/Time: Tue, 16 Apr 2024 23:41:44 +0000



Post From: Trade by Management

[2022-05-13 14:19:39]
John - SC Support - Posts: 30907
With the Super Trend Stop study when the price moves the opposite direction the position of the Stop can flip to the other side of the bar, in so doing, for a Short position, this would move the stop below the current price which would close out your position.

Therefore, if you want to use the Super Trend Stop study, then you would either need to find a way to "buffer" the line in case it flips, or change the code for the study so that it is only calculating for one type of position (long or short).

In terms of buffering, you would want to use the Spreadsheet Study and then check the price of the line against the current price and use the previous value if it has flipped sides. For example, you would enter the following formula for a short position:
=IF(ID1.SG1@3 <= ID0.SG4@3, ID1.SG1@4, ID1.SG3)

Where ID1.SG1 is the Super Trend Study and Subgraph and ID0.SG4 is the Close/Last of the bar.

Refer to the following for the Spreadsheet Study in general:
Using the Spreadsheet Study

And refer to the following for how to reference Studies and Subgraphs in the Spreadsheet Study (to explain the ID1.SG1@3 and @4 items):
Working with Spreadsheets: References to Study Subgraph Columns when using the Spreadsheet Study
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing