Login Page - Create Account

Support Board


Date/Time: Mon, 20 Jan 2025 08:16:41 +0000



[Programming Help] - Requesting paid telephone support for use of

View Count: 1944

[2018-04-06 20:25:46]
WilliamA - Posts: 26
I've read all the SC documentation on AutoTrading and back testing with SC. I successfully back tested one of your own SC Trading studies, "Trading System - Study Subgraph Crossover." I'm trying to figure out why a simple command won't back test: CROSSFROMABOVE(ID4.SG1,ID3.SG1) The Trade Activity Log keeps showing zero activity. I don't understand the messages in the Trade Service Log. I keep experimenting and failing. I'm probably missing something simple about the settings or the principles of coding SC's Trading Systems.

How can I get paid phone support with TeamViewer to get me up an running please? Is it appointment time based? I'll gladly pay the $80 per hour or per minute charge required. Later I'll experiment with different coding but right now I can't get kick-started.

Alternatively should I send a Trade Service Log for your review first?

Thanks for your previous support suggestion about turning off "Trade Simulation Mode." It worked!
[2018-04-09 18:01:32]
Sierra Chart Engineering - Posts: 104368
This is not something we would normally provide telephone support for.

So are you using the Spreadsheet System for Trading study?

If there any new messages added to the Trade Service Log related to this, then provide those. Refer to:
Support Board Posting Information: Providing Lines From Trade Service Log
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
[2018-04-10 12:57:19]
WilliamA - Posts: 26
I don't think I'm using the Spreadsheet System in this case, unless it's set up internally in SC without my knowing it when I use the SC study I'm using. I saw a webinar which instructed me to use the Alerts tab in SC's built in Study called "Trading System Based on Alert Condition." Then on the Alerts tab I typed into the code box, "CROSSFROMABOVE(ID4.SG1,ID3.SG1)" and ran an "AutoTrade System Bar Based Back Test" unsuccessfully many times after experimenting with settings. I'll paste a few lines from the Trade Service Log below.

In contrast, I successfully back tested another built-in SC trading study called, "Trading System - Study Subgraph Crossover."

Thank you for trying to help. I think I'm not doing something simple correctly. Maybe I must set up a speadsheet separately? I used to have an account with Infinity Futures/Transact. That's where I saw the webinar on using this SC study to AutoTrade. But now I'm at Interactive Brokers so I can trade products other than just futures. To get advice I could change back to Infinity since they will provide some SC support and advice for free. But I'd rather pay SC or any third party person or company to give me some advice. If this doesn't fit into SC's support policy could you please suggest a person or company who could help? Setting up AutoTrading with SC is hugely important to me. Again a million thanks!

Here are Trades Service Log Lines from the top:

Trading is not allowed. Reason: Formula state has not changed | 2018-04-10 05:20:12
Trading is not allowed. Reason: Formula state has not changed | 2018-04-10 05:22:38
Trading is not allowed. Reason: Formula state has not changed | 2018-04-10 05:22:54
Flagging to reload Trades list in charts | Symbol: ES-201806-GLOBEX | TradeAccount: Sim1 | 2018-04-10 05:23:15
Cleared global profit/loss management data for Sim1. | 2018-04-10 05:23:15
Cleared simulated trade data | Symbol: ES-201806-GLOBEX | TradeAccount: Sim1 | 2018-04-10 05:23:15
Flagging to reload Trades list in charts | Symbol: ES-201806-GLOBEX | TradeAccount: Sim1 | 2018-04-10 05:23:18
Cleared global profit/loss management data for Sim1. | 2018-04-10 05:23:18
Cleared simulated trade data | Symbol: ES-201806-GLOBEX | TradeAccount: Sim1 | 2018-04-10 05:23:18
Bar Backtest: ES-201806-GLOBEX [CV] [M] 10 Min #20 | SendOrdersToTradeService is not consistent with 'Trade >> Trade Simulation Mode On' setting. Order action ignored. | 2018-04-10 05:23:18
Chart: Bar Backtest: ES-201806-GLOBEX [CV] [M] 10 Min #20 | Study: Trading System Based on Alert Condition | General order error. Refer to 'Trade >> Trade Service Log' for specific message for this trading action error. | 2018-04-10 05:23:18

Here are Trades Service Log Lines from the bottom:

Chart: Bar Backtest: ES-201806-GLOBEX [CV] [M] 10 Min #20 | Study: Trading System Based on Alert Condition | General order error. Refer to 'Trade >> Trade Service Log' for specific message for this trading action error. | 2018-04-10 05:23:58
Trading is not allowed. Reason: Formula state has not changed | 2018-04-10 05:23:59
Trading is not allowed. Reason: Formula state has not changed | 2018-04-10 05:24:23
[2018-04-13 04:46:05]
Sierra Chart Engineering - Posts: 104368
We apologize for the delay with this. OK we now understand you are using the Trading System Based on Alert Condition study.

One thing we see is this:

Bar Backtest: ES-201806-GLOBEX [CV] [M] 10 Min #20 | SendOrdersToTradeService is not consistent with 'Trade >> Trade Simulation Mode On' setting. Order action ignored. | 2018-04-10 05:23:18

For an explanation of this, refer to:
Automated Trading Management: SendOrdersToTradeService

We think that is the main problem. Start with resolving that according to the documentation and let us know.
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
[2018-04-20 03:36:15]
WilliamA - Posts: 26
I took your advice and disabled the SendOrdersToTradeService, thank you. I think it helped but when I back test I still don't get any trades showing in the Trade Activity log. I think it's probably because my formula CROSSFROMABOVE(ID4.SG1,ID3.SG1) only includes a Buy Entry since I'm using only one Trading System Based on Alert Condition (TSBOAC). If I add one more TSBOAC that executes a Buy Exit on the next CROSSOVERFROMBELOW() then I'll have a sequence of long buys with closed round-turns, right? Are multiple TSBOAC's allowed in the same studies window?

