Hi All,
I would like to keep a separate record of the dates when trade signals have appeared, which I can then export to a CSV file for further analysis. I thought this could be easily achieved using an array, which would keep a running list of all the dates for each trade signal taken but I'm having some difficulties.
When I compile my code I get the "possible loss of data due to type conversion" error with the following line : BuyTradesArray[index][0]=BuySignalTime;
BuyTradesArray is defined as a double
index is defined as an INT (index increases by 1 each time a new trade signal appears)
BuySignalTime is defined as a datetime ( as it contains time/date info)
What am I doing wrong?
Any advice appreciated.....
PS. I would like my array to contain to pieces of information; both Signal Time/Date and Open Price. For this reason I did not declare the array as datetime to begin with.
Thanks in advance,
CCH
I would like to keep a separate record of the dates when trade signals have appeared, which I can then export to a CSV file for further analysis. I thought this could be easily achieved using an array, which would keep a running list of all the dates for each trade signal taken but I'm having some difficulties.
When I compile my code I get the "possible loss of data due to type conversion" error with the following line : BuyTradesArray[index][0]=BuySignalTime;
BuyTradesArray is defined as a double
index is defined as an INT (index increases by 1 each time a new trade signal appears)
BuySignalTime is defined as a datetime ( as it contains time/date info)
What am I doing wrong?
Any advice appreciated.....
PS. I would like my array to contain to pieces of information; both Signal Time/Date and Open Price. For this reason I did not declare the array as datetime to begin with.
Thanks in advance,
CCH