K.M Trend Strategy (BETA 1.2)

My beautiful traders, how is everyone doing? This indicator I built detects trends, I haven't seen any repaints, I only had 3 minor ones. It is still on BETA version.

To all new traders, and busy traders I will be posting one that you can set alerts. Please look under my profile or type "K.M Trend Alerts (BETA 1.2)" .

I ask for everyone to try this script out, please provide any feedback under in the comments below. Any feedback will be amazing! Thank you to everyone, and


Kevin Manrrique

Follow us on Instagram: TWTForexGroup, we have amazing content and also sell signals!
Remove from Favorite Scripts Add to Favorite Scripts
strategy("K.M Trend Strategy (BETA 1.2)")
    //// This script is built by Kevin Manrrique, if you have any information or questions ////
    //// about this script and how it works please message me. K.M Trend Alerts (BETA 1.2) is a //// 
    //// testing indicator. If your intrested in recieving signals please follow us on; Instagram: TWTForexGroup ////
    //// We build, rebuild, repair, and test if intrested inbox me /////
    //// Appreciate what you have around you, not everyone lives like us ////
    //// Sincerely, ////
    //// Kevin Manrrique //// 

    //// Main ////
tim="2440", minval=1
tim2="1440", minval2=1

    //// Lines ////
line1 = security(tickerid, tim, close[1])
line2 = security(tickerid, tim2, close[0.99])
line3 = line2 - line1

    //// Plot ////
plot(line3, style=columns, color=orange, linewidth=3, title="P")

    //// Additions ////
plot(baseline, style=line, color=black, title="B")

    //// Signals ////
longcondition = cross(line3, baseline)
if (longcondition)
    strategy.entry("Buy",  strategy.long)

shortcondition = crossunder(line3, baseline)
if (shortcondition)
    strategy.entry("Sell", strategy.short)

Anyone that comments that this is not a good strategy is not thinking correctly. I copied the code into my pine script editor and added commission, NZDUSD 1h, still profitable. I will be adding a moving average to only sell when price is below it and buy when above. Thank you for making this.
gives signal and then takes signal away 20 minutes later. doesn't seem useful for live trading.
Neroo1347 joeadante3b
+1 Reply
Looks great for back testing but cannot use it for live trade , I left the indicator working for sometimes, then screenshot the chart when I see sell or buy and then reload or look it at next day , They actually move to different locations in comparison to where they were at when looking at them live.

To be honest,It means that an indicator is changing an outcome re-painting its historical data which is lagging behind live ( looking forward )
The past is "repainted" in every tim2="1440" min or for whatever timeframe I use like other re painting indicators or strategies ANN , Gettrend ..etc

Excellent Kevin, thanks for all of your hard work. One question.. Is each new signal (regardless of timeframe) really generated right at the open of each trading day or.. Is this does each new signal fire off at any point during the trading session and the strategy only marks the signal as being generated at the session opening hour? This was the one thing about ANN that really made the system unreliable in addition to the re-paints. Thanks!
profit factor seems unreal, like ann strategy before but nice project tho, i'll test it repaint or not and ill let you know. great work btw, keep diggin brah, no time is wasted
This does not (and cannot) work for live trading.
First of all, never use Heikin Ashi charts to test strategies. Open and close prices are not "real" so it will give you entry/exit prices that you will never be able to achieve in live trading.
Then, what does close even mean ? In Pinescript, this is interpreted as close. So unless you use this strategy on timeframes >2440min, it uses future data and therefore repaints.
Biscoto Biscoto
I meant to write close(0.99) and then close(0).
@Biscoto thank you for your comment. There is no possible way to use old data to achieve trends. Because alerts won't work, that's why I use future data. This is a Trend indicator, meaning it finds trends in charts. Nothing is perfect, but I ensure you many people gain many help using this indicator I built. I'm currently building a indicator 2.2. I went through many versions, and I will find and build this indicator so it won't repaint no matter what. Every indicator repaints, but it you can make it so it can't. Then you need to try. So if you want to help and participate adding feedback to make it better. As I already know all the things your saying. Thank you, have a great weekend.
Hey Kevin i'll check this system out and see how it does and give some feedback in the coming week. Looks promising!
United States
United Kingdom
Home Stock Screener Forex Signal Finder 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
Profile Profile Settings Account and Billing Priority Support Ideas Published Followers Following Private Messages Chat Sign Out