Support Board
Date/Time: Sat, 01 Feb 2025 09:56:12 +0000
How does the sc.MaximumOpenPositionProfit work?
View Count: 639
[2019-07-11 15:22:25] |
tomas262 - Posts: 144 |
I have set a condition in ACSIL when sc.MaximumOpenPositionProfit >= 5 ticks, SL is adjusted. It works well during reply but during SIM, the action is sometimes not triggered as soon as the open profit reaches 5 ticks but later the second time the position reaches that open profit. It is shown on the screenshot attached. At the high (1) the action should have been triggered but nothing happened. As soon as the market reached the same price again at high (2) the action was finally triggered. It does not makes sense since max pos PL at (1) = max pos PL (2) How is the sc.MaximumOpenPositionProfit calculated (evaluated) then really? Do I miss something? Date Time Of Last Edit: 2019-07-11 15:31:18
|
sc.MaximumOpenPositionProfit.png / V - Attached On 2019-07-11 15:22:18 UTC - Size: 84.45 KB - 234 views |
[2019-07-11 20:21:19] |
Sierra Chart Engineering - Posts: 104368 |
There is no variable sc.MaximumOpenPositionProfit It is part of this structure: s_SCPositionData::MaximumOpenPositionProfit You need to debug the issue and log the values that you are getting and see what the problem is. Refer to: sc.AddMessageToLog() Also refer to: Step-By-Step ACSIL Debugging 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: 2019-07-11 20:22:09
|
To post a message in this thread, you need to log in with your Sierra Chart account: