Support Board
Date/Time: Mon, 24 Feb 2025 00:54:25 +0000
Post From: turning a subgraph into a system error
[2021-02-22 21:40:41] |
Flipper_2 - Posts: 57 |
Have a look at the example in C:\SierraChart\ACS_Source\TradingSystem.cpp scsf_TradingSystemStudySubgraphCrossover That trading system references two study arrays. And yes you need 4 SCFloatArrays not floats. Just another idea I wouldn't use sc.GetBarHasClosedStatus() == BHCS_BAR_HAS_CLOSED Far better to just reference the data 1 bar back then you know it has closed. so the line if (sc.GetBarHasClosedStatus() == BHCS_BAR_HAS_CLOSED && Subgraph_Close > 300 && Subgraph_Low < -300)
would be,if( Subgraph_Close[sc.Index-1] < 300 && Subgraph_Low[sc.Index-1] < -300) if using autolooping
|