Login Page - Create Account

Support Board


Date/Time: Sat, 20 Apr 2024 04:37:53 +0000



Trading System Based on Alert Condition Study

View Count: 1247

[2018-04-17 18:34:52]
User536593 - Posts: 11
The most basic code is that I want to buy when price closes above the 15EMA and reverse it when price closes below the 15EMA using a 5 Rinko Chart, or vice versa if the first entry is a sell.


Where X is the ID number for the EMA indicator:


Entry---- Crossfrombelow(C,IDx.SG1)


Reverse or sell Crossfromabove(C,IDx.SG1)


I started with just the Buy and Sell Trade on Alert Conditions indicators making the assumption that it would just reverse. That did not work as it would take the first buy and never reverse. If it took a sell, it would not reverse.


Then I added the Buy and Exit Trade Indicators lines assuming it needed the exits to work. It would take the Buy and some times close it correctly but not always. However it would not take the Reversal sell at all or the reversal exit.


It's not complex or sophisticated but it works. I plan to add filters once I can make the simple entry and reversal part work correctly.


Question: Since your data feed seems to disconnect every day, that is a problem for an autotrade chart. How do I get around that or will I have to flatten or disable the autotrade at the end of the trading session.
attachmentTradeservicelog4-11-18YMM8.txt - Attached On 2018-04-17 18:34:24 UTC - Size: 26.17 KB - 293 views
[2018-04-18 19:38:05]
Sierra Chart Engineering - Posts: 104368
OK we understand. If you want to support reversals, you must use the Spreadsheet System for Trading study instead:
Spreadsheet Systems, Alerts and Automated Trading

Which has an input setting to support Reversals.

The attached log shows many of these lines:
Auto-trade: YMM8 Renko 5t #13 | EMA Sell Entry | Bar start date-time: 2018-04-11 12:06:52.012 | SellEntry signal is ignored because working orders exist. | 2018-04-11 12:07:19

So it sounds like you just want to reverse the position and continuously stay in the market?

Did you want the trading system to stop at a particular time and flatten the existing position?
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
Date Time Of Last Edit: 2018-04-18 19:51:32
[2018-04-18 19:49:29]
Sierra Chart Engineering - Posts: 104368
If you want to flatten the position at a particular time and stop auto trading, then use these cells:
Spreadsheet Systems, Alerts and Automated Trading: Flatten Position and Cancel Working Orders [J29]

Spreadsheet Systems, Alerts and Automated Trading: Disable Auto Trading [J28]


Also refer to the post above.
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
Date Time Of Last Edit: 2018-04-18 19:50:23

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

Login

Login Page - Create Account