-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathM1.h
35 lines (33 loc) · 1.03 KB
/
M1.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/**
* @file
* Defines default strategy parameter values for the given timeframe.
*/
// Defines indicator's parameter values for the given pair symbol and timeframe.
struct Indi_Envelopes_Params_M1 : IndiEnvelopesParams {
Indi_Envelopes_Params_M1() : IndiEnvelopesParams(indi_env_defaults, PERIOD_M1) {
applied_price = (ENUM_APPLIED_PRICE)2;
deviation = 0.03;
ma_method = (ENUM_MA_METHOD)2;
ma_period = 9;
ma_shift = 2;
shift = 0;
}
} indi_env_m1;
// Defines strategy's parameter values for the given pair symbol and timeframe.
struct Stg_Envelopes_Params_M1 : StgParams {
// Struct constructor.
Stg_Envelopes_Params_M1() : StgParams(stg_env_defaults) {
lot_size = 0;
signal_open_method = 2;
signal_open_level = (float)0.0;
signal_open_boost = 0;
signal_close_method = 2;
signal_close_level = (float)0;
price_profit_method = 60;
price_profit_level = (float)6;
price_stop_method = 60;
price_stop_level = (float)6;
tick_filter_method = 1;
max_spread = 0;
}
} stg_env_m1;