Support Board
Date/Time: Wed, 15 Jan 2025 09:16:40 +0000
Post From: How to trade a different security from chart
[2017-06-07 01:31:13] |
User972044 - Posts: 154 |
And I think I have found the cause for the codes not executing the trades properly. For some reason, sc.Index is NOT being updated. All the Study functions that return the most current value based on sc.Index e.g. are all working properly; they are returning the correct value but the for some reason, sc.Index is remaining at 0.00000 always from the log. And I remember from my previous coding experience, sc.Index is supposed to be an integer and is supposed to start at 0 and gets incremented during the running of the codes and yet it's a floating number for some reason and remains at 0.0000. I have set Autoloop = 0; just so you know. Please investigate. Thanks |