Login Page - Create Account

Support Board


Date/Time: Sat, 20 Apr 2024 00:34:29 +0000



[Programming Help] - Delayed

View Count: 1124

[2022-04-08 00:10:15]
User352781 - Posts: 24
Hello,

I just signed up for service package 10 standard Denali for six months and I am getting a delayed data which I should be getting real time.
I was also wondering why haven't I received a conformation email from Sierra Chart after I opened my new account.

Thank you,
[2022-04-08 13:57:59]
John - SC Support - Posts: 30976
You have signed up for Package 10 for six months, but that only includes the Denali Exchange Data Feed fee. You need to go through the instructions to setup the data feed and select the exchanges you want to activate, for which there will be a separate fee that is charged on the first day of each month (this is separate from the Usage Time charges).

You will find the instructions for the CME Group data here:
Denali Exchange Data Feed: *Setup Instructions: CME/CBOT/NYMEX/COMEX Exchanges*

If you need the data for the EUREX, CFE, or NASDAQ TotalView, then follow the instructions here:
Denali Exchange Data Feed: *Setup Instructions: All Other Exchanges*

----

We can not say why you did not receive an email. There is typically one sent. Make sure it not in your Spam folder, but it is also possible that it was blocked by your ISP.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2022-04-22 19:12:31]
User352781 - Posts: 24
Hello,

I have a Delay of 4 seconds on my Data. Can you please help me we that? I have other users here that are using the same Data on their laptops, but I'm the only one with the delay.

https://www.sierrachart.com/image.php?Image=1650654544598.png

Thank you,
[2022-04-22 21:10:38]
John - SC Support - Posts: 30976
Most likely that is just a difference in the time of our server and the time of your local computer. Any difference will show up as a delay, although it is not a real delay.

Check your Message Log (Windows >> Message Log) and look for a line at the top that starts with Local Computer UTC Time and Server UTC Time Difference. Most likely this is going to report a 3 or 4 second time difference.

If you want to synchronize your computer clock with our servers then refer to the following:
Global Settings Menu: Set System Date-Time from Server (Global Settings menu)
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2022-04-28 13:40:51]
User352781 - Posts: 24
Hello,

This morning I turned my laptop on to find myself in a trade. My laptop is completely turned off every night with Sierra Chart closed.
I also had the same issue yesterday during the day on my laptop and my husband's laptop, we had just come off a trade when the system kicked
us both back in at the same time for a trade automatically.

Below is a screen shot of this mornings trade as soon as my laptop was turned on prior to the start of the market New York time.

Thanks.


https://www.sierrachart.com/image.php?Image=1651152486864.png
[2022-04-28 15:30:50]
Sierra Chart Engineering - Posts: 104368
So that position that you see is not something that you intended?
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
[2022-04-28 15:59:48]
User352781 - Posts: 24
No. This was there as soon as I turned my laptop on this morning before the start of the market.
[2022-04-28 16:36:27]
Sierra Chart Engineering - Posts: 104368
We need to know the origin of that order. Refer to the information here to determine this:
Trade Activity Log Analysis: Determining the Origin of a New/Modified 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
[2022-04-28 19:07:38]
User352781 - Posts: 24
I fallowed the steps in "Determining the Origin of a New/Modified Order" and in step 12 I was not able to see the activity in question.
Step 12 says (If you cannot find any evidence of the order in the log, then the order did not originate from Sierra Chart) where did it originate from?? did
someone hack into my system??
Like I said this seems to be a glitch in the system specially the fact this also happened yesterday to me and my husband's laptop after
we had just come off a trade, the system kicked us both back in at the same time for another trade automatically.
What would happen if we were both live at the time of the trade. We both have been on SIM since we are still new to this.
[2022-04-29 05:43:48]
Sierra Chart Engineering - Posts: 104368
and in step 12 I was not able to see the activity in question.
It must be there.

Go through the instructions here:
Trade Activity Log Analysis: Support Assisted Trade Activity Log Analysis

And provide us the information requested.
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
[2023-03-03 19:35:57]
User352781 - Posts: 24
Hi,

I have a program that was written in C++ and converted to ACSIL.
Can you please tell me step by step how to add it to my sierra chart custom studies so that I can use it on my chart
[2023-03-06 15:43:52]
John - SC Support - Posts: 30976
If you have the code itself (a .cpp file), then follow these instructions (not every step may apply in the first few, but everything you need will be in here):
How to Build an Advanced Custom Study from Source Code: Step-By-Step Instructions
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-03-09 02:51:35]
User352781 - Posts: 24
Can I send you the program that is in .CPP? would you compile it and test it and let me know what your result is?
[2023-03-09 15:43:41]
John - SC Support - Posts: 30976
You can post the file here (you can make it Private if you want so only we can see it) and we will try to compile it. But we can not do any major changes to make the program work. If there are some obvious, easy issues, then that we can do, but anything more we can not do.

