Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 16:37:32 +0000



Post From: Alerts generating trades that open & close instantly

[2019-11-07 17:07:11]
j4ytr4der_ - Posts: 918
I found a thread from a little while back (Immediate entry/exit in spreadsheet system) that seemingly addressed this issue but it was specifically dealing with Spreadsheet trading which I'm not, so I thought I should probably start my own post.

I'm exploring auto trading based on alerts, so have set up a fairly simple entry & exit signal to learn on. But something is behaving very wrong.

I'm using a Flex Renko chart on RTY, setting of 10-7-7 with Gap Fill All Bars and no new bar at session start. I have an 8 period EMA at ID16.

My Short entry signal is
= and(ID0.SG23 < ID16.SG1, ID0.SG23[-1] < ID16.SG1[-1])
My short exit signal is
= ID0.SG23 > ID0.SG23[-1]

Set to trigger only on bar close, so go short if the last 2 bars both close below the 8 EMA, and cover if the bar closes above the previous bar's close.

Seems simple enough, but I'm running into two major problems.

1. Trades trigger (as seen in Trade Activity Log and displayed on chart) where there is no valid signal at all and no alert was issued (no alert in Alert Manager)
2. These trades open & close nearly instantly, always exactly 0.004 seconds apart.

These trades always occur within the first 2 hours of my allowed trading time, and I've experimented with different start times with the same result except that they are much less frequent if my start time is later in the day (10am) vs earlier (5, 6, 7am...)

I don't understand why trades are triggering where there is no alert, or why they are then also closing immediately. I've got to figure out what's causing this in order to move forward with developing an actual system. I've been scouring the documentation, this forum, and Google but am completely stuck. Any ideas?
Date Time Of Last Edit: 2019-11-07 18:38:27