Click here to Login

                                                   Best way to precompute a custom formula and store it


Stefan Kroscen
2010-08-22 08:59:54

I've been trying to think of a way to work around the memory issue that I've submitted that I've encountered when heavily using the
chande_trendscore_by_symbol. I was thinking the answer could be to precompute the values for each stock quote and store it.

What would be the best way to do that? Is there a way from the script editor to access custom functions? Ideally I'm thinking the best way to do this
would be to create a c# function that computes the value and have both a script that can sweep the database and update the precomputed values,
and enhance the downloader to compute these as the data comes in.

If I can't do that, is the only option I have to rewrite the chande_trendscore_by_symbol function to not use the cFunctions and be a standard function
that can be invoked everywhere?

Appreciate any guidance you may have.

2010-08-22 10:24:19


Best Answer
Hi Stefan,

We have solved the memory problem. We will send you an email explaining the changes we have made.

You can access a custom function in the global script using the ParserTool class.
Example: ParserTool.CreateParser("a = customfunction()");

Stefan Kroscen
2010-08-22 16:10:38



Thanks for your quick response.

No more messages


No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"


Trading Items
Upside-Downside and Custom Standard Deviation
Advanced Quotes and Custom Databases Function
Buy signal watchlist And Buy signal on your Chart (Red Spot)
The Best trading rules for the ADX technical indicator
Falling and Rising Wedge Patterns

How-to Lessons
How to download and use U.S. stocks earnings data
How to create a custom trading indicator
How to create a formula
How to use a custom drawing tool
How to create and trade a Neural Network model

Related Forum Threads
Custom Multi-Dimensional Fitness Formula (CMDFF) for Optimizer
indicator for 1 symbol in screener and simulation
Storing a series of custom data globally.
Ratio Spread and C#
Create and Export each database for each market

Blog Posts
Select the best ETFs combination to maximize your return and redu...
Trading System Analysis: Backtesting report and custom measures
How to combine long, short and custom portfolio strategies within...
How to create and backtest thousands of trading rules in less tha...
How to Select the Best Market Indicator for your Trading System

Create an account
Affiliate Program
Contact Us
Trading Forum
How-to Lessons
About Us
Terms of Use

Copyright 2017
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Follow us on Google+
RSS Trading Items

Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.