ScrewTurn

Active Trader Strategies API Community ChartStyles Community Commissions Community Components Community Indicators Community Providers Community Visualizers Knowledge Base Misc Optimizers PosSizers Standard Indicators TASC Traders Tips TASCIndicators Tutorial Videos
RSS

Navigation







Quick Search
»
Advanced Search »

PoweredBy

Syntax


public bool IsRawProfitMode( WealthScript obj )

Parameter Description

obj An instance of the WealthScript object

Description

Returns true if Strategy was executed in Raw Profit mode, and false if in Portfolio Simulation mode.

Example

Here is an example illustrating how to use the method in your Strategy code:


using System;
using System.Text;
using WealthLab;
using WealthLab.Indicators;

namespace WealthLab.Strategies { public class MyStrategy : WealthScript { protected override void Execute() { /* Create an instance of the class that holds the method, passing it a WealthScript object (required) as "this" */ Community.Components.Utility u = new Community.Components.Utility(this);

// Call the method if( u.IsRawProfitMode() ) PrintDebug( "Raw Profit mode" ); else PrintDebug( "Portfolio Simulation mode" ); } } }

Important Disclaimer: The information provided by Wealth-Lab is strictly for informational purposes and is not to be construed as advice or solicitation to buy or sell any security.  The owner of Wealth-Lab.com assumes no liability resulting from the use of the material contained herein for investment purposes.

Used under license from FMR Corp. Copyright 2008 FMR Corp. All rights reserved.


ScrewTurn Wiki version 3.0.2.509. Some of the icons created by FamFamFam.