Работа завершена
Техническое задание
The difficulty is that I need self defined periods smallest like 5 seconds 10 seconds period even like 1 second 2 seconds period and biggest like 1 years 2 years period. Hopefully the periods can be drawed as K lines but that's not required. Periods details will be listed below. Each period, I want to get 10 newest K lines datas, MACD datas and one self defined indicator datas. I need one or several objects to return or contain the datas that I can call the datas as easily as possible.And 1 sec period should be marked as 0. 2 secs is 1 and so on. Please coding with detail annotations, I will make secondary development on it. The payment is negotiable.
Here is the all periods will be used:
/*
16 Years PERIOD_Y16
8 Years PERIOD_Y8
4 Years PERIOD_Y4
2 Years PERIOD_Y2
1 Year PERIOD_Y1
2 Seasons PERIOD_SE2
1 Season PERIOD_SE1
2 Months PERIOD_MN2
1 Month- PERIOD_MN1
2 Weeks PERIOD_W2
1 Week- PERIOD_W1
2 Days PERIOD_D2
1 Day- PERIOD_D1
12 Hours- PERIOD_H12
10 Hours PERIOD_H10
8 Hours- PERIOD_H8
6 Hours- PERIOD_H6
5 Hours PERIOD_H5
4 Hours- PERIOD_H4
3 Hours- PERIOD_H3
2 Hours- PERIOD_H2
1 Hour- PERIOD_H1
30 Mins- PERIOD_M30
15 Mins- PERIOD_M15
10 Mins- PERIOD_M10
5 Mins- PERIOD_M5
2 Mins- PERIOD_M2
1 Mins- PERIOD_M1
30 Secs PERIOD_S30
15 Secs PERIOD_S15
10 Secs PERIOD_S10
5 Secs PERIOD_S5
2 Secs PERIOD_S2
1 Sec PERIOD_S1
*/
Each symbol will use 28 periods of all as most. And we use XAUUSD as test.
With XAUUSD we use following 28 periods:
8 Years PERIOD_Y8 marked as 27
4 Years PERIOD_Y4 26
2 Years PERIOD_Y2 25
1 Year PERIOD_Y1 24
2 Seasons PERIOD_SE2 23
1 Season PERIOD_SE1 22
2 Months PERIOD_MN2 21
1 Month- PERIOD_MN1 20
2 Weeks PERIOD_W2 19
1 Week- PERIOD_W1 18
2 Days PERIOD_D2 17
1 Day- PERIOD_D1 16
12 Hours- PERIOD_H12 15
6 Hours- PERIOD_H6 14
4 Hours- PERIOD_H4 13
2 Hours- PERIOD_H2 12
1 Hour- PERIOD_H1 11
30 Mins- PERIOD_M30 10
10 Mins- PERIOD_M10 9
5 Mins- PERIOD_M5 8
2 Mins- PERIOD_M2 7
1 Mins- PERIOD_M1 6
30 Secs PERIOD_S30 5
15 Secs PERIOD_S15 4
10 Secs PERIOD_S10 3
5 Secs PERIOD_S5 2
2 Secs PERIOD_S2 1
1 Sec PERIOD_S1 0
The self defined indicator is attached.