Discussions
»
Product and Service Development
»
MetaStock
»
How to avoid error messages while scrolling through a folder of stocks
Rank: Member
Groups: Registered, Registered Users Joined: 4/7/2012(UTC) Posts: 21 Location: California
|
In going over a folder of charts use a chart template with indicators in it, I often encounter stocks that do not have enough data to drive the indicators/Expert Advisors. For example, a few IPOs do not have enough trading history for MetaStock to calculate the 50-day moving average or 200-day moving average, and MetaStock would generate an error message. My question: any way avoid these pop-up error messages without making an effort to avoid these indicators/experts?
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/25/2005(UTC) Posts: 1,042
Was thanked: 57 time(s) in 54 post(s)
|
Hi trendsca
The indicators used in your template probably need to be modified specifically to avoid the error messages you are getting. A simple technique that should work for most situations is to pass the original indicator output through the Forum DLL so that N/A results are converted to zeros. An output line like this should eliminate N/A results.
ExtFml("Forum.Sum", "original output" ,1);
Depending on what indicators you're using and how they interact with others in the template, this could lead to other problems such as Divide-by-Zero errors. However, that too can be addressed quite easily.
There are numerous other tricks that can be applied if the Forum DLL doesn't achieve the desired result.
Roy
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Discussions
»
Product and Service Development
»
MetaStock
»
How to avoid error messages while scrolling through a folder of stocks
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.