Login Page - Create Account

Support Board


Date/Time: Sun, 28 Apr 2024 21:40:31 +0000



Post From: Ninja Trader 7 code block converted over to Sierra code

[2018-09-12 03:35:23]
JoseyWales - Posts: 67
I don't have access to NQU8 data so can you try on Forex data?
But first change the code block under the persistent variables:

  if (sc.Index < TrendLength.GetInt())
  {
    swing = 1;

    if (ColorType.GetIndex() == 1)
      BackgroundColor.DrawStyle = DRAWSTYLE_BACKGROUND_TRANSPARENT;
    else if (ColorType.GetIndex() == 2)
      BackgroundColor.DrawStyle = DRAWSTYLE_IGNORE;

    return;
  }

To this and recompile:

  if (sc.Index < TrendLength.GetInt())
  {
    swing = 1;

    if (ColorType.GetIndex() == 1)
      BackgroundColor.DrawStyle = DRAWSTYLE_BACKGROUND;
    else if (ColorType.GetIndex() == 2)
      BackgroundColor.DrawStyle = DRAWSTYLE_IGNORE;

    return;
  }

Maybe your computer wont allow transparent backgrounds.

And change BackgroundColor.PrimaryColor = COLOR_GREEN; to
BackgroundColor.PrimaryColor = COLOR_DARKGREEN;

and BackgroundColor.SecondaryColor = COLOR_RED; to
BackgroundColor.SecondaryColor = COLOR_DARKRED;
in the sc.SetDefaults Block, it wont be as harsh on the eyes.