Hausky Simple MA Strategy EURUSD 1H

Here is my simple Moving Average crossover strategy for EURUSD 1H
Remove from Favorite Scripts Add to Favorite Scripts
strategy("Hausky Simple MA Strategy", overlay=true)
fastLength = input(11)
slowLength = input(26)
price = close

mafast = sma(price, fastLength)
maslow = sma(price, slowLength)

if (crossover(mafast, maslow))
    strategy.entry("MA2CrossLE", strategy.long, comment="MA2CrossLE")
    strategy.exit("MA2CrossLE", profit = 1040, trail_points = 731) 

if (crossunder(mafast, maslow))
    strategy.entry("MA2CrossSE", strategy.short, comment="MA2CrossSE")
    strategy.exit("MA2CrossSE", profit = 1040, trail_points = 731) 

//plot(strategy.equity, title="equity", color=red, linewidth=2, style=areabr)


Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out