SeaSide420

Ichimoku + Daily-Candle_X + HULL-MA_X + MacD

Ichimoku_cloud + Daily-Candle_cross(DT) + HuLL-MovingAverage_cross + MacD
any timeframe, all indicators settings adjustable for fine tuning to pair/timeframe
Target Point and Stop Loss settings
set SL low to reduce repaint
Eliminar de Scripts favoritos. Añadir a Scripts favoritos.
//@version=2
// Any timeFrame ok but good on 15 minute & 60 minute , Ichimoku + Daily-Candle_cross(DT) + HULL-MA_cross + MacD combination 420 special blend
strategy("Ichimoku + Daily-Candle_X + HULL-MA_X + MacD", shorttitle="٩(̾●̮̮̃̾•̃̾)۶", overlay=true, default_qty_type=strategy.percent_of_equity, max_bars_back=720, default_qty_value=100, calc_on_order_fills= true, calc_on_every_tick=true, pyramiding=0)
keh=input(title="Double HullMA",type=integer,defval=14, minval=1)
dt = input(defval=0.0010, title="Decision Threshold (0.001)", type=float, step=0.0001)
SL = input(defval=-500.00, title="Stop Loss in $", type=float, step=1)
TP = input(defval=25000.00, title="Target Point in $", type=float, step=1)
ot=1
n2ma=2*wma(close,round(keh/2))
nma=wma(close,keh)
diff=n2ma-nma
sqn=round(sqrt(keh))
n2ma1=2*wma(close[1],round(keh/2))
nma1=wma(close[1],keh)
diff1=n2ma1-nma1
sqn1=round(sqrt(keh))
n1=wma(diff,sqn)
n2=wma(diff1,sqn)
b=n1>n2?lime:red
c=n1>n2?green:red
d=n1>n2?red:green
confidence=(security(tickerid, 'D', close)-security(tickerid, 'D', close[1]))/security(tickerid, 'D', close[1])
conversionPeriods = input(9, minval=1, title="Conversion Line Periods")
basePeriods = input(26, minval=1, title="Base Line Periods")
laggingSpan2Periods = input(52, minval=1, title="Lagging Span 2 Periods")
displacement = input(26, minval=1, title="Displacement")
donchian(len) => avg(lowest(len), highest(len))
conversionLine = donchian(conversionPeriods)
baseLine = donchian(basePeriods)
leadLine1 = avg(conversionLine, baseLine)
leadLine2 = donchian(laggingSpan2Periods)
LS=close, offset = -displacement
MACD_Length = input(9)
MACD_fastLength = input(12)
MACD_slowLength = input(26)
MACD = ema(close, MACD_fastLength) - ema(close, MACD_slowLength)
aMACD = ema(MACD, MACD_Length)
closelong = n1<n2 and close<n2 and confidence<dt or strategy.openprofit<SL or strategy.openprofit>TP
if (closelong)
    strategy.close("Long")
closeshort = n1>n2 and close>n2 and confidence>dt or strategy.openprofit<SL or strategy.openprofit>TP
if (closeshort)
    strategy.close("Short")
longCondition = n1>n2 and strategy.opentrades<ot and confidence>dt and close>n2 and leadLine1>leadLine2 and open<LS and MACD>aMACD
if (longCondition)
    strategy.entry("Long",strategy.long)
shortCondition = n1<n2 and strategy.opentrades<ot and confidence<dt and close<n2 and leadLine1<leadLine2 and open>LS and MACD<aMACD
if (shortCondition)
    strategy.entry("Short",strategy.short)//                         /L'-, 
//                               ,'-.           /MM . .             /  L '-, 
//     .                    _,--dMMMM\         /MMM  `..           /       '-, 
//     :             _,--,  )MMMMMMMMM),.      `QMM   ,<>         /_      '-,' 
//     ;     ___,--. \MM(    `-'   )M//MM\       `  ,',.;      .-'* ;     .' 
//     |     \MMMMMM) \MM\       ,dM//MMM/     ___ < ,; `.      )`--'    / 
//     |      \MM()M   MMM)__   /MM(/MP'  ___, \  \ `  `. `.   /__,    ,' 
//     |       MMMM/   MMMMMM( /MMMMP'__, \     | /      `. `-,_\     / 
//     |       MM     /MMM---' `--'_ \     |-'  |/         `./ .\----.___ 
//     |      /MM'   `--' __,-  \""   |-'  |_,               `.__) . .F. )-. 
//     |     `--'       \   \    |-'  |_,     _,-/            J . . . J-'-. `-., 
//     |         __  \`. |   |   |         \    / _           |. . . . \   `-.  F 
//     |   ___  /  \  | `|   '      __  \   |  /-'            F . . . . \     '` 
//     |   \  \ \  /  |        __  /  \  |  |,-'        __,- J . . . . . \ 
//     |    | /  |/     __,-  \  ) \  /  |_,-     __,--'     |. .__.----,' 
//     |    |/    ___     \    |'.  |/      __,--'           `.-;;;;;;;;;\ 
//     |     ___  \  \     |   |  `   __,--'                  /;;;;;;;;;;;;. 
//     |     \  \  |-'\    '    __,--'                       /;;;;;;;;;;;;;;\ 
// \   |      | /  |      __,--'                             `--;;/     \;-'\ 
//  \  |      |/    __,--'                                   /  /         \  \ 
//   \ |      __,--'                                        /  /           \  \ 
//    \|__,--'                                          _,-;M-K,           ,;-;\ 
//                                                     <;;;;;;;;           '-;;;; 
//a1=plot(n1,color=c)
//a2=plot(n2,color=c)
//plot(cross(n1, n2) ? n1 : na, style = circles, color=b, linewidth = 4)
//plot(cross(n1, n2) ? n1 : na, style = line, color=d, linewidth = 4)
//plot(conversionLine, color=#0496ff, title="Conversion Line")
//plot(baseLine, color=#991515, title="Base Line")
//plot(close, offset = -displacement, color=#459915, title="Lagging Span")
//p1=plot (leadLine1, offset = displacement, color=green,  title="Lead 1")
//p2=plot (leadLine2, offset = displacement, color=red,  title="Lead 2")
//fill(p1, p2, color = leadLine1 > leadLine2 ? green : red)
// remove the "//" from before the plot script if want to see the indicators on chart

Comentarios

Does it repaint :/?
+29 Responder
DennyRichforest Audacity_TV
@Audacity_TV, yes...
+2 Responder
ok everyone, This strategy is old. it repaints, and mostly because of the daily candle cross part of it.
the script is open to see. Either suggest a fix to it, or move on.
I would delete this if i were able too. No one should use this script.
The strategy actually works fine as a MT4 robot, but here on tradingview there is repainting on the chart.
Why dont yall complain to tradingview to make a backtester that doesnt repaint, then i can bring you the win

or just use MT4 robot or API robot

0_o
+22 Responder
SeaSide420 SeaSide420
@SeaSide420, you know what really sux... somoone out there knows how to fix repainting, takes this and fixes it, then doesnt share....
Charting are joke anyway

I only trade with robots, which never paint anything, they simply enter or exit trades, which cannot be repainted
+3 Responder
mortdiggiddy SeaSide420
@SeaSide420, to fix the repainting, one line needs to be changed at line 22:

from:

confidence=(security(tickerid, 'D', close)-security(tickerid, 'D', close))/security(tickerid, 'D', close)

to:

confidence=(close-security(tickerid, 'D', close))/security(tickerid, 'D', close)

It's that simple. You were using the close of the current day which can be "seen ahead of time for historical data". What you need to do is use the current close of the day which is basically the close at any time. The previous close values marked with for the previous day are "already locked in".
+11 Responder
brad7502 mortdiggiddy
@mortdiggiddy, Are you sure this works? If you are right it's the greatest strategy of all time.
Responder
brad7502 mortdiggiddy
@mortdiggiddy, your wrong still repaints
Responder
@brad7502, how about using this?

confidence=(security(tickerid, '480', close)-security(tickerid, 'D', close))/security(tickerid, 'D', close)
+7 Responder
Trade_Tech_4u SeaSide420
@SeaSide420, Hi.... Excellent script..... where can get MT4 version of this script?
Responder
SeaSide420 Trade_Tech_4u
@Trade_Tech_4u, I have many EA's, they do not suffer any repaint as they do not paint anything on chart, once they open a trade it cannot be repainted, has to close according to SL, trail SL, TP or account profit etc. I will sell them, but always give free trial versions first, which runs just same as full version for a month or 2. So if the trial version is profitable for you with your chosen pair/broker then get full version. I have found over time that the indicators used are not as important as the money management. My newest EA's use simple HMA crossover or Heiken crossover to enter trades. Because using multiple MA based indicator is not necessary. HMA or Heiken show trend direction just as good as any other MA based indicator. And MA is not 100% win, often market will move against MA due to fundamentals etc.
So my new EA's using a money management system of lotsize vs equity and SL vs drawdown, Trail SL and close all by profit with Hedge stacking of orders, which is profitable even with random buy or sell entry. Then enter with use of simple MA. Each EA has Maximum spread setting and will not trade during spread inflation events and which is also used as setting for max slippage. Most of the EA's are Hedging but can be run as FIFO by turn off either buy or sell in EA's settings. PM me for more info. I'll have to look back through old versions for the one that is exactly like this TV indicator.
+1 Responder
Inicio Analizador de acciones Analizador de Forex Crypto Screener Calendario económico Cómo funciona Funcionalidades del gráfico Precios Recomendar a un amigo Normas Centro de ayuda Soluciones broker y sitio web Widgets Soluciones gráficas Biblioteca de gráficos ligeros Blog y Noticias Twitter
Perfil Opciones de configuración del perfil Cuenta y facturación Amigos referidos Monedas Mis Tickets de Soporte Centro de ayuda Ideas publicadas Seguidores Siguiendo Mensajes privados Chat Cerrar sesión