Support Board
Date/Time: Thu, 27 Feb 2025 03:17:21 +0000
Post From: sc.CrossOver(Last, Subgraph_SimpMovAvg) == CROSS_FROM_BOTTOM
[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. |