Modified on 2013/05/11 12:28 by Eugene — Categorized as: Community Components


public static PositionSize GetPositionSize(this WealthScript obj)

public PositionSize GetPositionSize( WealthScript obj )

Parameter Description

objAn instance of the WealthScript object


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 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() ); } } }