Support Board
Date/Time: Sun, 22 Dec 2024 05:53:49 +0000
Simple automated trading-strategy
View Count: 1132
[2015-03-15 17:54:43] |
User81805 - Posts: 9 |
Hello. I can not quite figure out how to program what should be quite a simple automated trading strategy. My strategy goes as follows: Buy when the CLOSE of a price-bar is higher than the OPEN of a price-bar, 4 bars in a row. Then sell when the CLOSE of a price-bar is lower than the OPEN of a price-bar, 2 bars in a row. The same goes for taking a short-position: Short when the CLOSE of a price-bar is lower than the OPEN of a price-bar, 4 bars in a row. Then close the short-position when the CLOSE of a price-bar is higher than the OPEN of a price-bar, 2 bars in a row. I am quite new to the SierraCharts platform, and a simple instruction to creating such an automated trading-strategy in the Spreadsheet System for Trading would be much appreciated. |
[2015-03-15 22:58:04] |
Sierra Chart Engineering - Posts: 104368 |
In this case, you will want to reference the open and close values of the price bars. These are columns B and E in the spreadsheet. Have you followed through the step-by-step instructions here: https://www.sierrachart.com/index.php?page=doc/doc_SystemsAlerts.php#AutomatedTrading Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2015-03-16 10:30:49] |
User81805 - Posts: 9 |
I have followed all the primary steps to get the automated trading simulation to work, but it does not seem to be making any simulated trades. Perhaps the formulas I entered into the K,L,M,N columns is the problem. They go as follows: Buy Entry(K): IF=(E3>B3,E4>B4,E5>B5,E6>B6) Buy Exit(L): IF=(E3<B3,E4<B4,E5<B5) Sell Entry(M): IF=(E3<B3,E4<B4,E5<B5,E6<B6) Sell Exit(N): IF=(E3>B3,E4>B4,E5>B5) Maybe the fault is in these formulas? If so, what should the formulas look like to fit this strategy? Date Time Of Last Edit: 2015-03-17 12:45:58
|
[2015-03-17 17:05:46] |
Sierra Chart Engineering - Posts: 104368 |
Those are not valid formulas. For example in K you need to use: =AND(E3>B3,E4>B4,E5>B5,E6>B6) Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to 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: