TradingView
kevinmck100
5 พฤษภา 2022 เวลา 20 นาฬิกา 26 นาที

QQE MOD + SSL Hybrid + Waddah Attar Explosion 

Bitcoin / TetherUSBinance

คำอธิบาย

TRADE CONDITIONS

Long entry:
  • QQE Mod changes to Blue (leading indicator)
  • SSL Hybrid is Blue and price is above MA Channel line
  • Waddah Attar Explosion is Green and above Explosion line


Short entry:
  • QQE Mod changes to Red (leading indicator)
  • SSL Hybrid is Red and price is below MA Channel line
  • Waddah Attar Explosion is Red and above Explosion line


Risk management:
  • Each trade risks 2% of account (configurable in settings)
  • SL size determined by swing low/high of previous X candles (configurable in settings)
  • TP is triggered on SSL Hybrid EXIT arrow signals


TIPS

Timeframe: Personally I've found best results running this on 1H timeframe.

Note: To help visual identification of trade entries and exits you may wish to add the SSL Hybrid and Waddah Attar Explosion to the chart separately. They are being used to determine trade entry/exit within the code of this strategy but it was not possible to display them in a clear way within a single panel. Make sure you set the settings of the auxiliary indicators to match what is in the settings of this indicator if you do decide to add them.

CREDITS
  • QQE MOD byMihkel00
  • SSL Hybrid by Mihkel00
  • Waddah Attar Explosion by shayankm

เอกสารเผยแพร่

Add alerts on trade entries

เอกสารเผยแพร่

  • Update date range to 2030
ความคิดเห็น
G-Force_Zero
Great strategy and it works... Thank you for your hard work and sharing it with us... But please improve the alert system (ex: BUY, CLOSE BUY, SELL, CLOSE SELL make everything separate)...
kevinmck100
@G-Force_Zero, Thanks for the comment. Unfortunately this does not seem to be possible within TradingView's strategies. As far as I'm aware, the only way to achieve what you're talking about is using alertcondition() functions which are only available in indicators and not in strategies. If there was enough demand for separate alerts though I could always convert this strategy into an indicator

This is from the V5 docs on alerts:

"While the presence of alertcondition() calls in a Pine Script™ strategy script will not cause a compilation error, alerts cannot be created from them."
Justine_Jose
@kevinmck100, brother please do something for signals, that would be more helpful for us 🙏
G-Force_Zero
@kevinmck100, thanks for the reply man.. Well I was thinking that if it had separate alerts we could use it on bots like 3commas or is there any other way to automate it to 3commas so that using this strategy I can send signals to 3commas or any exchange?
kevinmck100
@G-Force_Zero, I've only hooked into my own bots before so I'm not familiar with what is required for 3Commas integration. But maybe you can help me understand.

I would imagine it will be driven from a JSON payload in the message body of the alert and point the webhook URL at the 3Commas bot?

If so can you help me understand what you would require for an alert in 3Commas:

1. Will TP & SL be triggered from TradingView? (ie. 6 alerts per coin - LONG_ENTRY, SHORT_ENTRY, LONG_TP, LONG_SL, SHORT_TP, SHORT_SL)
2. Or would you need just need the LONG_ENTRY and SHORT_ENTRY and exit strategy is handled within 3Commas?
3. What details would you require in the alert message? Would it need to contain the position size etc, or would those details get worked out on 3Commas side?
kevinmck100
@G-Force_Zero, I hope that's not a real API key you shared lol.

But yeah, the above makes sense. Second screenshot didn't work, but I can see in the first there are DCA settings (with optional stop loss) and there is a 1% TP setting. If you set up like this I think you should only need the entry signal for long or short as the bot will automatically handle exits for you.

Also it looks like position sizing is determined within 3Commas also so that's not something that would need passed through on the entry signals.

However I think the main limitation of this strategy will be differentiating between long and shorts. From what I can understand from the above, your bot ID determines if you're pointing at a long or short bot. You will need to set up separate alerts with the relevant bot ID for both long and short which isn't currently possible within strategies. To make it work then I'll need to move this strategy into an indicator and set up separate alert conditions for entry on long and short.

One thing to bear in mind though is that results will not reflect the same when you run it in 3Commas. There's more than just entry or exit signals which affect the effectiveness of any strategy. Risk management is another key piece of the puzzle. By using 3Commas you're changing the risk management from what is used in this strategy. This strategy will calculate the SL based on previous price swings, then enter a position size which risks only X% of your portfolio. 3Commas strategy uses very different risk management in that it will DCA you into positions and I think the SL/TP and position sizings will be static across all entries. It's just worth remembering that the performance won't reflect the exact same as what you see in backtesting.

As for which bot I use, it's just one I put together myself which runs using AWS lambda functions. The main (best) version runs on Binance Futures and there is another branch with much more limited functionality which places orders on ByBit Futures (Binance stoped futures trading over here). The main branch has features like DCAing into positions, multiple TP levels, moving SL to breakeven on hitting TP, ATR based TP and SL, auto adjustment of position sizing based on max risk to portfolio, position sizing based on percentage of portfolio, adjustable leverage etc... If you're interested you can check out my GitHub at KevinMcK100 and search for the crypto-trading-bot. It's not hosted for use by the public though mainly because I don't want the responsibility of holding people's API keys, but you can always run it in AWS yourself if you're any way technical.
vaskosmihaylov
@kevinmck100, I have updated the strategy to use the 3Commas bot for BTC and ETH long/short and also leverage. I tested it for the last two weeks and I have around 5% profit. The strategy is working well, however, sometimes it closes the trade too early. I added the SSL Hybrid with the same settings that I have in the strategy however the exit arrows differ and I could not find why. Let me know if you have free time so we can discuss that. Thank you in advance.
เพิ่มเติม