NexusFi: Find Your Edge


Home Menu

 



Showing results 1 to 10 of 10
Search: Posts Made By: gregid
Forum: NinjaTrader April 14th, 2015, 07:12 AM
Replies: 23
Views: 4,473
Posted By gregid
You don't actually need to separate plots for...

You don't actually need to separate plots for TMLUp and TMLDown and instead you can use PlotColors:
NinjaTrader Version 7 (http://www.ninjatrader.com/support/helpGuides/nt7/index.html?plotcolors.htm)
Forum: NinjaTrader April 14th, 2015, 07:01 AM
Replies: 23
Views: 4,473
Posted By gregid
Also, your indicator calls can be greatly...

Also, your indicator calls can be greatly optimized, use this for reference:
https://nexusfi.com/attachments/104390d1362098948
Forum: NinjaTrader April 14th, 2015, 06:58 AM
Replies: 23
Views: 4,473
Posted By gregid
Your TMLUp and TMLDown seem to be nothing else...

Your TMLUp and TMLDown seem to be nothing else than just a reference to the same LinReg. If your goal for TMLUp and TMLDown is to only represent binary result (it is either Up or Down, 1 or -1) then...
Forum: NinjaTrader April 13th, 2015, 08:05 PM
Replies: 23
Views: 4,473
Posted By gregid
Print will print the message you want into the...

Print will print the message you want into the output window. You can open Output Window from Control Center (Tools) or from NinjaScript code editor (4th icon from the left on the toolbar)
Forum: NinjaTrader April 13th, 2015, 07:50 PM
Replies: 23
Views: 4,473
Posted By gregid
Welcome back :crazy_pilot: The reason...

Welcome back :crazy_pilot:

The reason because COBC false doesn't work quite well for you is probably because the values of the indicators change intrabar (ie: during a bar creation you can have:...
Forum: NinjaTrader March 31st, 2015, 09:05 AM
Replies: 23
Views: 4,473
Posted By gregid
You need to add one more color variable eg.: ...

You need to add one more color variable eg.:

private Color useThisColor = Color.White; //just setting up some default

then OnBarUpdate:

if (conditionsUpAreMet)
{
useThisColor = sMAUp;...
Forum: NinjaTrader March 31st, 2015, 08:14 AM
Replies: 23
Views: 4,473
Posted By gregid
If you want the condition to trigger to either of...

If you want the condition to trigger to either of the 2 - you need to use or: "||"


if (condition1 || condition2)
{
//change color
}
Forum: NinjaTrader March 31st, 2015, 07:53 AM
Replies: 23
Views: 4,473
Posted By gregid
It is not clear from your code but it seems to me...

It is not clear from your code but it seems to me that this is what you were trying to achieve:

// If high breaks a swing high
if (High[0] > Swing(swings).SwingHigh[0])
{
// If low is...
Forum: NinjaTrader March 31st, 2015, 07:36 AM
Replies: 23
Views: 4,473
Posted By gregid
If you are rather new to programming then I would...

If you are rather new to programming then I would also recommend to ALWAYS use curly braces with conditions ie: never leave the if, else if and else without accompanying curly braces. So that after...
Forum: NinjaTrader March 31st, 2015, 07:11 AM
Replies: 23
Views: 4,473
Posted By gregid
Tanju23, To fix your code remove the...

Tanju23,

To fix your code remove the semicolon ";" from your if/else if lines:


if (High[0] > Swing(swings).SwingHigh[0])
{
// something
}
else if (Low[0] >= EMA(keltner)[0] + Spread *...
Showing results 1 to 10 of 10

What unexpected challenges have you encountered while trading on a "Funded Trader" platform?

 


 
 


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top