Scripts: Statement To Chart

 

Statement To Chart:

Just a simple script , that reads the HTML file a report , or detailed report , and draws a transaction from it on the chart

Author: Rustamzhan Salidzhanov

 
thank you
 

it is not work

 

I managed to get this to work, by replacing;

size = ArraySize(data);

  with

size = ArrayRange(data,0);

and replacing;

if(sy!=Symbol())

  with

if(sy!=StringUpper(StringTrimLeft(StringTrimRight(Symbol()))))


  1. ArraySize(); was returning the size of the whole data array vs the 0/row elements which was causing the for loop to fail
  2. Wrapping Symbol() with StringUpper(StringTrimLeft(StringTrimRight())) normalised the comparison which meant that there was a like for like comparison, else no symbol was being matched for me