Crypto-Oli

BLANK Strategy + TSL + Backtestrange

- I often see ppl struggeling do the first own strategy
- this is an example, for a smooth start

- EDIT it to your needs ( DELET my EXAMPELS and add your INPUTS/CONDITIONS)

- i added also a Backtestrange, so you can test your Strategy in different marketphases
- also added a trailing-stop-loss
開源腳本

秉持真正的TradingView精神,該腳本的作者將其開源發佈,因此交易者可以理解和驗證它。為作者加油!您可以免費使用它,但是在發佈中重複使用此程式碼受網站規則的約束。您可以把它加入到常用以在圖表上使用它。

想在圖表上使用此腳本?

評論

Hi, thanks for this! Do you know how to have variable long/short entry conditions? For example in this strategy, a true/false input for each ema cross, if true then included in long/short conditions, if false then not included? Thanks a lot.
回覆
Crypto-Oli BlockchainSpecialists
@BlockchainSpecialists,

Hello, if you need crosses use longCondition = cross(ema1,ema2)

this is only a Startpoint for your own strategy ... you can find Help here https://www.tradingview.com/pine-script-reference/v4/
回覆
@Crypto-Oli, Thanks for your reply. I actually found a solution soon after posting. I opted for longcondition = iff(usevariable == true, variable, na) and iff( etc.... Allowed me to make my long condition change quite drastically without too much code.
回覆
Crypto-Oli BlockchainSpecialists
@BlockchainSpecialists,

nice =) ... one important point : the Trailing Stoploss is buggy ... TV only uses ohlc data , so you will most likly more often stoped out then the strategy implies , keep that in mind
回覆