Jump to content

⤴️-Paid Ad- Check advertising disclaimer here. Add your banner here.🔥

Recommended Posts

Posted

I have some code for TOS platform that I would like converted to NinjaTrader. I think the indicator are worth looking at.

 

The code is below, I'm just not sure if theirs a site that offers this.

 

Video on it:

 

CODE BELOW --------

 

 

#

 

declare lower;

 

def UVol = close("$UVOL");

def DVol = close("$DVOL");

def TVol = close("$TVOL");

def Advn = close("$ADVN");

def Decn = close("$DECN");

def Uncn = close("$UNCN");

 

def UpDNA_Issues = Advn/(Advn+Decn+Uncn);

def DnDNA_Issues = Decn/(Advn+Decn+Uncn);

 

def UpDNA_Vol = UVol/TVol;

def DnDNA_Vol = DVol/TVol;

 

plot MidLine = 0.5;

MidLine.SetDefaultColor(color.RED);

MidLine.HideBubble();

 

plot TopLine = 0.8;

MidLine.SetDefaultColor(color.RED);

TopLine.HideBubble();

 

plot BottomLine = 0.2;

MidLine.SetDefaultColor(color.RED);

BottomLine.HideBubble();

 

plot U_DNA_V = UpDNA_Vol;

U_DNA_V.SetDefaultColor(color.Light_GREEN);

U_DNA_V.HideBubble();

 

plot D_DNA_V = DnDNA_Vol;

D_DNA_V.SetDefaultColor(color.YELLOW);

D_DNA_V.HideBubble();

 

plot U_DNA_I = UpDNA_Issues;

U_DNA_I.SetDefaultColor(color.GRAY);

U_DNA_I.HideBubble();

 

plot D_DNA_I = DnDNA_Issues;

D_DNA_I.SetDefaultColor(color.PINK);

D_DNA_I.HideBubble();

Posted
Can't open it can someone post the full tos code?

 

This is all that the zip archive has in a text file:

 

 

#

#

 

declare lower;

 

def UVol = close("$UVOL");

def DVol = close("$DVOL");

def TVol = close("$TVOL");

def Advn = close("$ADVN");

def Decn = close("$DECN");

def Uncn = close("$UNCN");

 

def UpDNA_Issues = Advn/(Advn+Decn+Uncn);

def DnDNA_Issues = Decn/(Advn+Decn+Uncn);

 

def UpDNA_Vol = UVol/TVol;

def DnDNA_Vol = DVol/TVol;

 

plot MidLine = 0.5;

MidLine.SetDefaultColor(color.RED);

MidLine.HideBubble();

 

plot TopLine = 0.8;

MidLine.SetDefaultColor(color.RED);

TopLine.HideBubble();

 

plot BottomLine = 0.2;

MidLine.SetDefaultColor(color.RED);

BottomLine.HideBubble();

 

plot U_DNA_V = UpDNA_Vol;

U_DNA_V.SetDefaultColor(color.Light_GREEN);

U_DNA_V.HideBubble();

 

plot D_DNA_V = DnDNA_Vol;

D_DNA_V.SetDefaultColor(color.YELLOW);

D_DNA_V.HideBubble();

 

plot U_DNA_I = UpDNA_Issues;

U_DNA_I.SetDefaultColor(color.GRAY);

U_DNA_I.HideBubble();

 

plot D_DNA_I = DnDNA_Issues;

D_DNA_I.SetDefaultColor(color.PINK);

D_DNA_I.HideBubble();

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


⤴️-Paid Ad- Check advertising disclaimer here. Add your banner here.🔥

×
×
  • Create New...