Доработка ботов (советников, индикаторов) vol. 2

dem5522

Прохожий
hello
if any one can customize this flexi bar swing indicator

Currently when we keep arrow on current candle 'ON' it means its shows arrow on trigger candle

arrow appears when it crosses signal candle 'high'

if we can change that to arrow appear when price crosses Signal candle Open price instead of high of signal candle

Second once arrow appears it should not repaint (though price goes against prediction)

and last please add alert

it would be great if you can add it like option to select manually (Open price cross instead high) so we can test it with open price cross or close price cross etc

thanks in advance
 

Вложения

  • Flexi_bars_swing_v3-EMAIL.mq4
    7,6 КБ · Просмотры: 72

MrGreen86

Гуру форума
все хорошо с прокладкой, настраивать так. как я понял она не работает по одному индикатору, по этому его можно продублировать дважды.
SNAG-0274.png
 

dato896

Активный участник
здравствуйте, можно сюда индикатору dynamic присвоить таймфрейм и еще функцию reverse? заранее спасибо :)
 

Вложения

  • Dynamic Советник с ФИЛЬТРОМ.mq4
    35,5 КБ · Просмотры: 56

romwfx

Интересующийся
Можно ли сделать фильтр по тренду для этого советника, чтобы не открывал новых серий против тренда? Думаю, возможен, любой вариант по вашему усмотрению. Например, по скользящей средней:
1. Если свеча закрыта выше скользящей - включается StopSell = true, то есть не открывает новых серий по селл;
2. Если свеча закрыта ниже скользящей - включается StopBuy = true, то есть не открывает новых серий по бай.
 

Вложения

  • Sov-Mt1.mq4
    20,2 КБ · Просмотры: 33

tirion

Почетный гражданин
Не знаю, уместна ли эта публикация в этом разделе. Возможно ли его сделать для МТ4. В конце концов возможно наверное сделать складчину, что ли.
/@version=3
// LAX Murrey Math Levels
// Copyright by RJ 4/2018
// Specify a starting price, then an interval and Lookback window.
// The indicator will then plot a moving window of murrey math levels.
study(title="LAX Murray Math Levels", shorttitle="LAX_MML", precision=5, overlay=true)
//Inputs
stPrice = input(1.2300, minval=1, title="StartingPrice")
pipInterval = input(125, minval=1, title="Interval in Pips")
lookbackWin = input(64, minval=28, title="Lookback window")
//Calculate precision
mult = .00001
incr = pipInterval * mult
mid1 = 0.0000
top1 = 0.0000
bot1 = 0.0000
mid2 = 0.0000
top2 = 0.0000
bot2 = 0.0000
decimals = abs(log(syminfo.mintick) / log(10))
if decimals == 3
mult = .001
//plot(series=decimals, color=blue)
if barstate.isfirst
mid1:=stPrice
else
if highest(high, lookbackWin) >= (mid1 + incr)
mid1:= highest(high, lookbackWin)
//Plot
m1 = plot(mid1, color= mid1 != mid1[1] ? na : red, title="m1", style=line, linewidth=2)
t1 = plot(mid1 + incr, color = mid1 != mid1[1] ? na : red, title="t1", style=line, linewidth=2)
b1 = plot(mid1 - incr, color = mid1 != mid1[1] ? na : red, title="b1", style=line, linewidth=2)
mid2:=mid1
000.png000.png
if lowest(low, lookbackWin) <= (mid2 - incr)
mid2:= lowest(low, lookbackWin)
m2 = plot(mid2, color = mid2 != mid2[1] ? na : red, title="m2", style=line, linewidth=2)
t2 = plot(mid2 + incr, color = mid2 != mid2[1] ? na : red, title="t2", style=line, linewidth=2)
b2 = plot(mid2 - incr, color = mid2 != mid2[1] ? na : red, title="b2", style=line, linewidth=2)
 
Последнее редактирование модератором:

tirion

Почетный гражданин
привлек внимание индикатор Hull MA Crossover /Возможно ли его сделать для МТ4?
//@version=2
// Hull Moving Average Crossover by SeaSide420
study("Hull Moving Average Crossover", overlay=true)
keh=input(title="HullMA cross",type=integer,defval=14)
p=input(ohlc4,type=source)
n2ma=2*wma(p[1],round(keh/2))
nma=wma(p[1],keh)
diff=n2ma-nma
sqn=round(sqrt(keh))
n2ma1=2*wma(p[2],round(keh/2))
nma1=wma(p[2],keh)
diff1=n2ma1-nma1
sqn1=round(sqrt(keh))
n1=wma(diff,sqn)
n2=wma(diff1,sqn)
hullcross1 = n1
hullcross2 = n2
longcross1=(n1[0]-n1[3])+(n1[0]-n2[4])*100
longcross2=(n2[0]-n2[3])+(n2[0]-n1[4])*100
b=hullcross1>hullcross2?green:red
c=hullcross2>hullcross1?green:red
plot(cross(hullcross1, hullcross2) ? hullcross1 : na, style = line,color=c, linewidth = 5, offset=3)
barcolor(longcross1 < longcross2 ? black : white)
bgcolor(longcross2 < longcross1 ? green : black, transp=85)
plotshape(cross(longcross2, longcross1) ? longcross2 : na, text="X", style=shape.labeldown, location=location.bottom)000.png
 
Последнее редактирование модератором:

Genry_05

Отдыхает
tirionЕсть у меня, но при компиляции даёт 6 ошибок...
Разные они:
Hull Moving Average Crossover by SeaSide420 считает пересечение HMAшек от WMA, а
группешник из этих товарисчей - Revamped and Formatted For HMA By BLUR71 ( Original Code By Kalenzo, Modded By Newdigital) пересечение от 3c_Turbo_JRSX_Filtered (комплект в аттаче)
 

Вложения

  • HMA_Cross.mq4
    3,7 КБ · Просмотры: 47
  • 3c_Turbo_JRSX_Filtered.mq4
    4 КБ · Просмотры: 57
Последнее редактирование:

Genry_05

Отдыхает
привлек внимание индикатор Hull MA Crossover /Возможно ли его сделать для МТ4?
//@version=2
// Hull Moving Average Crossover by SeaSide420

А этот вариант как всегда успел уже сделать Младен ;)
By definition :
By Alan Hull
Back in 2005 when I was working on a new indicator I was temporarily sidetracked by trying to solve the problem of lag in moving averages, the outcome of which was the Hull Moving Average.

Since then the HMA has found its way into charting programs around the world and is regularly discussed on traders bulletin boards in different languages around the world. It was the result of an intellectual curiosity which I placed into the public domain by writing the following article Alan Hul Hull Moving Average.
The Hull Moving Average solves the age old dilemma of making a moving average more responsive to current price activity whilst maintaining curve smoothness. In fact the HMA almost eliminates lag altogether and manages to improve smoothing at the same time.
To understand how it achieves both of these opposing outcomes simultaneously we need to start with an easily understood frame of reference. The following chart contains a 16 week simple moving average which constantly lags the price activity and has poor smoothness.
Hull Moving Average (HMA) formula
Integer(SquareRoot(Period)) WMA [2 x Integer(Period/2) WMA(Price) - Period WMA(Price)]
There are multiple reasons for posting this indicator into metatrader 4 code base :
  • the eternal "need for speed" cause : Hull average is (regardless how it is calculated) a CPU intensive calculation. This version is solving that by avoiding loops where they usually are used
  • this version is the variation that allows you to specify the "speed" of the Hull average and thus to adjust the Hull (that tends to be overshooting in its original form) to our needs
  • there are countless versions of Hull average, using countless names, that are showing the two colored line - and a lot of them are repainting. This one is a non-repainting version
 

Вложения

  • Hull moving average.mq4
    13,9 КБ · Просмотры: 63

Аввакум2

Гуру форума
Разные они:
Hull Moving Average Crossover by SeaSide420 считает пересечение HMAшек от WMA, а
группешник из этих товарисчей - Revamped and Formatted For HMA By BLUR71 ( Original Code By Kalenzo, Modded By Newdigital) пересечение от 3c_Turbo_JRSX_Filtered (комплект в аттаче)

Ещё есть такой вариант – HMA_Cross работает с HMA Color NRP.
 

Вложения

  • HMA_Cross (1).mq4
    3,5 КБ · Просмотры: 59
  • HMA Color NRP.mq4
    3,5 КБ · Просмотры: 71

dato896

Активный участник
советник запущен на 3 валютные пары на одном из них если отключу комп на выходных из поля где записан имя индикатора имя удаляется на остальных нет, что может быть причиной? выходит нужна постоянно проверить записан там имя индикатора или нет приходится вручную закрывать там сделки но после закрытия еще открылись не пойму как во время когда эти имена были автоматически удалены...
 

romwfx

Интересующийся
Можно ли сделать фильтр по тренду для этого советника, чтобы не открывал новых серий против тренда? Думаю, возможен, любой вариант по вашему усмотрению. Например, по скользящей средней:
1. Если свеча закрыта выше скользящей - включается StopSell = true, то есть не открывает новых серий по селл;
2. Если свеча закрыта ниже скользящей - включается StopBuy = true, то есть не открывает новых серий по бай.
Можете помочь пожалуйста?
 

Вложения

  • Sov-Mt1.mq4
    20,2 КБ · Просмотры: 28

tirion

Почетный гражданин
Не работает,гад! А сколько надежд...
 

Вложения

  • fxr_sr_zones_3.18_AbiroidWrapper.mq4
    4,5 КБ · Просмотры: 30
Верх