Login Page - Create Account

Support Board


Date/Time: Sat, 18 Jan 2025 12:56:59 +0000



Post From: ACSIL System

[2018-02-09 20:37:06]
User39772 - Posts: 311
I need to maintain data between the function calls of a trading system because in a next call I need this data that has been updated in the previous call.

I know that global variables could be used for that. Is there another way, e.g. to store such data in one of the structs that contain data for an open position.
I only need this data as long as the position is open.

Another question is regarding /BEtrailing stop. The existing examples are somehow confusing for me.

Implementing simple trailing stop and profit target in ACSIL | Post: 107946
TRAILING STOP ORDER USING ACSIL

It is not clear if I have to configure something outside of the ACSIL code additionally, e.g. in the trade window.

It would be helpful to have an ACSIL example that shows how to buyentry via a MKT and use a BE and trailing stop.
It is also not cleat what to do in the buyexit section in such a case.

A full example would be very helpful !