Support Board
Date/Time: Tue, 26 Nov 2024 08:46:18 +0000
Post From: Nasdaq total view with IB chart trading
[2022-02-08 16:24:59] |
1+1=10 - Posts: 270 |
I'm assuming SC doesn't have a built-in way to do this so I created a custom study. It took me 5 minutes and it is something I may use myself in the future when trading equities. It only translates SC symbols that end in -NQTV so it won't modify your non-equity trade symbols. You can either take the source code below, copy it to a file ending in .cpp, and compile the code into a study yourself yourself following the rather involved instructions here: How to Build an Advanced Custom Study from Source Code: Step-By-Step Instructions OR you can download the attached file and copy it your SC's data folder following the simpler instructions here: How to Use an Advanced Custom Study or a Study Collection: Manually Installing Advanced Custom Study Related Files #include "sierrachart.h" SCDLLName("Gilbert's Custom Studies") SCSFExport scsf_ConvertNQTVSymbolToIBTradeSymbol(SCStudyGraphRef sc) { if(sc.SetDefaults) { sc.GraphName = "Convert Symbol: NQTV -> IB Trade"; sc.GraphRegion = 0; sc.AutoLoop = 1; } SCString nqtv_str; nqtv_str.Format("-NQTV"); SCString ib_trade_symbol; if (sc.Symbol.Right(5) == nqtv_str) { ib_trade_symbol.Format("%s-STK-SMART-USD", sc.Symbol.Left(-5).GetChars()); } if (sc.TradeAndCurrentQuoteSymbol != ib_trade_symbol) { sc.TradeAndCurrentQuoteSymbol = ib_trade_symbol; sc.AddMessageToLog("Switched trade symbol from NQTV to IB.", 0); } } Date Time Of Last Edit: 2022-02-08 16:25:36
|
convert_nqtv_to_ib_64.dll - Attached On 2022-02-08 16:23:58 UTC - Size: 887.5 KB - 437 views |