Login Page - Create Account

Support Board


Date/Time: Mon, 03 Feb 2025 13:50:57 +0000



Post From: Unexpected Live Trade Position Quantity Problems

[2019-11-06 08:12:35]
T44 - Posts: 363
I'm not a programmer but this might point you along the right lines...


  if (sc.UpdateStartIndex == 0)
  {
    sc.SetCustomStudyControlBarButtonText(1, "ES");
    sc.SetCustomStudyControlBarButtonText(2, "YM");
    sc.SetCustomStudyControlBarButtonText(3, "NQ");
    sc.SetCustomStudyControlBarButtonText(4, "TF");
}


  // wait for an event
  if (sc.MenuEventID != 0)
  {

switch (sc.MenuEventID)
{
case ACS_BUTTON_1:
  sc.DataFile = "F.US.EPU19.scid";
  sc.TradeWindowConfigFileName = "ES.twconfig";
  sc.StartTime1 = HMS_TIME(8,30,00);
  sc.EndTime1 = HMS_TIME(14,59,59);
  sc.StartTime2 = HMS_TIME(15,0,0);
  sc.EndTime2 = HMS_TIME(8,29,29);
break;
//etc...

Date Time Of Last Edit: 2019-11-06 08:13:04