selam
- User
selam
- Assistant
Merhaba! Size nasıl yardımcı olabilirim?
- User
- Assistant
Autosensitivity özelliğini eklemek için aşağıdaki kodları kullanabilirsiniz:
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © TZack88 //@version=5 indicator('ATRRR', overlay=true, max_labels_count = 500) // ** —> Inputs ------------- { var bool positive = false var bool negative = false string RSI_group = 'RMI Settings' string mom_group = 'Range Vales' string visual = 'Visuals' int Length = input(14, 'RMI Length ', inline = 'RMI', group = RSI_group) int pmom = input(66, 'Positive above', inline = 'rsi1', group = RSI_group) int nmom = input(30, 'Negative below', inline = 'rsi1', group = RSI_group) bool filleshow = input(true, 'Show Range MA ', inline = '002', group = visual) color bull = input(#00bcd4, '', inline = '002', group = visual) color bear = input(#ff5252, '', inline = '002', group = visual) float BarRange = high - low up = ta.rma(math.max(ta.change(close), 0), Length) down = ta.rma(-math.min(ta.change(close), 0), Length) rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down)) mf = ta.mfi(hlc3, Length) rsi_mfi = math.avg(rsi,mf) //------------------- } bool p_mom = rsi_mfi[1] < pmom and rsi_mfi > pmom and rsi_mfi > nmom and ta.change(ta.ema(close,5)) > 0 bool n_mom = rsi_mfi < nmom and ta.change(ta.ema(close,5)) < 0 // Autosensitivity sensitivityValue = input(1.0, title="Sensitivity Value", type=input.float) if bar_index > 0 sensitivityValue := na(sensitivityValue) ? sensitivityValue[1] : sensitivityValue // // —> Momentums ------------- { if p_mom positive := true negative := false if n_mom positive := false negative := true // ... Diğer kısmı buraya ekleyebilirsiniz ...
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.