TradingView
pcooma
12 มกรา 2022 เวลา 3 นาฬิกา 13 นาที

Up & Down Trend following trading strategy for BTC/USDT 3h 

Bitcoin / TetherUSBinance

คำอธิบาย

This strategy is based on multi time frame technical indicators such as;

1. RSI (10,50,100)
2. MFI (10,50,100)
3. RVI (10,50,100)
4. BOP (10,50,100)
5. Super Trend
6. SAR indicator
7. Higher highs and lower lows
8. SMA (9,500)
9. EMA (9,200)

After evaluating different parameters provided by those indicators, script is in a possition to determine optimul positions to enter in to market as well as exit from the market. In some cases stratergy will exit fully or partially depends on the situation. Other than that, this strategy is in a possition to calculate and specify the quantity you need to buy or sell depending on market situation. You can specify amount available for investment and how many times you are going to average (if downtrend). Parameters are optimised to BTC/USDT, 3h standerd candlestic chart.

goodluck
ความคิดเห็น
Sarragossa
I have a problem: quantity for entry or order must be a positive number less pr equal to 100000000000 passed value is -0.001276
pcooma
@Sarragossa, can you please send me a screen shot.
hgww6883ag
@pcooma, did you manage to solve this?
pcooma
@hgww6883ag, I haven't get your screen shot to refer
hgww6883ag
@pcooma, I have tried to private message you the screen shot, can you let me know you got it? Don't seem to be able to send you a screen shot, only an image of the chart.But it come up with a study error with the same message Sarrgossa shows above.
awasarpaudel123
@pcooma, I had the same issue which is fixed by buying math.abs function at line numbers 807,809 and 811
e.g. LIne 811 strategy.entry("long", strategy.long, comment = buy_comment, qty = math.abs(quantity))
pcooma
@awasarpaudel123, Thank you, buddy.... for correcting and informing me.
jackSosssss
multi time frame usually leads to repaint? how do you avoid that?
pcooma
@jackSosssss, hi, pls refer row no 190 to 449. i re-processed and categorised multi timeframe data to avoid repaint.
Cloriatun
thank you for sharing. how to run these automaticly ?
เพิ่มเติม