/* Trend detection */

->
Arg File_name : String

- ReadCSV >Array< File_name ( 'Record', Cols :
                                               R = <
                                                     Date : Cols.1,
                                                     Open : Cols.2, High  : Cols.3,
                                                     Low  : Cols.4, Close : Cols.5,       
                                                   >
                            ),
  Calculate >Distances< Array,
  Sort >Report< Distances SORT_ASC ( 'Order_by', Key, Value : Order_by = Key ),
  Print Report DayWithMaxTrendWaveDifference( Report )

/

