SwingTradeProfits

$EURUSD 1 Minute Chart Strategy

920 3 69
You must be using the renko chart with traditional settings with the block size set at .0001. This can be done by going to settings. Style at the bottom should be changed from ATR to traditional. The set the block size as .0001.
Remove from Favorite Scripts Add to Favorite Scripts
//@version=2
strategy("MovingAvg Cross", overlay=true)
length = input(9)
confirmBars = input(1)
price = close

strategy.exit ("trail_points", loss= 1)

ma = ema(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")

//plot(strategy.equity, title="equity", color=red, linewidth=2, style=areabr)
marvinchin
a year ago
script doesn't work..
Reply
marvinchin
a year ago
nevermind ;)
Reply
hello SwingTradeProfits, just fyi, and not a criticism of your work, but any strategy that uses renko in a backtest isn't tradable because it uses future data.

The results of this test speak to this. Whenever you get extremely high PF in a backtest, its a virtual certainty that the reason is due to using future data that couldn't have been known at the time the supposed signal was hypothetically taken.

reference - https://futures.io/ninjatrader-programming/4768-tip-backtesting-renko-charts.html
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
France
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Account and Billing Sign Out