Support Board
Date/Time: Wed, 19 Mar 2025 23:28:32 +0000
Post From: Programming Spreadsheets - Exit/Entry Signal On Same Bar
[2022-10-14 21:20:00] |
Sawtooth - Posts: 4186 |
Be sure to set J85 and J88 to FALSE (0). 1. If you are flat (a true), and J41 is in the time window (a false), J28 is FALSE (autotrading enabled). 2. If you have a position (a false), and J41 is in the time window (a false), J28 is FALSE (autotrading enabled). 3. If you have a position (a false), and J41 is outside the time window (a true), J28 is FALSE (autotrading enabled). 4. If you are flat (a true), and J41 is outside the time window (a true), J28 is TRUE (autotrading disabled). (This is the only situation when autotrading is disabled.) One scenario: - You are flat at 09:25 (#1 above) - You take a position at 09:30 (#2 above) - You are still in a position and J41 is between 09:35 and 09:40 (#3 above) - You are flat because J41 > 09:40 (#4 above) Another scenario: - You are flat at 09:25 (#1 above) - You take a position at 09:30 (#2 above) - You hit your target between 09:35 and 09:40 (#3 above) - You are flat but another entry signal is ignored because J41 is outside the time window, between 09:35 and 09:40 (#4 above) J29 will be TRUE (1) from 09:40 to midnight, so you will be flat during this time window, unless... If your session times do not encompass 09:40, J41 will never contain the FRACTIME needed to make J29 go TRUE. |