Login Page - Create Account

Support Board


Date/Time: Fri, 27 Dec 2024 07:36:15 +0000



Post From: Multiple Entries

[2015-12-15 20:48:42]
Sawtooth - Posts: 4143
The formula will disable autotrading if the Last Entry Trade DateTime (J42) is the same day as the chart's current Last Bar End DateTime (J41). The first trade of the day is allowed because J42 will not have today's date. Once in a trade, it will have the same date as the current day. The J8 reference allows an exit in the same day. When the first trade of the day exits, J28 will go TRUE and no other trades are allowed in the same day.

To reiterate:
1) Before the first trade of the day when you are flat, only the first portion of the formula is TRUE so the result is FALSE: Autotrading is not disabled so an entry is allowed.
2) When in the first trade of the day, only the second portion of the formula is TRUE so the result is FALSE: Autotrading is not disabled so an exit is allowed.
3) After exiting the first trade of the day, both portions of the formula are TRUE so the result is TRUE: Autotrading is disabled and no other trades are allowed in the same day.
4) Once J41 crosses midnight into the next day, only the first portion of the formula is TRUE so the result is FALSE: Autotrading is not disabled so an entry is allowed.

This formula assumes the following:
-'Allow Multiple Entries in Same Direction' is set to No
-You are not using Reversals
-You are not scaling in

The Serial DateTime format counts the date and time from 1/1/1900 where the date is the integer and the time of the day is the decimal. The INT function removes the time of day and leaves the date.
Date Time Of Last Edit: 2015-12-15 23:59:11