Follow these instructions to attach the file:
https://www.sierrachart.com/index.php?page=PostingInformation.php#AttachFile
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-03-22 03:14:38]
User352781 - Posts: 24
Hello,
I have uploaded the file.
Thank you!!!
Private File
Attachment Deleted.
[2023-03-22 14:39:21]
John - SC Support - Posts: 30976
What you have attached is the DLL file. We put this in the Data folder and added the study to the chart, and it did add the study. There was nothing displayed, but we do no know what this is supposed to do.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-03-22 23:18:39]
User352781 - Posts: 24
Well, I followed the instruction that was provided on how to upload the file for support. You are right I wanted to upload the C++ program and not the DLL.
Will it be ok for me to just copy and paste the C++ coding on here?

The program is suppose to show A simple trading strategy that uses moving averages to generate buy and sell signals.
When I uploaded it into my custom studies, it shows no graph or inputs in my study sittings, nothing.
Just wanted to know what is it that I missing in the coding.

Please let me know if it's OK for me to post the coding right here.
I'm sure you guys can compile it and use it on a custom study.
[2023-03-23 13:21:15]
John - SC Support - Posts: 30976
Yes, you can post the code and we will take a quick look and try a build.

But the DLL worked for us, at least in terms of loading and it did have 1 Input. But as study does not need to have any Inputs, it could have none and be correct. And if it is looking for specific information to generate a trade, then it is possible that the conditions were just not right for it to display anything.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-03-23 18:50:00]
User352781 - Posts: 24
Hi,
Here is the program in C++.
My problem is that it shows no graph on my chart. I will try to send a screen shot of what I see when I add this to my custom study for your reference.



#include <sierrachart.h>

SCDLLName("Moving Average Strategy")

// Set the values of the moving average period and the buy/sell threshold
SCSFExport scsf_MovingAverageStrategy(SCStudyInterfaceRef sc)
{
SCInputRef movingAverageLength = sc.Input[0];
SCInputRef buyThreshold = sc.Input[1];
SCInputRef sellThreshold = sc.Input[2];
SCInputRef shares = sc.Input[3];

// Set the data series for the close price
SCSubgraphRef close = sc.Subgraph[0];
close.Name = "Close";
close.DrawStyle = DRAWSTYLE_LINE;
sc.Input[0].SetInputDataIndex(SC_LAST);

// Create a subgraph for the moving average
SCSubgraphRef movingAverage = sc.Subgraph[1];
movingAverage.Name = "Moving Average";
movingAverage.DrawStyle = DRAWSTYLE_LINE;

// Set the moving average length
sc.MovingAverage(sc.Close, movingAverage, MOVAVGTYPE_SIMPLE, movingAverageLength.GetInt());

// Initialize the position to flat
int currentPosition = 0;

// Loop through the chart data
for (int i = sc.UpdateStartIndex; i < sc.ArraySize; i++)
{
// Check if the price has crossed above the moving average by the buy threshold
if (close > movingAverage && close[i-1] <= movingAverage[i-1] - buyThreshold.GetFloat())
{
// Enter a long position
sc.BuyEntry(i, shares.GetInt());

// Set the current position to long
currentPosition = 1;
}
// Check if the price has crossed below the moving average by the sell threshold
else if (close < movingAverage && close[i-1] >= movingAverage[i-1] + sellThreshold.GetFloat())
{
// Enter a short position
sc.SellEntry(i, shares.GetInt());

// Set the current position to short
currentPosition = -1;
}
// Check if the current position is long and the price has crossed below the moving average
else if (currentPosition == 1 && close < movingAverage)
{
// Exit the long position
sc.SellEntry(i, shares.GetInt());

// Set the current position to flat
currentPosition = 0;
}
// Check if the current position is short and the price has crossed above the moving average
else if (currentPosition == -1 && close > movingAverage)
{
// Exit the short position
sc.BuyEntry(i, shares.GetInt());

// Set the current position to flat
currentPosition = 0;
}
}
}




https://www.sierrachart.com/image.php?Image=1679597300708.png

[2023-03-23 19:00:06]
User352781 - Posts: 24
When you open the screen shot of the Chart you will notice at the bottom of chart ( Template Function Name: 0.000 (0) ) this is generated by the program, but no graph or inputs of any source.

Is data automatically generated into the study? or do we have to enable an option for that to take place??
[2023-03-28 13:40:59]
User352781 - Posts: 24
Hello,
Just wondering if you have an update for me.
Thank you.
[2023-03-28 14:45:41]
Sierra_Chart Engineering - Posts: 14016
The study code given in post #19, is not a proper ACSIL function. One obvious thing is that is missing an sc.SetDefaults code block.

Step 17 shows what a function should look like:

Advanced Custom Study Interface and Language (ACSIL): Step-By-Step Instructions to Create an Advanced Custom Study Function

Your function uses manual looping so it needs sc.AutoLoop = 0;
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, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-03-28 17:13:23]
John - SC Support - Posts: 30976
There are a lot of issues, and we thought we would have some time to look into them, but we just do not. We apologize, but as noted, it is not coded correctly to be used with Sierra Chart and would need some updates.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-03-28 18:25:43]
User352781 - Posts: 24
Than you for your response, Do you think you can help me fix the issues? or maybe you can tell me where the issues are?

Thank you.
[2023-03-28 20:14:50]
John - SC Support - Posts: 30976
There are too many little items. It is just not setup properly for a Sierra Chart custom study. And it is not something we have time to fix.

Someone else might be able to help you out. We have set this as Programming Help.
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