TradingView
hugodanielcom
7 ธันวา 2021 เวลา 14 นาฬิกา 36 นาที

Simple scalping strategy for SOL 

SOL / U. S. DollarKraken

คำอธิบาย

This is a simple scalping strategy for trading SOL made on top of the Rebalance Oscillator and the Rebalance Bear/Bull market indicators.

It is intended mostly as proof that these two indicators have their benefits even in simpler strategies.

This strategy in particular works well for the Bear months (check Nov. in the data window) but considerably underperforms Buy&Hold for the Bull months.

It tries to do a market operation per candle whenever the candle happens in a buy/sell trading window of the
Rebalance Bear/Bull indicator (tradingview.com/script/Y0omflqx-Rebalance-as-a-Bear-Bull-indicator/).

It always buys/sells the same amount by default (you can set it in the cog menu in the option "Base Crypto Amount To Trade"),
for SOL this is set to 1.0SOL.

This is my first attempt at scalping, it differs slightly from the standards because it does not require fast
response candles or immediate market operations (it can work well with limit trading) and on top of this it also
does not require a stop loss since it uses an indicator that provides the trading windows (surprises can still happen though).

The profit that this strategy tries to take for each buy/sell pair is not configurable and is set at 12% each way when it happens.

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

- Adds the trading window() check before doing any strategy actions.
- Periodically sells/buys if there is no balance to perform the opposite order

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

Updated the defaults for SOL/USD November month.
ความคิดเห็น
ryanleotan
Hi mate, cool strategy. I'm really new at pine still so I'm not too familiar with the process, but how would one go about implementing this script and configuring it for automated bots such as 3commas or Wunderbit?
tugskh9w
This is awesome, man! Can you set alerts up for it? Does it repaint?
hugodanielcom
@mdeacey, thanks! simple alerts are already setup (line 444 and 447), by default they send the amount of crypto being bought (positive number) or sold (negative number), to use this the following must be placed as the alert message when configuring the alert:
{{strategy.order.alert_message}}

I don't think this does any repainting, it does not make use of any common indicator, or any "ta." function or strategy gimmicks, this code has almost no dependencies on TradingView functions besides basic arrays and the simple math.abs function. I will try to find a way that can guarantee that it does not make use of repaints and get back to you if I find anything. I hope you find this simple strategy useful.
เพิ่มเติม