Login Page - Create Account

Support Board


Date/Time: Sun, 05 May 2024 15:27:22 +0000



Post From: Nasdaq total view with IB chart trading

[2022-02-08 17:01:23]
User504778 - Posts: 22
I guess you don't really need "-STK-SMART-USD" for IB trading. The following code works for me. Just manually type a symbol without the suffix on the chart screen, like type SPY or AAPL, as usual to change symbol, it will set the new trading symbols for you. You should have the box "Use As Trade Only Symbol" checked in the Chart Settings.


#include "sierrachart.h"

SCDLLName("NQTV IB Trading DLL")

SCSFExport scsf_NQTV_IB_Trading(SCStudyInterfaceRef sc)
{
  sc.GraphRegion = 0;
  sc.GraphName = "NQTV IB Trading";
  if (sc.Symbol.Right(5) != "-NQTV"){
    sc.DataFile = sc.Symbol + "-NQTV.scid";
    sc.TradeAndCurrentQuoteSymbol = sc.Symbol;
  }
}