Log in to see Cloud of Tags

Wealth-Lab Wiki

GetPositionSize

RSS

Syntax


public static PositionSize GetPositionSize(this WealthScript obj)

public PositionSize GetPositionSize( WealthScript obj )

Parameter Description

objAn instance of the WealthScript object

Description

Returns the PositionSize object indicative of position sizing settings applied to a Strategy.

Since the usage of PositionSize isn't a "use case" and therefore isn't going to be documented, advanced users please see its properties in Object Browser of your favorite IDE.

Example

Example using C# extension methods:


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

namespace WealthLab.Strategies { public class MyStrategy : WealthScript { protected override void Execute() { PrintDebug( this.GetPositionSize() ); } } }

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. By using this web site, you agree to the terms of this disclaimer and our Terms of Use.


ScrewTurn Wiki. Some of the icons created by FamFamFam.