Login Page - Create Account

Support Board


Date/Time: Thu, 06 Mar 2025 13:10:40 +0000



[Programming Help] - Multiple Entries on Autotrade Backtest

View Count: 518

[2022-02-01 23:03:16]
GG - Posts: 20
Hi,

Been using Sierrachart for few years now, but new to the autotrade feature.
While backtesting a system of crossing the middle band of VWAP I've run into an error.
I want only one open trade running at a time, but once my limit or stop is hit, it opens multiple trades at a time in the direction of the original trade. (E.g. Price crosses above middle VWAP, buy position active, stop loss (limit) hit, 12 more buy positions open)

Order Quantity: 1
Allow Multiple Entries in Same Direction: 0
Allow Entry With Working Order: 0
Maximum Position Allowed: 1

Buy Entry
=CROSSFROMBELOW(ID0.SG4@3:ID0.SG4@4, ID5.SG1@3:ID5.SG1@4)

Sell Entry
=CROSSFROMABOVE(ID0.SG4@3:ID0.SG4@4, ID5.SG1@3:ID5.SG1@4)

Using target and stop setting on Trade Window rather than L3 and N3, although I have tried to use those instead and the error still occured.

Thanks,
G. Hill

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account