Login Page - Create Account

Support Board


Date/Time: Sat, 10 May 2025 20:20:30 +0000



Post From: ACSIL One Time Processing per Order

[2016-02-15 18:30:39]
rhovega - Posts: 279
Could provide an example of One Time Processing per OrderID to add to your documentation. Have found nothing similar in either your online documentation nor on the provided cpp code templates.

I used the order modification example provided within tradesystem.cpp combined with sc.GetNearestTargetOrder/sc.GetNearestStopOrder and PositionData.AveragePrice to create a study that modifies attached orders of manually executed orders to a value determine by ATR.

It works fine, but the code uptades attached orders continuously and overrides attached orders manual modification. The solution to these two unwanted conditions would be to get the code to run only once per OrderID.

Could you help with this?

Thank you.
Date Time Of Last Edit: 2016-02-15 19:03:35