TradingView
rouxam
Feb 22, 2021 10:54 PM

Ultimate MA + MFI 

Description

Hey Folks, this is in indicator that generates buy and sell alerts using Ultimate Moving Average and Money Flow Index.

Buy Alerts
Multi Time Frame Moving Average trend reversal AND MFI < threshold
Sell Alerts
MFI crossing under overbought threshold



Recommended settings for 3commas

- Create Alert with Buy Alert and link it to "Message for deal start signal"
- Create Alert with Sell Alert and link it to "Message to close all deals at Market Price"
- Set Take Profit to 1.0% with trailing between 0.2% and 0.6%
- DO NOT USE STOP LOSS

Release Notes

refactored script, added comments and cleaned up inputs.
default the selected MA to EMA

Release Notes

Overall refactoring and using version 4 explicitly

Release Notes

fixed typo in ma UP signal
Comments
largomat
I just tried to create an alert and I get this Warning: This alert may trigger differently than expected since it's based on an indicator or strategy that can get repainted... Repainting can be caused by a number of reasons. At the moment, there is no workaround for this behavior. Because of this, we strongly recommend not to set alerts on scripts that are prone to repainting.

Your suggestion?
rouxam
@largomat, thanks for your comment! yes this strategy is repainting because it is using the close value which includes the current value of the last candle, which constantly changes. That’s why you should use « once per bar close » when you setup your alert :)
Let me know if I can further help you
largomat
@rouxam, It is set to once per bar close. I still get the warning message.
SLRS65
@largomat, Yes, but does it repaint. I think that is the problem, not the warning. If it does not repaint, the warning is moot.
squidlings
I'm using this now and it's having success, it seems very aggressive and it also bought wbtc with btc. Which seems a bit odd! ha. Yes, I like it and thank you for uploading. I'm learning pine so this has helped me tremendously. Wish I knew how to tweek it, but you can't knock what you can't do!!!
rouxam
@squidlings, that’s nice to hear ! Glad it helps ! Checkout my other scripts they are all pretty basic and for 3commas :)
squidlings
@rouxam, I tried the psar one yesterday which got me in heaps of trouble but i did manage to get all those trades positive in the end. It's great we are in a bull run right, you can get away with making mistakes.

I'm new to TV, I've setup the alert on LTCBTC, then put the webhook on a composite bot for all pairs. Is that running your Ultimate MA script on all pairs or just LTCBTC? I mean, it's opening trades all the time on different pairs but it seems weird the alert is on LTCBTC.
rouxam
Yeah I wouldn’t use the alert on a composite bot ;)
squidlings
@rouxam, Ohhhh OK, well I've been using it for 3 days and it's made $258. Bull runs are forgiving. So I wonder how the signal is working then? It is buying into coins which are in bull mode. Sometimes in bad places but like I said, the bull market is being forgiving
asenka
@rouxam, thanks you for your efforts! Do you plan to add this indicator as a place order trigger to your latest 3 commas strategy?
More