Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 00:49:45 +0000



Trading system based on alert condition

View Count: 397

[2024-01-17 01:00:47]
User585104 - Posts: 142
Hi,

So I have this working correctly using colour bar based on alert condition: OR(AND(ID0.SG23[-1] > ID0.SG22[-1] , ID0.SG23 < ID0.SG22), AND(ID0.SG23[-1] < ID0.SG22[-1] , ID0.SG23 > ID0.SG22))

That is an alert when bars change colour.

What I want to do is use the trading system based on alert to buy on first green and reverse position on first red then reverse position on next green etc. Is this possible?

I have seen the reverse position option but after reading the description I'm not sure what it means.

How would I go about this?

I know using: OR(AND(ID0.SG23[-1] > ID0.SG22[-1] , ID0.SG23 < ID0.SG22), AND(ID0.SG23[-1] < ID0.SG22[-1] , ID0.SG23 > ID0.SG22))

in the trading system based on alert condition is incorrect but its beyond me to come up with the correct string.

I was messing around and randomly got something that works very well in back testing and I've tested in manually through 6 months of data using replay, but this is freaking me out as I've got to do it on pause bar by bar and enter and reverse manually. Being able to automate this and back test for a few years worth of data and ultimately have SC automatically enter and trade it would be amazing! I cant test it in sim on live data as I'm attempting to trade myself in the daytime on live account.

Any help would be awesome!

Thank you
Date Time Of Last Edit: 2024-01-17 01:17:36
[2024-01-17 15:57:42]
John - SC Support - Posts: 36286
To do this with the "Trading System Based on Alert Condition", you would need two copies of the "Trading System Based on Alert Condition". One that is setup for the Buy Entry and the other for the Sell Entry. You would need to then enter your Alert Conditions for each of these items (i.e. you do not have a single condition covering both situations).

You would also need to setup the studies to support reversals. Refer to the information here:
Automated Trading Management: SupportReversals
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing

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

Login

Login Page - Create Account