Jump to content

Market-X-Factor (TOS) to NinjaTrader


fryguy1

Recommended Posts

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();

Link to comment
Share on other sites

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();

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...