NexusFi: Find Your Edge


Home Menu

 





Custom Study Broken


Discussion in Sierra Chart

Updated
      Top Posters
    1. looks_one ondafringe with 2 posts (2 thanks)
    2. looks_two NaturePip with 2 posts (2 thanks)
    3. looks_3 bobwest with 2 posts (2 thanks)
    4. looks_4 gomi with 1 posts (3 thanks)
      Best Posters
    1. looks_one gomi with 3 thanks per post
    2. looks_two bobwest with 1 thanks per post
    3. looks_3 ondafringe with 1 thanks per post
    4. looks_4 NaturePip with 1 thanks per post
    1. trending_up 2,539 views
    2. thumb_up 9 thanks given
    3. group 3 followers
    1. forum 6 posts
    2. attach_file 0 attachments




 
Search this Thread

Custom Study Broken

  #1 (permalink)
NaturePip
Cochrane Alberta Canada
 
Posts: 12 since Nov 2013
Thanks Given: 1
Thanks Received: 21

Hello Everyone:

Yesterday, my computer crashed and when I brought it back up, I lost all my charts and custom studies. I re-installed Sierra over top the old Sierra and re-setup my charts. However, the custom studies I wrote in Visual Studio (for Sierra) will not show up when I go to Add Custom Study under the "Studies" window.

Does anyone know why. Nothing about the program source code has changed so it has to be the Sierra charts that are not recognizing my study for some reason.

I even tried re-installing another instance of Sierra under Sierra2 folder (just in case something else in Sierra is corrupt) but cannot get my Rithmic data feed to work. I put a call into Sierra for that.

If you have any idea, I would love to hear them.

Thank you,

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
What broker to use for trading palladium futures
Commodities
ZombieSqueeze
Platforms and Indicators
Cheap historycal L1 data for stocks
Stocks and ETFs
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
  #2 (permalink)
 
bobwest's Avatar
 bobwest 
Western Florida
Site Moderator
 
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
Frequency: Several times daily
Duration: Minutes
Posts: 8,172 since Jan 2013
Thanks Given: 57,515
Thanks Received: 26,292


NaturePip View Post
Hello Everyone:

Yesterday, my computer crashed and when I brought it back up, I lost all my charts and custom studies. I re-installed Sierra over top the old Sierra and re-setup my charts. However, the custom studies I wrote in Visual Studio (for Sierra) will not show up when I go to Add Custom Study under the "Studies" window.

Does anyone know why. Nothing about the program source code has changed so it has to be the Sierra charts that are not recognizing my study for some reason.

I even tried re-installing another instance of Sierra under Sierra2 folder (just in case something else in Sierra is corrupt) but cannot get my Rithmic data feed to work. I put a call into Sierra for that.

If you have any idea, I would love to hear them.

Thank you,

It might due to recent changes in Sierra Chart, beginning with v 2155. If you compiled with a version before this one, and then installed this or a later version, you will need to recompile your old code. I'm not sure this is your issue, because all my old studies were visible before recompiling -- but I use the SC remote build rather than Visual Studio to compile: Analysis > Build Advanced Custom Studies DLL > Build > Remote Build. I just had to do this yesterday when I downloaded the current version and read the release notes.

I don't know much about what changed, other than some date/time changes. But here is what they say about it:


Quoting 
The most important thing to understand is that this version breaks compatibility with existing compiled custom studies. Custom studies have to be rebuilt on 2155 or higher to use them with 2155 or higher. Although the change occurred at version 2151, there were subsequent changes and now ACSIL custom studies have to be recompiled using Sierra Chart version 2155 or higher.

