15 #ifndef TSA_FUNCTOR_GEO__INCLUDED 16 #define TSA_FUNCTOR_GEO__INCLUDED 18 #include "TSASeriesTemplate.h" 19 #include "TSAString.h" 20 #include "TSAFunctorParent.h" 43 size_t strategy_bar_idx;
51 void operator=(
const point& other);
53 void print(std::ostream&)
const;
55 basic_series<point> m_swing_points;
57 bool m_swing_value_is_in_percent =
false;
58 double m_swing_size_pct;
59 double m_min_swing_size;
60 bool m_swing_info_init =
false;
61 size_t m_num_swings_to_track = 100;
62 bool m_first_bar_processed =
false;
63 double m_initial_low_price;
64 double m_initial_high_price;
65 bool m_initial_point_found =
false;
66 double m_potential_point_price;
67 size_t m_potential_point_bar_id;
69 bool m_potential_point_is_high =
false;
70 size_t m_strategy_bar_count = 0;
76 swing_finder(
double swing_size_pct,
size_t num_swings_to_track);
78 void num_swings_to_track(
size_t);
80 void swing_value_percent(
double);
82 void swing_value(
double);
84 void init(
double swing_size_pct,
size_t num_swings_to_track);
86 void min_swing_size(
double min_swing_size);
88 void min_swing_size_pct(
double min_swing_size_pct);
90 size_t swing_count(
void)
const;
98 void update(
double bar_high,
100 size_t strategy_bar_count,
104 void operator()(
double bar_high,
106 size_t strategy_bar_count,
110 void print_swings(std::ostream& s)
const;
Namespace for the 'Trading System API' library.
Definition: original1.TSA3Core.cpp:20
variant objects can represent values of different types.
Definition: TSAVariant.h:140
Definition: TSAFunctorsGeo.h:33
Class representing a gregorian-date and time-of-day combination. The time component has microsecond r...
Definition: TSATime.h:428
Swing finder.
Definition: TSAFunctorsGeo.h:29