Support Board
Date/Time: Thu, 16 Jan 2025 10:55:18 +0000
Post From: backtest using trade management by study and Bars since entry
[2017-10-23 16:41:58] |
Sierra Chart Engineering - Posts: 104368 |
The Trade Management by Study study does work during a bar-based practice. To verify this, when you run the bar based back test, use a smaller Bar Processing Increment like 10 to see updates more often and notice that the stop order is moving. Also here is the documentation for that study: Attached Orders: Study Controlled Targets and Stops Also, I have notice that sc.GetBarsSinceLastTradeOrderEntry() & sc.GetBarHasClosedStatus() do not always play nice in the backtests. I was getting trades and then it would suddenly stop. Once I removed, sc.GetBarHasClosedStatus() the study functioned fine.
There is no way we can possibly answer this. This is something that you need to debug. Refer to:Automated Trading Management: Troubleshooting Automated Trading System Behavior Also the source code for that function can be found within SierraChart.h file. You can see exactly what it does. It does function correctly as designed. Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2017-10-23 16:42:56
|