(Source: https://www.sierrachart.com/SupportBoard.php?ThreadID=55364 )

So studies are broken whether they use the time stuff or not.

I don't know what would need to be done to recompile with VS -- perhaps some headers are different, I'm not sure -- but I had no issue with recompiling all my studies with the Remote Build, except one, which did use the old time constants. I just replaced the old time constants with the new stuff in my code, one or two lines, and then that one compiled also. None of the other studies had any issue at all in the recompile.

You might try using the SC remote compiler on your source code and see if this cures the problem.

Bob.

When one door closes, another opens.
-- Cervantes, Don Quixote
Reply With Quote
Thanked by:
  #3 (permalink)
ondafringe
Albuquerque, NM, USA
 
Posts: 124 since Jul 2012
Thanks Given: 87
Thanks Received: 117



NaturePip View Post
Hello Everyone:

Yesterday, my computer crashed and when I brought it back up, I lost all my charts and custom studies. I re-installed Sierra over top the old Sierra and re-setup my charts. However, the custom studies I wrote in Visual Studio (for Sierra) will not show up when I go to Add Custom Study under the "Studies" window.

Does anyone know why. Nothing about the program source code has changed so it has to be the Sierra charts that are not recognizing my study for some reason.

I even tried re-installing another instance of Sierra under Sierra2 folder (just in case something else in Sierra is corrupt) but cannot get my Rithmic data feed to work. I put a call into Sierra for that.

If you have any idea, I would love to hear them.

Thank you,

When your computer crashed, it may have corrupted the DLL file.

So...

Where did you save your CPP file?

Check that folder to ensure your CPP file still exists.

If it does, recompile your CPP file.

Then make certain the DLL file is in the SC>Data folder: "your-study-name_64.dll"

See if you can add the study.

Reply With Quote
Thanked by:
  #4 (permalink)
NaturePip
Cochrane Alberta Canada
 
Posts: 12 since Nov 2013
Thanks Given: 1
Thanks Received: 21

Thank you BobWest and OndaFringe.

OndaFringe ... thank you... I have already ensured my files are in the correct folders and have re-compiled the cpp.

Bobwest ... Thank you also. you have actually fixed an unrelated problem with my scDateTime class in another program I am writing by sending me that link. As for this problem... I will certainly try using SC Remote Builder. Never used it before. I will let you know how I make out... thanks again.

Reply With Quote
Thanked by:
  #5 (permalink)
ondafringe
Albuquerque, NM, USA
 
Posts: 124 since Jul 2012
Thanks Given: 87
Thanks Received: 117


NaturePip View Post
Thank you BobWest and OndaFringe.

OndaFringe ... thank you... I have already ensured my files are in the correct folders and have re-compiled the cpp.

Bobwest ... Thank you also. you have actually fixed an unrelated problem with my scDateTime class in another program I am writing by sending me that link. As for this problem... I will certainly try using SC Remote Builder. Never used it before. I will let you know how I make out... thanks again.

If Remote Build doesn't work, you might try copying your CPP file over to the SC>ACS_Source folder.

Then locate the CPP file using SC>Analysis>Build Custom Study DLL>File>Select File

Once you have selected your CPP file: Build>Build With Visual C++ Release

Assuming no errors, close that window and try again to add your study.

Reply With Quote
Thanked by:
  #6 (permalink)
 gomi 
Paris
Market Wizard
 
Experience: None
Platform: NinjaTrader
Posts: 1,270 since Oct 2009
Thanks Given: 282
Thanks Received: 4,505

Yes there were some breaking changes in 2151, so some parts may need rewriting, specially if you manipulate datetime since the full structure has changed.

It bewilders me how they keep bragging about being the best developers in the world, and however they did not plan any backwards compatibility, so each and every study ever wrote , even using most basic stuff, must get recompiled...

They post multiple messages about how they believe Microsoft is the most incompetent software corporation, employing anything but the worst of all developers of the world, however I still use my year 2000 version of CoolEdit(audio software, nice denoiser), which is a Win32 app. So that's 20 years of Win32 compatibilty, and the Win32 stack must have been 100% rewritten since. However they managed to maintain backwards compatibility..

Reply With Quote
Thanked by:
  #7 (permalink)
 
bobwest's Avatar
 bobwest 
Western Florida
Site Moderator
 
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
Frequency: Several times daily
Duration: Minutes
Posts: 8,172 since Jan 2013
Thanks Given: 57,515
Thanks Received: 26,292


gomi View Post
Yes there were some breaking changes in 2151, so some parts may need rewriting, specially if you manipulate datetime since the full structure has changed.

It bewilders me how they keep bragging about being the best developers in the world, and however they did not plan any backwards compatibility, so each and every study ever wrote , even using most basic stuff, must get recompiled...

They post multiple messages about how they believe Microsoft is the most incompetent software corporation, employing anything but the worst of all developers of the world, however I still use my year 2000 version of CoolEdit(audio software, nice denoiser), which is a Win32 app. So that's 20 years of Win32 compatibilty, and the Win32 stack must have been 100% rewritten since. However they managed to maintain backwards compatibility..

They do regard themselves as extremely special.

I like their program, but ....

Bob.

When one door closes, another opens.
-- Cervantes, Don Quixote
Reply With Quote
Thanked by:




Last Updated on November 11, 2020


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts