Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 12:25:01 +0000



[Programming Help] - [Help] Automated trade for simple bracket order of a bar

View Count: 54

[2024-11-17 22:27:23]
Pugseh - Posts: 2
I've been playing with the automated trading spreadsheet for a few days to learn some things, but I'm afraid I don't need anything so robust at this time.

Essentially, my problem is that I already have my alerts configured and my system could eventually be automated, but my initial entries aren't part of the alerts in the system.

What I need is the ability to run a very simple hi/lo buy/sell entry based on a candle. It could be the premarket 15-minute candle or the first 5-minute candle, it doesn't matter.

I want the automated trade to buy if the market goes up say, 50 points above the high of the 1545 15-minute candle, or sell if it goes 50 points below the low of that candle.

Basically, I need to have this as a backup if I'm going to miss a market open. I primarily trade the Tokyo futures on the West Coast and Daylight Savings and kid pickup and traffic, etc have recently presented an obstacle.

So let's say I open my software at 1530 Pacific, Tokyo opens at 1600. I enable my auto-trade, and I can leave to pick up my kid knowing that even if I'm ten minutes late returning, I'll at least get those initial orders placed.

As an aside, I gotta say the automated features are all very cool despite not being overly user-friendly. Had some interesting runs using Keltner channels and also stochastic. Very cool, very robust system.
[2024-11-18 20:17:50]
Sawtooth - Posts: 4118
Here's an easy way.
Try this:

Add the High/Low for Time Period - Extended study
Set the Start and End times to your needs.
Leave the 'Line Stop Time' at 23:59:59
This study won't plot beyond midnight.

Long entry:
Add the Trading System Based on Alert Condition study.
Use a formula like this on its Alerts tab:
=CROSSFROMBELOW(C,ID1.SG1+50)
where ID1 is the High/Low for Time Period - Extended study

Short entry:
Duplicate the above study, and use a formula like this instead:
=CROSSFROMABOVE(C,ID1.SG2-50)
Set the Order Action On Alert to Sell Entry.

Trading System Based on Alert Condition
Date Time Of Last Edit: 2024-11-18 20:18:04
[2024-11-18 23:12:23]
Pugseh - Posts: 2
Orders aren't filling. I'll keep toying with it.

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

Login

Login Page - Create Account