哪位大师把pine脚本源代码修改MT4

Техническое задание

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © allanster

//@version=4
study("Gridimus Maximus", shorttitle = 'Gridimus Maximus', overlay = true)
step_By  = input('Steps by Pivot',                title = 'Type of Increment',
 options = ['Steps by Pivot', 'Steps by Percent', 'Steps by Price'])
stepNmb  = input(defval = 5,                      title = 'Number Of Steps',           minval = 0, maxval = 50)
towards  = input(defval = 'Top',                  title = 'Direction To Step Towards',
 options = ['Bottom', 'Top'])
startAt  = input(defval = 10000.00,               title = 'Starts From Price',         minval = 0)
fctr_By  = step_By == 'Steps by Percent' ? .01 : 1
stepAmt  = input(defval = 33.3,                   title = 'Steps By Percent Or Price', minval = 0) * fctr_By
pivotHi  = input(defval = high,                   title = 'Or Steps By Higher',                                  inline = 'pivots')
pivotLo  = input(defval = low,                    title = 'Lower',                                               inline = 'pivots')
pivotLn  = input(defval = 7,                      title = 'Pivot nBars To Left',       minval = 0,               inline = 'nBars')
pivotRn  = input(defval = 2,                      title = 'Right ',                    minval = 0,               inline = 'nBars')
resoltn  = input('',                              title = 'Use A Higher Timeframe',    type = input.resolution)
gridSty  = input(defval = 'Dotted',               title = 'Grid Lines Show As',
 options = ['Dashed', 'Dotted', 'Solid'],                                                                        inline = 'grid')
gridCol  = input(defval = color.new(#787b86, 0),  title = ' ',                         type = input.color,       inline = 'grid')
gridWid  = input(defval = 1,                      title = ' ',                         minval = 1,               inline = 'grid')
gridXtd  = input(defval = 'Both',                 title = 'Grid Lines Extend ',
 options = ['Both', 'Right'],                                                                                    inline = 'grid2')
lablSiz  = input(defval = 'Normal',               title = 'Grid Label Show As',
 options = ['Off', 'Auto', 'Tiny', 'Small', 'Normal', 'Large', 'Huge'],                                          inline = 'labl')
textCol  = input(defval = color.new(#000000, 0),  title = ' ',                         type = input.color,       inline = 'labl')
lablCol  = input(defval = color.new(#787b86, 0),  title = ' ',                         type = input.color,       inline = 'labl')

source(_src,_res)=>
    src = _res == timeframe.period ? _src : security(syminfo.tickerid, _res, _src)

offSet(_res, _n)=>
    ctf = _res == timeframe.period
    bar = time_close - time
    htf = ctf ? bar : security(syminfo.tickerid, _res, bar)
    off = ctf ? _n : round(htf / bar * _n)

hiPivot  = source(pivothigh(pivotHi, pivotLn, pivotRn), resoltn), hiValue  = not na(hiPivot)
loPivot  = source(pivotlow (pivotLo, pivotLn, pivotRn), resoltn), loValue  = not na(loPivot)

useAxis  = float(na)
useAxis :=
 step_By == 'Steps by Percent' or step_By == 'Steps by Price' ? startAt :
 hiValue ? hiPivot : loValue ? loPivot : nz(useAxis[1])

useSign  = towards == 'Bottom' ? -1 : 1

// === Queue function method adapted from PineCoders.com | LucF ===
f_qDq(_array, _val) =>
    array.push(_array, _val)
    _return = array.shift(_array)

f_lineNew(_y)=>
    setBack  =
     step_By != 'Steps by Pivot' ? 1       :
     resoltn == timeframe.period ? pivotRn : offSet(resoltn, pivotRn)
    line.new(bar_index - setBack, _y, bar_index, _y, xloc.bar_index,
     gridXtd == 'Both' ? extend.both : extend.right, gridCol, 
     gridSty == 'Dashed' ? line.style_dashed :
     gridSty == 'Dotted' ? line.style_dotted : 
     line.style_solid, gridWid)

f_labelNew(_y)=>
    hideLbl  = lablSiz == 'Off'
    sizeLbl  =
     lablSiz == 'Auto'  ? size.auto  : lablSiz == 'Tiny'   ? size.tiny   :
     lablSiz == 'Small' ? size.small : lablSiz == 'Normal' ? size.normal :
     lablSiz == 'Large' ? size.large : size.huge
    setBack  = resoltn == timeframe.period ? pivotRn : offSet(resoltn, pivotRn)
    if step_By != 'Steps by Pivot'
        label.new(time + (time_close - time), _y, tostring(_y), xloc.bar_time, yloc.price,
         hideLbl ? color(na) : lablCol, label.style_label_lower_left,
         hideLbl ? color(na) : textCol, sizeLbl, text.align_left)
    else if step_By == 'Steps by Pivot'
        label.new(bar_index - setBack, _y, tostring(_y), xloc.bar_index, yloc.price,
         hideLbl ? color(na) : lablCol, hiValue ? label.style_label_lower_left : label.style_label_upper_right,
         hideLbl ? color(na) : textCol, sizeLbl, text.align_left)    

var line[] gridLvl = array.new_line(stepNmb)
var label[] gridLbl = array.new_label(stepNmb)
stepLvl  = float(na)
if step_By != 'Steps by Pivot'
    for i = 0 to stepNmb - 1
        stepLvl :=
         i == 0 ? useAxis :
         step_By == 'Steps by Price'   ? useAxis + (useSign * i * stepAmt)   :
         step_By == 'Steps by Percent' ? stepLvl * (1 + (useSign * stepAmt)) : 
         useAxis // <- future additional static axis options may go here
        label.delete(f_qDq(gridLbl, f_labelNew(stepLvl)))
        line.delete(f_qDq(gridLvl, f_lineNew(stepLvl)))

else if step_By == 'Steps by Pivot' and change(useAxis) != 0
    label.delete(f_qDq(gridLbl, f_labelNew(useAxis)))
    line.delete(f_qDq(gridLvl, f_lineNew(useAxis)))

Откликнулись

1
Разработчик 1
Оценка
(108)
Проекты
126
35%
Арбитраж
6
0% / 67%
Просрочено
2
2%
Свободен
Опубликовал: 25 примеров
2
Разработчик 2
Оценка
Проекты
0
0%
Арбитраж
0
Просрочено
0
Свободен
3
Разработчик 3
Оценка
(2)
Проекты
3
0%
Арбитраж
1
0% / 100%
Просрочено
2
67%
Свободен
4
Разработчик 4
Оценка
(252)
Проекты
462
26%
Арбитраж
139
20% / 60%
Просрочено
100
22%
Свободен
Похожие заказы
我专注做一件事:把交易策略做成可以稳定执行的自动化系统(MT4/MT5)。 当前开放少量策略合作名额,方向如下: ▍合作内容 - 黄金(XAUUSD)自动交易系统构建 - 趋势 + 震荡自适应策略整合 - 高回撤过滤 + 资金保护机制 - 实盘执行优化与持续迭代 ▍我的角色 负责策略系统化实现 + 风控结构设计 + 实盘优化 ▍适合人群 - 运行中或计划运行中大资金账户(注重风控与稳定性) - 希望做长期策略合作,而不是短期投机的人 - 不想做手动交易,想做自动化的人 - 关注资金曲线稳定性与回撤控制的交易者 - 有一定资金规模,追求长期复利型交易结构的用户 ▍合作模式 系统共建 + 长期运行优化(收益分配模式可根据策略情况再沟通) 说明:只做策略级合作,不做短期投机项目。 微信yuting04210716
市面上90%的量化EA,只有震荡、趋势两套逻辑,只会持仓、不会空仓。 行情混乱、数据行情、单边砸盘依然硬扛持仓,这就是大多数账户大幅回撤、爆仓亏损的根本原因。 我们人工智能量化,彻底解决行业通病: 搭载独家三重智能EA策略 ✅ 震荡行情:动态网格持续稳定套利 ✅ 单边行情:趋势突破抓取波段利润 ✅ 风险行情:AI自动判势、强制空仓避险 真正做到:有利润再出手,高风险绝对不博弈 搭配系统底层代码级风控,账户最大回撤刚性控制在5%以内,无人工情绪化操作、无重仓扛单、无逆势赌行情。 不靠短期暴利收割,只靠人工智能稳定复利, 追求长期、安全、可持续的全自动稳健收益,是目前黄金量化市场最稳的落地交易体系。QQ1640079810微信yuting04210716

Информация о проекте

Бюджет
30 - 200 USD