Login Page - Create Account

Support Board


Date/Time: Fri, 18 Oct 2024 04:16:44 +0000



Post From: Stop Order Not Working in ASCIL

[2024-05-21 20:11:46]
User431178 - Posts: 517
1. This is the reason, as you are, in theory, trying to enter two trades on the same bar.
2. Ok, so that works at least.
3. Yes, -8997 means skipped because only one trade per bar
4. This is ok, but not for the way you are sending orders (separately).
5. You set them yourself in the setdefaults block, read about them here - Automated Trading From an Advanced Custom Study: Advanced Custom Study Interface Variable Members Relevant to Trading
6. Ok, got it. All you need to do is set the relevant parameters when submitting the entry order, some links below.

Automated Trading From an Advanced Custom Study: [Type: char] s_SCNewOrder::AttachedOrderStop1Type
Automated Trading From an Advanced Custom Study: [Type: double] s_SCNewOrder::StopAllPrice
Automated Trading From an Advanced Custom Study: [Type: double] s_SCNewOrder::StopAllOffset