Edit Your Comment
Programing the NEXT HOLY GRAIL
Členem od Nov 25, 2016
2 příspěvků
Jan 22, 2017 at 08:30
Členem od Nov 25, 2016
2 příspěvků
Dear Reader and Programmers,
The title says it all, well i don't believe about Holy Grail, but i like Holly Halston anyway.
The strategy is a very simple yet it yields very good profits ? someone will ask me "have you tried it ? for how long?"😎 well i didn't have the chance to try it on MT4 but i have been following its signals for a quite sometime now on trading view.
The results shown from the "Beta" strategy tester in Tradingview are very impressive and promising.
The strategy is based on moving average cross and heiken ashi chart not the usual candlesticks.
So what i am asking is create an MT4 version of the below pine script
//@version=2
strategy("strategy", overlay=true, pyramiding=0, default_qty_type = strategy.percent_of_equity, default_qty_value = 5, initial_capital=88800, currency=currency.USD)
length = input(4)
confirmBars = input(1)
price = close
ma = sma(price, length)
bcond = price > ma
bcount = bcond ? nz(bcount[1]) + 1 : 0
if (bcount == confirmBars)
strategy.entry("MACrossLE", strategy.long, comment="MACrossLE")
scond = price < ma
scount = scond ? nz(scount[1]) + 1 : 0
if (scount == confirmBars)
strategy.entry("MACrossSE", strategy.short, comment="MACrossSE")
Thanks in advance
The title says it all, well i don't believe about Holy Grail, but i like Holly Halston anyway.
The strategy is a very simple yet it yields very good profits ? someone will ask me "have you tried it ? for how long?"😎 well i didn't have the chance to try it on MT4 but i have been following its signals for a quite sometime now on trading view.
The results shown from the "Beta" strategy tester in Tradingview are very impressive and promising.
The strategy is based on moving average cross and heiken ashi chart not the usual candlesticks.
So what i am asking is create an MT4 version of the below pine script
//@version=2
strategy("strategy", overlay=true, pyramiding=0, default_qty_type = strategy.percent_of_equity, default_qty_value = 5, initial_capital=88800, currency=currency.USD)
length = input(4)
confirmBars = input(1)
price = close
ma = sma(price, length)
bcond = price > ma
bcount = bcond ? nz(bcount[1]) + 1 : 0
if (bcount == confirmBars)
strategy.entry("MACrossLE", strategy.long, comment="MACrossLE")
scond = price < ma
scount = scond ? nz(scount[1]) + 1 : 0
if (scount == confirmBars)
strategy.entry("MACrossSE", strategy.short, comment="MACrossSE")
Thanks in advance

forex_trader_367321
Členem od Oct 08, 2016
44 příspěvků
Jan 23, 2017 at 04:25
Členem od Oct 08, 2016
44 příspěvků
A moving average cross and a heiken ashi?
This is only my opinion, but i dont think the holy grail is going to be quite that simple.
Good luck.
This is only my opinion, but i dont think the holy grail is going to be quite that simple.
Good luck.
Členem od Nov 25, 2016
2 příspěvků
Jan 23, 2017 at 07:29
Členem od Nov 25, 2016
2 příspěvků
sometime the simplest things, could make amazing stuff, thanks for the reply :)
Členem od Feb 22, 2011
4573 příspěvků
Jan 23, 2017 at 15:28
Členem od Feb 22, 2011
4573 příspěvků
hostomani posted:
Dear Reader and Programmers,
The title says it all, well i don't believe about Holy Grail, but i like Holly Halston anyway.
The strategy is a very simple yet it yields very good profits ? someone will ask me "have you tried it ? for how long?"😎 well i didn't have the chance to try it on MT4 but i have been following its signals for a quite sometime now on trading view.
The results shown from the "Beta" strategy tester in Tradingview are very impressive and promising.
The strategy is based on moving average cross and heiken ashi chart not the usual candlesticks.
So what i am asking is create an MT4 version of the below pine script
//@version=2
strategy("strategy", overlay=true, pyramiding=0, default_qty_type = strategy.percent_of_equity, default_qty_value = 5, initial_capital=88800, currency=currency.USD)
length = input(4)
confirmBars = input(1)
price = close
ma = sma(price, length)
bcond = price > ma
bcount = bcond ? nz(bcount[1]) + 1 : 0
if (bcount == confirmBars)
strategy.entry("MACrossLE", strategy.long, comment="MACrossLE")
scond = price < ma
scount = scond ? nz(scount[1]) + 1 : 0
if (scount == confirmBars)
strategy.entry("MACrossSE", strategy.short, comment="MACrossSE")
Thanks in advance
Trading strategy is not only about to enter trade, you miss much more

*Komerční použití a spam nebudou tolerovány a mohou vést ke zrušení účtu.
Tip: Zveřejněním adresy URL obrázku /služby YouTube se automaticky vloží do vašeho příspěvku!
Tip: Zadejte znak @, abyste automaticky vyplnili jméno uživatele, který se účastní této diskuse.