If you try to place a stop order with the GTC parameter, but you receive an error like "The allowed validity period of the stop order has been exceeded" maximum number of days is 30".

If you try to place a stop order with the GTC parameter, but you receive an error like "The allowed validity period of the stop order has been exceeded" maximum number of days is 30", then open the lua script file and edit the following line

Image 41093


Change it in according to the restrictions of your account, for example, if the broker allows you to set a stop for only 30 days, then the line will look like order_gtc_period = 30


The OFT.lua file is located in the folder where the platform is installed, by default it is C:\Program Files (x86)\ATAS Platform

Is this article helpful for you?