Login Page - Create Account

Support Board


Date/Time: Sun, 22 Dec 2024 04:02:16 +0000



Post From: Trouble pulling SMI from other charts

[2015-07-10 18:28:34]
User424542 - Posts: 6
I've updated the code to the following, trying to capture values from another chart. It sees them on the study calculation when I hit Apply, but than proceeds to give nothing but 0s in the message log.


  SCFloatArray StudyPosiedon;
  sc.GetStudyArrayFromChartUsingID(1, 2, 0, StudyPosiedon);
  float fishFood = StudyPosiedon[sc.Index];

  Posiedon3[sc.Index] = StudyPosiedon[sc.Index];

  SCString BufferOne;
  BufferOne.Format("Current value: %f", fishFood);
  sc.AddMessageToLog(BufferOne, 0);

Date Time Of Last Edit: 2015-07-10 18:28:49