Support Board
Date/Time: Sun, 12 Jan 2025 13:08:38 +0000
Post From: ASCIL access to symbol's Round Trip Commission
[2016-09-10 17:01:50] |
DabbaDo - Posts: 148 |
I still can't get a Round Turn commission to be non-zero in a study. I've tried with a stock (IBM) and a futures symbol (ESZ16). I add the Round Turn Commission on the Internal table per http://www.sierrachart.com/index.php?page=doc/GlobalSymbolSettings.php. I close the chartbook and re-open it. Nothing I do get's me to a non-zero value. Short study example: #include "sierrachart.h" SCSFExport scsf_TestCommission(SCStudyGraphRef sc) { int& isMessageLogged = sc.GetPersistentInt(1); if (sc.SetDefaults) { sc.GraphName = "Test Commission"; return; } if (!isMessageLogged) { SCString message; message.Format("For symbol=%s RoundTurnCommission=%f", sc.Symbol.GetChars(), sc.RoundTurnCommission); sc.AddMessageToLog(message, 1); isMessageLogged = 1; sc.SetPersistentInt(1, isMessageLogged); } } |