// This namespace holds all strategies and is required. Do not change it.
namespace NinjaTrader.Strategy
{
/// <summary>
/// The system enters sell limts at R1 at london open if price is trading below pivot point
/// </summary>
[Description("The system enters sell limts at R1 at london open if price is trading below pivot point")]
public class PivotR1 : 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()
{
SetStopLoss("", CalculationMode.Ticks, 40, false);
SetProfitTarget("", CalculationMode.Ticks, 20);
CalculateOnBarClose = true;
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
// Condition set 1
if (ToTime(Time[0]) >= ToTime(7, 0, 0)
&& Close[0] < Pivots(PivotRange.Daily, HLCCalculationMode.DailyBars, 20).R1[0])
{
EnterShortLimit(DefaultQuantity, Pivots(PivotRange.Daily, HLCCalculationMode.DailyBars, 20).R1[0], "");
}
}
#region Properties
[Description("")]
[Category("Parameters")]
public int MyInput0
{
get { return myInput0; }
set { myInput0 = Math.Max(1, value); }
}
#endregion
}
}
what i want is the system toplace sell order at R1 pivot point. Is there any system which trades fibonacci points of swing highs
Comment