Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 19:03:53 +0000



Post From: Trade and Current Quote Symbol - incorrect Profit/Loss values

[2019-08-28 17:06:20]
T44 - Posts: 363
I see this has now been changed to read/write in the documentation. I am running the latest prerelease (1981). However I cannot confirm the tick value is changing after attempting to set it in ASCIL, but I have not turned on further debugging.

Can you please confirm if this feature is live?

For those interested, code is....

#include "sierrachart.h"

#include "scstudyfunctions.h"

//snip

sc.FlagToReloadChartData = 1; //required if setting sc.TickSize ACSIL Interface Members - Variables and Arrays: sc.TickSize

//snip


case ACS_BUTTON_11: //I am using a toolbar button to toggle "mini" contract sizes for an instrument

//other symbols omitted for brevity
    int IsAX;

    IsAX = sc.Symbol.CompareNoCase("F.US.DD",7); //CQG feed


  if (IsAX == 0) { //the mini Dax needs its value format altered.
    sc.TradeAndCurrentQuoteSymbol = "F.US.FDXMU19";
    sc.TradeWindowConfigFileName = "AX-sm.twconfig";
    sc.BaseGraphValueFormat = 0; //0 = Zero decimal places. Example output: 1
    sc.TickSize = 1;
    sc.CurrencyValuePerTick = 5;
  }
}

Date Time Of Last Edit: 2019-08-28 17:10:39