Support Board
Date/Time: Tue, 04 Nov 2025 06:04:36 +0000
Post From: Custom Made Study Cannot Calculate Back in Time
|   [2023-03-22 16:44:15]     |  
| User431178 - Posts: 805 | 
| 
                It solves exactly the problem that you mentioned... Can you not see why the line would be flat for the initial calculation? float SmROC24LastValue = SmROC24[SmROC24.GetArraySize() - 1]; float SmROC18LastValue = SmROC18[SmROC18.GetArraySize() - 1]; float SmROC12LastValue = SmROC12[SmROC12.GetArraySize() - 1]; float SmROC6LastValue = SmROC6[SmROC6.GetArraySize() - 1]; Every bar during the initial calculation is referencing the last value in the array, i.e. the last bar. Date Time Of Last Edit: 2023-03-22 16:45:01  
             | 
        
