Support Board
Date/Time: Thu, 27 Feb 2025 00:25:06 +0000
[Programming Help] - sc.CrossOver(Last, Subgraph_SimpMovAvg) == CROSS_FROM_BOTTOM
View Count: 583
[2021-06-09 18:49:44] |
User39772 - Posts: 311 |
Hello, your Sample Trading System shows the following entry condition: if (TradingAllowed && sc.CrossOver(Last, Subgraph_SimpMovAvg) == CROSS_FROM_BOTTOM && sc.GetBarHasClosedStatus() == BHCS_BAR_HAS_CLOSED) The entry price is always the High of the bar that crossed the SMA, e.g. high of 5m bar or high of 30 m bar. This causes bad entries which can be seen in the statistics. How has this to be modified, so that the entry price is always the exact value of the cross point between price and SMA ? It removed sc.GetBarHasClosedStatus() == BHCS_BAR_HAS_CLOSED, but it did not help. |
To post a message in this thread, you need to log in with your Sierra Chart account: