Entry Logic

When a signal fires, the following happens:

  1. Using the ATR and the current price, the stop distance is calculated
  2. Using the stop distance and the $ Risk value, the entry quantity is calculated
  3. For each target we need to calculate the quantity and the offset. 
    1. The quantities are distributed using an even distribution (see below)
    2. The offset is a multiplier of the ATR
  4. With these values, the bot now submits a market order with a stop and the targets
  5. User can now manage the trade manually


Distributing Quantities to Targets

Even Distribution

The bot will spread the contracts across the targets evenly.

Taking the example of 7 with 3 targets enabled. The contracts would be distributed like this:

2 would allocated to each target for a total of 6. We then have a remainder of 1. The remainder is allocated starting from Target1 working our way up.

Another example is 8. Again, 2 would be allocated to each target for a total of 6 and remainder of 2. The remainder would be allocated to targets 1 and 2 giving a final distribution of 3,3,2

Automated Entry vs. Manual (Enter Now)

There are two ways in which trades can be entered:

Automated - User sets an "Entry Signal Reference". When the signal fires, orders will be placed. The bot must be enabled

Manual - At any time, users can press the Long or Short buttons. This will cause a market entry order with the stop/targets calculated using the current ATR


Notes


Inputs

Stop Logic

The bot supports a stop with optional move to breakeven and trail.

The initial stop price is based on the stop multiplier.

If a trailing stop is enabled, it will start to trail once the trigger happens.

If a move to breakeven is enabled, the stop will move when the trigger happens.

The stop only moves in the direction of the trade.

There are a few options for the trigger: