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

MQL4 脚本 转化中 外汇 股票

指定

// 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)
项目
125
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
等级
(250)
项目
460
26%
仲裁
139
20% / 60%
逾期
100
22%
工作中
相似订单
【交易品种】XAUUSD(现货黄金) 【平台】MetaTrader 5 【时间框架】H1为主,M15为辅 【策略需求】: 1. 入场:价格突破前20根K线高点做多,突破低点做空 2. 过滤:需RSI>50确认多单,RSI<50确认空单 3. 出场:固定止盈100点,止损50点 4. 风控:单笔最大风险1%,每日最大亏损3% 【功能要求】: 1. 可配置参数面板 2. 支持回测 3. 交易记录保存 4. 新闻时间暂停交易功能 【交付要求】: 1. 完整MQ5源代码 2. 使用说明文档 3. 回测报告 【预算】$150-200 【周期】7天内完成
尽可能的稳中求胜,胜率比达70以上 可以多开账号 多设备登录
需求: 打开指标的时候会提示我插入一张或几张k线形态图片,然后提示我选择交易品种(需要多品种同时跟踪),然后提示我选定周期(同时多周期),然后提示我选定查找图片的精确度,最后找到要通知我,比如闹钟或者短信。指标中我的选择需要有记忆功能,方便我下次打开指标直接点下一步 期待高手光临 (测试指标的时候不会,如果有的地方不会,请帮忙一下,满意立刻付款)
7喜指标 30+ USD
交易策略 Trend Catcher EA Pro 包含两种主要策略和一些可选模式,这些模式会改变 EA 的行为方式。 1交替单向趋势 这种模式专注于趋势跟踪,并控制风险。它每次只在一个方向上建仓,避免反向对冲交易。这使其成为长期自动化交易更安全、更稳定的选择。 最适合喜欢平稳、持续增长且回撤较小的交易者。 全方位同步交易 2.这种模式更加激进,交易速度也更快。当市场行情快速变化时,EA会同时抓住买入和卖出的机会。它还可以运用对冲逻辑,这有助于平衡风险敞口,但同时也会增加交易频率。 对于喜欢刺激交易并希望探索算法检测到的每一个信号的交易者来说,这堪称理想之选。 交易策略和时间 1选择交易策略类型——在“交替单向趋势”(安全)或“所有方向同时交易”(激进)之间进行选择。 2选择交易模式——选择EA是否可以同时开立买入和卖出仓位,还是只能开立单边仓位。 3工作时间/交易日–
求购 30 - 200 USD
远程帮助我,安装EA并进行历史回测,告诉我详细的步骤和每一个细节
做好的,发过来就能用的那种。联系我微信15968484205

项目信息

预算
30 - 200 USD