TradingView
wsk719
2020年12月18日早上3點02分

Vegas Tunnel strategy 

US SPX 500OANDA

描述

Apply Vegas Tunnel,
Use EMA144 169 as medium-term trend support
Also use EMA 576 676 and 4 multiples of 144 and 169 as long-term support and trend direction
Also increase EMA 36 43 as a short-term trend support

Suitable for stocks, indices, commodities
The applicable time scale can back-test the usability of the strategy by itself, and select the most applicable target

Introduction to current trading strategy:
According to the trend, the price will enter the market when it touches the support of each stage. When it touches the bollinger bands, it is Squeeze. Hold until it leaves the bollinger bands

But the trading strategy can be more optimized, see the code for details
評論
yuexinnuo161025
bro, tested this strategy on other trading pairs, the test result is too good to be true, the profitable percentage is almost too large, over 50%, while most trend-following strategies have a profitable percentage of 30-40% ..... so I wonder whether this strategy repaints, like does it delete the wrong signals,,
deyoung
您好,我是您此脚本的使用者,有些问题想请教您一下,
请问如何设置每次开单的数量和倍数呢?
还有,我修改了本金以后好像盈利都是固定的,这是为什么呢?
wsk719
裡面設定每次下單都固定100,如果要改可以從程式改,我有開放
deyoung
@wsk719, 请问代码里的100是指合约的倍数呢还是仓位的百分比,我看到您代码里的这个数字了,但是我对代码含义不太清楚
deyoung
@wsk719, 老师您好,打扰您了,不知您可否指点一下,万分感谢
wsk719
@deyoung, 別叫老師吧,這只是找一堆大神的資料拼湊的
可以參照一下Pine腳本語言參考手冊,裡面敘述是qty (float) 可選參數。交易的合約/股數/手數/單位數量。預設值為'NaN'
tradingview.com/pine-script-reference/v4/
deyoung
@wsk719, 前辈您好,我认真阅读了您发给我的链接,研究并修改了代码,可是没有达到我想要的参数,实在不好意思,还想请您指教一下。
如果我想设置本金1000USDT,每次开仓价格是5%的仓位和20倍合约,在代码里应该如何修改呢
trategy.entry("buy", strategy.long,5, when=macd>0, comment = "多Long-term")
例如上面这段代码,耽误您时间不好意思了
wsk719
@deyoung, 看手冊幾倍合約沒辦法做,但要幾%的艙位可以用變數寫
trategy.entry("buy", strategy.long,5, when=macd>0, comment = "多Long-term")
這個5改成變數
lamsa66
How can I put this strategy into my TDA charts? Thanks.
BlacKitty_eth
This strategy can be hedged by supertrend strategy so the profit chart will be more smooth.
更多