Login Page - Create Account

Support Board


Date/Time: Mon, 29 Apr 2024 22:01:27 +0000



Post From: Trade Entry/Exit Markers Move with Each New Bar

[2020-09-09 16:04:54]
BlakJak - Posts: 108
I think it is the study but I cannot figure out why.

If I load the study and manually enter a trade then the markers moves just like the study opened trades. The markers move to the sc.Index - 1 bar with each new bar. As soon as I remove the study the markers start to scroll backwards with every new bar as they should.


My study is using 8 subgraphs. On some of them I am using multiple Arrays[] as well.

I have checked for memory problems but do not find any (although I know I could have missed something).

Here are my SetDefaults:

  sc.MaintainVolumeAtPriceData = true;
  sc.UpdateAlways = false; // Default but let's make sure.

  // Trading Defaults
  sc.AllowMultipleEntriesInSameDirection = false;
  sc.SupportReversals = false;
  sc.AllowOppositeEntryWithOpposingPositionOrOrders = false;
  sc.SupportAttachedOrdersForTrading = false;
  sc.CancelAllOrdersOnEntriesAndReversals = true;
  sc.AllowEntryWithWorkingOrders = false;
  sc.CancelAllWorkingOrdersOnExit = false;
  sc.AllowOnlyOneTradePerBar = true;
  sc.MaintainTradeStatisticsAndTradesData = true;
  sc.SupportAttachedOrdersForTrading = true;
  sc.UseGUIAttachedOrderSetting = true;
  sc.MaximumPositionAllowed = 10;
  sc.AlertOnlyOncePerBar = true;
  sc.ResetAlertOnNewBar = true;
  sc.TransparencyLevel = 50;

Running 2162.

Any other ideas?