public static int FundamentalSequenceCheck(this WealthScript obj, string item)public int FundamentalSequenceCheck(string item)
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using Community.Components; /*** Requires installation of Community.Components Extension from www.wealth-lab.com > Extensions ***/namespace WealthLab.Strategies { public class FundamentalsCheckerDemo : WealthScript { protected override void Execute() { ClearDebug(); // Let's say I want to check the "assets" data before I use it in a script if(this.FundamentalSequenceCheck("assets") != -1) { // stop script processing now return; } PrintDebug( "assets probably okay to use in script..."); } } }
using System; using System.Collections.Generic; using System.Text; using System.Drawing; using WealthLab; using Community.Components; /*** Requires installation of Community.Components Extension from www.wealth-lab.com > Extensions ***/namespace WealthLab.Strategies { public class FundamentalsCheckerDemo : WealthScript { protected override void Execute() { // Create an instance of the class that contains the routine, // passing a WealthScript object as "this" Utility u = new Utility( this ); ClearDebug(); // Let's say I want to check the "assets" data before I use it in a script if(u.FundamentalSequenceCheck("assets") != -1) { // stop script processing now return; } PrintDebug( "assets probably okay to use in script..."); } } }