I have 6 MA's on each chart and is time consuming to have to change them in the morning manually!
Indicator is attached!
Here is the code
private bool zOrderBehind = false;
private int CatchZOrder;
----------------------------------------------------
protected override void Initialize()
CatchZOrder = ZOrder;
----------------------------------------------------
protected override void OnStartUp()
{
CatchZOrder = ZOrder;
}
----------------------------------------------------
protected override void OnBarUpdate()
{
if(zOrderBehind == true)ZOrder = -1;
if(zOrderBehind == false)ZOrder = CatchZOrder;
}
------------------------------------------------------------------
#region Properties
[Description("Draw Price Lines Behind Bars")]
[Category("Display Settings")]
[Gui.Design.DisplayName ("Draw Price Lines Behind Bars")]
public bool ZOrderBehind
{
get { return zOrderBehind; }
set { zOrderBehind = value;}
}
This allows and indeed worked to put plots in front of candles but on top of that, it will also manage to set the proper order between numerous indicator installations...
The opposite is ZOrder = int.MinValue;
Also is there an indicator that would do this for all indicators and drawing tools used?
Cheers
Comment