I created a very simple Indicator that prints the Slope of the 5 SMA to the Output Window. In the "Parameters" menu of the Indicator I set "Display in Data Box" to true, but the Data Box doesn't display the indicator. Could someone please tell me what I'm missing here? Thanks a lot.
public class SlopePrint : Indicator
{
#region Variables
// Wizard generated variables
private int myInput0 = 1; // Default setting for MyInput0
// User defined variables (add any user defined variables below)
#endregion
/// <summary>
/// This method is used to configure the indicator and is called once before any bar data is loaded.
/// </summary>
protected override void Initialize()
{
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
Print(Slope(SMA(5), 3, 0));
}

Comment