I'm trying to duplicate the same "buy or sell and reverse on every crossover" system given in SC's ACSIL "Example 1" but I don't think attached orders work right with that example when I back test it. Should I be able to create the same crossover trading with attached orders with a TSBOAC set up properly, maybe with REVERSE commands? And if so, when and if I'm struggling with that, the SC documentation offers to support me with phone calls and TeamViewer for $80 per hour when programming TSBOAC. Is that correct please?

Here's the Trade Service Log after the single line TSBOAC command above:

Flagging to reload Trades list in charts | Symbol: ES-201806-GLOBEX | TradeAccount: Sim1 | 2018-04-19 19:17:55
Cleared global profit/loss management data for Sim1. | 2018-04-19 19:17:55
Cleared simulated trade data | Symbol: ES-201806-GLOBEX | TradeAccount: Sim1 | 2018-04-19 19:17:55
Trading is not allowed. Reason: Formula state has not changed | 2018-04-19 19:17:56
Flagging to reload Trades list in charts | Symbol: ES-201806-GLOBEX | TradeAccount: Sim1 | 2018-04-19 19:17:56
Cleared global profit/loss management data for Sim1. | 2018-04-19 19:17:56
Cleared simulated trade data | Symbol: ES-201806-GLOBEX | TradeAccount: Sim1 | 2018-04-19 19:17:56
Chart: Bar Backtest: ES-201806-GLOBEX [CV] [M] 10 Min #1 | Study: Trading System Based on Alert Condition | Buy Entry signal ignored. Position exists. | 2018-04-19 19:17:56
Chart: Bar Backtest: ES-201806-GLOBEX [CV] [M] 10 Min #1 | Study: Trading System Based on Alert Condition | Buy Entry signal ignored. Position exists. | 2018-04-19 19:17:56
Chart: Bar Backtest: ES-201806-GLOBEX [CV] [M] 10 Min #1 | Study: Trading System Based on Alert Condition | Buy Entry signal ignored. Position exists. | 2018-04-19 19:17:56
[2018-04-20 19:31:03]
Sierra Chart Engineering - Posts: 104368
If I add one more TSBOAC that executes a Buy Exit on the next CROSSOVERFROMBELOW() then I'll have a sequence of long buys with closed round-turns, right?
Yes. Make sure the Buy Exit is below the Buy Entry in the list of Studies to Graph.


Are multiple TSBOAC's allowed in the same studies window?
Yes.

You can certainly use Attached Orders. This is documented here:
Attached Orders

But in this case you will not want to use Buy or Sell Exit.

Reversing is not supported with this trading system study.

We really do not provide programming help beyond what we have offered right here, or over the phone. The 80 USD is just a hypothetical amount if we were to do that. But it is not something we offer. But more than likely if we offer that service, probably it would be more like 50 USD/hour.
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-20 19:31:49
[2018-05-02 08:49:59]
User112473 - Posts: 7
Hello,
want to mention I too have this message using the
Trading System Based on Alert Condition study
Trading is not allowed. Reason: Formula state has not changed
Date Time Of Last Edit: 2018-05-02 08:50:52
[2018-05-02 17:37:28]
Sierra Chart Engineering - Posts: 104368
We will add documentation for this.

"Trading is not allowed. Reason: Formula state has not changed" means that the state of the Alert Condition formula was previously true and remains true and that is why the order signal is ignored. If trading was not allowed for other reasons and the state was true and then trading is allowed, that true signal will then be evaluated and trigger an order.
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
[2018-05-22 09:45:49]
Rearden - Posts: 16
Hello,

I also have this issue with Trading System Based on Alert Condition. It creates alerts and draws arrows perfectly, however it stopped triggering trades during backtest replay and I can't make it work again in my chartbook. I also get "Trading is not allowed. Reason: Formula state has not changed".

When I reload a chart or save my chartbook while replaying a bar that is supposed to trigger a buy or a sell signal, it suddenly DOES trigger the buy or sell signal on that particular bar. Otherwise, it just creates an alert but not the trade.

You say that the message means that the "state of the Alert Condition formula was previously true and remains true". However I can't see any reason why the formula could be possibly "previously true" and how to fix it. As I mentioned, alerts and drawings work correctly.

Thank you
[2018-05-22 19:55:04]
Sierra Chart Engineering - Posts: 104368
Reloading the chart resets the internal state of that study so it would then be able to potentially trigger a buy or sell order again.

However I can't see any reason why the formula could be possibly "previously true" and how to fix it.
The state must be continuously true and you can tell just by looking at the Buy and Sell subgraphs and seeing the Point on High or Low markers.
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-05-22 19:56:03
[2018-05-23 15:03:16]
Rearden - Posts: 16
I am not sure if I understand correctly, but I think that the opposite is true in my case - by looking at the Buy and Sell subgraphs - the Point on High or Low markers - I can see an inconsistency between markers and the triggering of trades. The markers are displayed only at few bars (and the bars are NOT next to each other), but buy or sell orders are not triggered on those bars.

However, I found the cause of my issue - there was an endless loop of full recalculation of charts. Chart #1 was referencing chart #2 and chart #2 was referencing chart #3. It was not a circular reference but anyway - removing this simple chain of references fixed the issue.

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

Login

Login Page - Create Account