meaning the line is atually infornt of the current bars. i know that i will have to build my own indicator but i am confused as to where the code for the offset would me placed. attached is a code for any EMA if someone could input the changes that would be great
thank you
john
#region Variables
privateint period = 5;
#endregion
///<summary>
/// This method is used to configure the indicator and is called once before any bar data is loaded.
///</summary>
protectedoverridevoid Initialize()
{
Add(new Plot(Color.Orange, "EMA"));
Overlay = true;
PriceTypeSupported = true;
}
///<summary>
/// Called on each bar update event (incoming tick)
///</summary>
protectedoverridevoid OnBarUpdate()
{
Value.Set(CurrentBar == 0 ? Input[0] : Input[0] * (2.0 / (1 + Period)) + (1 - (2.0 / (1 + Period))) * Value[1]);
}
Comment