Support Board
Date/Time: Wed, 15 Jan 2025 15:24:34 +0000
(mysterious condition)
View Count: 719
[2017-07-06 18:15:19] |
User138418 - Posts: 16 |
I’m an OLD programmer, but new to C++ & Sierra. There’s a construct in the first Trading Examples file that drives me bats: bool TradingAllowed = true; (BarTime >= HMS_TIME(10, 0, 0) && BarTime < HMS_TIME(14, 0, 0)); The next line tests TradingAllowed for T/F. The implication seems that TradingAllowed will be set True if the following (condition) makes muster and False if it does not. But there’s not an “If” or “False” in sight. What gives that (condition) that power? Where is this mysterious power explained? What’s its name? What other mysterious powers exist merely by using () after the fact? What am I missing? HALP! |
[2017-07-06 18:51:57] |
Sierra Chart Engineering - Posts: 104368 |
This looks like a quick example we were working on to demonstrate limiting trading to a specific time range but did not want it actually active. This is what it should be like: bool TradingAllowed = true; //(BarTime >= HMS_TIME(10, 0, 0) && BarTime < HMS_TIME(14, 0, 0)); This will be corrected in the next release. Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
To post a message in this thread, you need to log in with your Sierra Chart account: