Warren Buffett once said:
“You do not have to do extraordinary things to get extraordinary results”
This strategy of accumulative orders proves this. This is a strategy of buying at highs and every time the price crosses a new maximum we add a new long order.
With patience and perseverance I invite you to be a millionaire.
Good luck … although trading does not depend on luck.
// MAXIMUS ======
// Creado Por TradingenelIbex35 para Prorealcode
// Version 1.1 Lite
// periodo de Prueba NASDAQ Composite index date 010109 hasta hoy
//
Defparam CUMULATEORDERS = TRUE
//Defparam NOCASHUPDATE = TRUE
//
//
//
//
Filtro =180
Sloss = 10 // %
SProfit = 85 // %
X = 0
Y = 1
Z = 2
//
//
//==== CONTRATOS A NEGOCIAR =========
//
Xhares = 1
//
// ====== Numero Maximo de contratos a negociar ============
//
Nshares = 1000
//
//
// ========== CODIGO ===================
//
HULL = weightedaverage[filtro](close)
IF close[x] crosses over highest[6](high[1]) and hull[y] > hull[z] and COUNTOFLONGSHARES < Nshares THEN
buy Xhares CONTRACTS AT MARKET
ENDIF
IF close[x] crosses over highest[20](high[1]) and hull[y] > hull[z] and COUNTOFLONGSHARES < Nshares THEN
buy Xhares CONTRACTS AT MARKET
ENDIF
IF close[x] crosses over highest[50](high[1]) and hull[y] > hull[z] and COUNTOFLONGSHARES < Nshares THEN
buy Xhares CONTRACTS AT MARKET
ENDIF
IF close[x] crosses over highest[100](high[1]) and hull[y] > hull[z] and COUNTOFLONGSHARES < Nshares THEN
buy Xhares CONTRACTS AT MARKET
ENDIF
IF close[x] crosses over highest[200](high[1]) and hull[y] > hull[z] and COUNTOFLONGSHARES < Nshares THEN
buy Xhares CONTRACTS AT MARKET
ENDIF
SET STOP %LOSS sloss
SET TARGET %PROFITsprofit
// ========= WARNING LOSS =========== Condiciones de salida de posiciones cortas