Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 02:29:57 +0000



Post From: Trading system based on alert condition

[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