| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | ||||||||||||||||||||||||||
2 | ||||||||||||||||||||||||||
3 | กำไร/ไม้ | 30 | ||||||||||||||||||||||||
4 | อัตราการจ่าย | 88 | % | |||||||||||||||||||||||
5 | ราคาขั้นต่ำ | 30 | ||||||||||||||||||||||||
6 | name = 'Nutty BB', | |||||||||||||||||||||||||
7 | ไม้ | short_name = 'super', | ทุนรวม | กำไร | โอกาสชนะ | |||||||||||||||||||||
8 | 1 | 30 | 30 | 26.40 | 50.00% | |||||||||||||||||||||
9 | 2 | 40 | 70 | 5.20 | 75.00% | |||||||||||||||||||||
10 | 3 | } | #VALUE! | #VALUE! | 87.50% | |||||||||||||||||||||
11 | 4 | MaFast_period = input(1,"Ma Fast period",input.integer,1,1000,1) | #VALUE! | #VALUE! | 93.75% | |||||||||||||||||||||
12 | 5 | MaValue = input(5,"Ma Value", input.string_selection,inputs.titles) | #VALUE! | #VALUE! | 96.88% | |||||||||||||||||||||
13 | 6 | MaSlow_period = input(34,"Ma Slow period",input.integer,1,1000,1) | #VALUE! | #VALUE! | 98.44% | |||||||||||||||||||||
14 | 7 | Signal_period = input(5,"Signal period",input.integer,1,1000,1) | #VALUE! | #VALUE! | 99.22% | |||||||||||||||||||||
15 | 8 | input_group { | #VALUE! | #VALUE! | 99.61% | |||||||||||||||||||||
16 | 9 | Compra, | #VALUE! | #VALUE! | 99.80% | |||||||||||||||||||||
17 | 10 | colorBuy = input { default = "green", type = input.color }, | #VALUE! | #VALUE! | 99.90% | |||||||||||||||||||||
18 | visibleBuy = input { default = true, type = input.plot_visibility } | |||||||||||||||||||||||||
19 | } | |||||||||||||||||||||||||
20 | สิ่งที่ควรรู้ | input_group { | ใส่ตัวเลข | |||||||||||||||||||||||
21 | 1. จะเอากำไรเท่าไหร่ใน 1 วัน | Venda, | 300 | |||||||||||||||||||||||
22 | 2. ต้องการจะเทรด กี่วินต่อวัน | colorSell = input { default = "red", type = input.color }, | 10 | 30 | กำไร/ไม้ | |||||||||||||||||||||
23 | 3. ต้องการจะเทรด โดยใช้ทุนกี่ไม้ | visibleSell = input { default = true, type = input.plot_visibility } | 6 | ดูทุนรวมแต่ละไม้ | ||||||||||||||||||||||
24 | } | |||||||||||||||||||||||||
25 | local titleValue = inputs[MaValue] | |||||||||||||||||||||||||
26 | -- mdia mvel linear rpida | |||||||||||||||||||||||||
27 | smaFast = sma(titleValue, MaFast_period) | |||||||||||||||||||||||||
28 | -- mdia mvel linear devagar | |||||||||||||||||||||||||
29 | smaSlow = sma(titleValue, MaSlow_period) | |||||||||||||||||||||||||
30 | -- calculo diferencial - serie | |||||||||||||||||||||||||
31 | buffer1 = smaFast - smaSlow | |||||||||||||||||||||||||
32 | -- clculo da mdia mvel ponderada - serie | |||||||||||||||||||||||||
33 | buffer2 = wma(buffer1, Signal_period) | |||||||||||||||||||||||||
34 | buyCondition = conditional(buffer1 > buffer2 and buffer1[1] < buffer2[1] and not (buffer1 < buffer2 and buffer1[1] > buffer2[1])) | |||||||||||||||||||||||||
35 | buyCondition = conditional(buffer1 > buffer2 and buffer1[1] < buffer2[1]) | |||||||||||||||||||||||||
36 | sellCondition = conditional(buffer1 < buffer2 and buffer1[1] > buffer2[1] and not (buffer1 > buffer2 and buffer1[1] < buffer2[1])) | |||||||||||||||||||||||||
37 | sellCondition = conditional(buffer1 < buffer2 and buffer1[1] > buffer2[1] ) | |||||||||||||||||||||||||
38 | plot_shape( | |||||||||||||||||||||||||
39 | (buyCondition), | |||||||||||||||||||||||||
40 | B, | |||||||||||||||||||||||||
41 | shape_style.triangleup, | |||||||||||||||||||||||||
42 | shape_size.huge, | |||||||||||||||||||||||||
43 | colorBuy, | |||||||||||||||||||||||||
44 | shape_location.belowbar, | |||||||||||||||||||||||||
45 | -1, | |||||||||||||||||||||||||
46 | B, | |||||||||||||||||||||||||
47 | white | |||||||||||||||||||||||||
48 | ) | |||||||||||||||||||||||||
49 | plot_shape( | |||||||||||||||||||||||||
50 | (sellCondition), | |||||||||||||||||||||||||
51 | S, | |||||||||||||||||||||||||
52 | shape_style.triangledown, | |||||||||||||||||||||||||
53 | shape_size.huge, | |||||||||||||||||||||||||
54 | colorSell, | |||||||||||||||||||||||||
55 | shape_location.abovebar, | |||||||||||||||||||||||||
56 | -1, | |||||||||||||||||||||||||
57 | S, | |||||||||||||||||||||||||
58 | white | |||||||||||||||||||||||||
59 | ) | |||||||||||||||||||||||||
60 | ||||||||||||||||||||||||||
61 | ||||||||||||||||||||||||||
62 | ||||||||||||||||||||||||||
63 | ||||||||||||||||||||||||||
64 | ||||||||||||||||||||||||||
65 | ||||||||||||||||||||||||||
66 | ||||||||||||||||||||||||||
67 | ||||||||||||||||||||||||||
68 | ||||||||||||||||||||||||||
69 | ||||||||||||||||||||||||||
70 | ||||||||||||||||||||||||||
71 | ||||||||||||||||||||||||||
72 | ||||||||||||||||||||||||||
73 | ||||||||||||||||||||||||||
74 | ||||||||||||||||||||||||||
75 | ||||||||||||||||||||||||||
76 | ||||||||||||||||||||||||||
77 | ||||||||||||||||||||||||||
78 | ||||||||||||||||||||||||||
79 | ||||||||||||||||||||||||||
80 | ||||||||||||||||||||||||||
81 | ||||||||||||||||||||||||||
82 | ||||||||||||||||||||||||||
83 | ||||||||||||||||||||||||||
84 | ||||||||||||||||||||||||||
85 | ||||||||||||||||||||||||||
86 | ||||||||||||||||||||||||||
87 | ||||||||||||||||||||||||||
88 | ||||||||||||||||||||||||||
89 | ||||||||||||||||||||||||||
90 | ||||||||||||||||||||||||||
91 | ||||||||||||||||||||||||||
92 | ||||||||||||||||||||||||||
93 | ||||||||||||||||||||||||||
94 | ||||||||||||||||||||||||||
95 | ||||||||||||||||||||||||||
96 | ||||||||||||||||||||||||||
97 | ||||||||||||||||||||||||||
98 | ||||||||||||||||||||||||||
99 | ||||||||||||||||||||||||||
100 |