Buy Entry: LOGIC - Intra-Bar, Single-Line Simple Moving Average (CrossFromBelow) When the Buy Entry Order Action is triggered, a Buy order will be sent to the connected trading service with the specified quantity. The following are the exceptions: 1. AllowMultipleEntriesInSameDirection is set to FALSE (No); so if the current Trade Position Quantity is greater than 0 the Order Action will not be allowed. AllowMultipleEntriesInSameDirection set to FALSE (No) and CancelAllOrdersOnEntriesAndReversals is set to TRUE (Yes); so if the Current Trade Position Quantity combined with the quantity of working market orders is greater than 0 the Order Action will not be allowed. Note: When the quantities of working orders are added together and combined with the Trade Position Quantity there are some special rules in the calculations to be aware of. Pending Child orders are ignored. In the case of Target and Stop orders, which are orders in an OCO Group, only the quantity of one of these is used, since one will cancel the other. 2. If the Order Action would result in a Trade Position Quantity greater (more positive) than the MaximumPositionAllowed the Order Action will not be allowed. CancelAllOrdersOnEntriesAndReversals is set to TRUE, so the new order quantity is combined with the current Trade Position Quantity and combined with the quantities of existing market orders for this Symbol on this Trade Account to determine if the MaximumPositionAllowed will be exceeded. If one of these exceptions is met and the Order Action is not allowed, then the reason for the order not being allowed is displayed in the Trade >> Trade Service Log Buy Exit: When this Order Action is triggered, a Sell order will be sent to the connected trading service or to the Trade Simulation System CancelAllWorkingOrdersOnExit is set to TRUE (Yes); so at the time the BuyExit or SellExit Order Actions are used, all working orders for this Symbol on this Trade Account (except market orders) are cancelled. This does not happen upon the order filling, but at the time the order is submitted. ******* Sell Entry: LOGIC - Intra-Bar, Single-Line Simple Moving Average (CrossFromAbove) When the Sell Entry Order Action is triggered, a Sell order will be sent to the connected trading service with the specified quantity. The following are the exceptions: 1. AllowMultipleEntriesInSameDirection is set to FALSE (No) so; if the current Trade Position Quantity is less than 0 the Order Action will not be allowed. AllowMultipleEntriesInSameDirection set to FALSE (No) and CancelAllOrdersOnEntriesAndReversals is set to TRUE (Yes) so; if the Current Trade Position Quantity combined with the quantity of working market orders is less than 0 the Order Action will not be allowed. Note: When the quantities of working orders are added together and combined with the Trade Position Quantity there are some special rules in the calculations to be aware of. Pending Child orders are ignored. In the case of Target and Stop orders, which are orders in an OCO Group, only the quantity of one of these is used, since one will cancel the other. 2. If the Order Action would result in a Trade Position Quantity greater (more negative) than the MaximumPositionAllowed the Order Action will not be allowed. CancelAllOrdersOnEntriesAndReversals is set to TRUE, so the new order quantity is combined with the current Trade Position Quantity and combined with the quantities of existing market orders for this Symbol on this Trade Account to determine if the MaximumPositionAllowed will be exceeded. If one of these exceptions is met and the Order Action is not allowed, then the reason for the order not being allowed is displayed in the Trade >> Trade Service Log Sell Exit: When this Order Action is triggered, a Buy order will be sent to the connected trading service CancelAllWorkingOrdersOnExit is set to TRUE (Yes); so at the time the BuyExit or SellExit Order Actions are used, all working orders for this Symbol on this Trade Account (except market orders) are cancelled. This does not happen upon the order filling, but at the time the order is submitted. ****** SupportReversals: (All Single-Line, Moving Average Cross (intra-ba) Buy/ Sell Signals Should be capable of Reversing Prevailing/ Opposite Position - if any) SupportReversals is set to TRUE (Yes), Trade Position reversals are supported. A reversal is triggered when a Buy Entry or Sell Entry order is submitted and an actual opposite Trade Position currently exists for the symbol. When a reversal order is given it will flatten the existing Position, and create a new Position which will have a quantity equal to the Order Quantity specified. Therefore, there must be an Order Quantity specified. When calculating the Order Quantity for flattening the existing Trade Position, the Auto Trade Management system looks at the current Trade Position quantity and the quantities of working orders that can exit the Position only. It does not consider working orders that can increase the size of the Position. For example, if the Position is +5 and there is a Sell Entry, and there is a working sell order with a quantity of 2, then the order to flatten the Position will be a Sell order of quantity 3. Additionally, if those working orders already indicate the potential Position is flat or does not exist, then no reversal actually occurs, only a new entry. CancelAllOrdersOnEntriesAndReversals is set to TRUE (Yes), so only the actual Trade Position quantity and working market orders that will reduce the Position are considered when determining the quantity to flatten the current Trade Position. There is no consideration of other working orders because they will be canceled. If the working market orders will flatten the Position, then no reversal actually occurs. ***** An example of SupportReversals is as follows: The current Trade Position quantity is +3 (long Position of quantity 3), there is a Sell Entry order action with a quantity of 1, the Auto Trade Management system will send a Sell order with a quantity that will create a resulting Position of -1. This will be a quantity of 4. Note, that when SupportReversals is set to TRUE (Yes), then the value of the AllowOppositeEntryWithOpposingPositionOrOrders variable is ignored. CancelAllOrdersOnEntriesAndReversals is set to TRUE (Yes), so any Attached Orders for the existing Trade Position will be immediately canceled. Actual Order Types and Quantities Submitted The above documentation for SupportReversals describes the logical Order and quantity of that Order which is submitted. When SupportReversals causes a reversal order to be submitted, then there are actually 2 orders submitted. There is the order to flatten the current Trade Position and it is a Market order. There is the order which establishes a new Trade Position and will be the order type which is specified by the ACSIL Trading system or the Spreadsheet Trading system. However, the order which flattens the current Trade Position will always be a Market order. The reason for this design is in support using a different order type like a Limit order when a reversal is triggered. So that the new Trade Position will be established with this order type and so that the current Trade Position will be immediately flattened. Whether 2 orders are always required in all cases does not matter. There are two orders for implementation consistency and consistency of this functionality. Also when using Attached Orders it is necessary that the order to flatten the Trade Position is separate from the order to establish a new Trade Position because the order to create the new Position must be matched in quantity to its Attached Orders and the Attached Orders must be matched in quantity to the quantity of the new Position. Therefore, if you want to use a single order when reversing a Trade Position, then do not use the SupportReversals automated trading flag in your automated trading system and instead use BuyEntry or SellEntry and specify the quantity required to reverse the current Trade Position. SupportReversals in no way has any effect on Buy Exit or Sell Exit. Those still function as they normally do. ****** CancelAllWorkingOrdersOnExit: CancelAllWorkingOrdersOnExit is set to TRUE (Yes); when the BuyExit or SellExit Order Actions are used, working orders, except market orders, that can exit the Position will not be used in the calculation to determine the current Trade Position Quantity with working orders. Only the actual Trade Position Quantity and Market Orders which will exit the Trade Position will be evaluated to determine if an exit is possible. In this case, if an exit is possible, then all working orders except market orders will be canceled and the current Trade Position will be flattened. CancelAllWorkingOrdersOnExit cancels working orders except market orders at the time the BuyExit and SellExit Order Actions are used. This does not happen upon the order filling, but at the time the order is submitted. AllowEntryWithWorkingOrders is set to TRUE (Yes), so a Buy Entry or a Sell Entry will be allowed even if there are existing working orders of any type. CancelAllOrdersOnReversals is set to TRUE (Yes); so when there is a Buy Entry or a Sell Entry which also is reversing the existing Trade Position, then all working orders except for market orders, for this Symbol and Trade Account of the chart that the trading system study is applied to, will be canceled before the reversal order is submitted. The reversal order is submitted immediately after the orders are requested to be canceled. If the order or orders cannot be canceled (the order cancellation has been rejected) by the Trading service, then this can result in a Trade Position Quantity which may exceed what was intended. This is something to consider. CancelAllOrdersOnEntriesAndReversals CancelAllOrdersOnEntriesAndReversals is set to TRUE (Yes); when there is a Buy Entry or a Sell Entry or a Reversal Order Action given, then all working orders except for market orders, for the Symbol and Trade Account of the chart that the trading system study is applied to will be canceled before the entry or reversal order is submitted. The entry or reversal order is submitted immediately after the orders are requested to be canceled. If the order or orders cannot be canceled and the order cancellation has been rejected by the Trading service, then this can result in a Trade Position Quantity which may exceed what was intended. This is something to consider. AllowOppositeEntryWithOpposingPositionOrOrders: this variable is TRUE (Yes). A Buy Entry or Sell Entry is allowed even if there is a Trade Position already existing or working orders in the opposite direction.