Syntax
public static PositionSize GetPositionSize(this WealthScript obj)
public PositionSize GetPositionSize( WealthScript obj )
Parameter Description
obj | An 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() );
}
}
}