TradingView
BlockchainSpecialists
Mar 11, 2020 11:25 AM

SMS LTF Strategy [Nicholas Merten] - BlockchainSpecialists 

Description

Hi, this is my interpretation of the SMS indicator, optimised for Lower Time Frame Trading - previously coded by myself (see profile) and u/SandRocks99 - These versions can be found by searching for TradingView indicators with the title:

"SMS Indicator"

I would recommend checking these indicators out first, and joining the 'SMS Indicator Group' Telegram.

To keep things simple for testing ,and so users can get the hang of what is going on, I've removed a lot of the input settings to show how the strategy performs on default settings.

I would recommend only trading Crypto against USD pairs, as TradingView has some issues calculating performance against BTC or other Crypto pairs.

Performance on all USD pairs on ByBit seems to be promising.

If anyone feels like they can improve the performance, or has any ideas or aspirations for automating this strategy, please PM me.

Any issues, comment or let me know personally.

Thanks a lot.
Comments
hariramece
Hi, I would like to know what is that TREND MA line ? can you share the code for that only trend MA line. Thanks . I would like to know and add in my existing strategy instead of 21EMA
BlockchainSpecialists
@hariramece, Hi, it's just a 50 period SMA based on the hlc3 ((high + low + close) / 3)) price data. The code would be 'sma(hlc3, 50)'. Hope that helps!
hariramece
@BlockchainSpecialists, Hi, I understand that. Could you please share on what basis it give color changes . Because for me it gives good clarity on my stock with positional buy / sell trends. I am new to Trading view and thanks for your guidance.
Regards
Harry
hariramece
@hariramece, It would be great if you share the color changing conditions also. Because i dont know any codings. Thanks again
BlockchainSpecialists
@hariramece, Here you go:

trend = sma(hlc3, 50)
trendcolour = hlc3 > trend ? color.green : color.red
plot(trend, color = trendcolour, title="Trend MA")

Let me know if you need anything else. Feel free to message :)
jason5480
Congratulations on your work it looks great but can you elaborate a little bit on the logic? As I can understand you go long if you are above the trend line and the two previous SMS values were above or equal to 3. I also can see that you set a take trailing profit and a stop loss (at 6%?). Then you close long at market price if you drop below the trend or two previous SMS values are less than 3 am I right?
More