(I loaded it in the control center, and started it).
thank you
// This namespace holds all strategies and is required. Do not change it.
namespace NinjaTrader.Strategy
{
/// <summary>
/// entrar largo en base a: DM, EOM, BOP, VOL OSC, HMA, STD ERR
/// </summary>
[Description("entrar largo en base a: DM, EOM, BOP, VOL OSC, HMA, STD ERR")]
public class entradalargo : Strategy
{
#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 strategy and is called once before any strategy method is called.
/// </summary>
protected override void Initialize()
{
CalculateOnBarClose = true;
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
// Condition set 1
if (DM(14).DiPlus[1] > DM(14).DiMinus[1]
&& EaseOfMovement(14, 10000)[1] > 0
&& BOP(14)[1] > 0
&& VolumeOscillator(12, 26)[1] > 0
&& HMA(10)[1] > HMA(21)[1]
&& StdError(14).Middle[1] > HMA(21)[1])
{
DrawArrowLine("ENTRADA" + CurrentBar, 3, High[(int) (High[0] + 2 * TickSize)] + 2 * TickSize, 0, High[0] + 5 * TickSize, Color.Blue);
DrawDiamond("My diamond" + CurrentBar, false, 0, Close[0] + 1 * TickSize, Color.Red);
PlaySound(@"C:\Archivos de programa\NinjaTrader 6.5\sounds\Alert3.wav");
}
}
#region Properties
[Description("")]
[Category("Parameters")]
public int MyInput0
{
get { return myInput0; }
set { myInput0 = Math.Max(1, value); }
}
#endregion
}

Comment