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
Script de código aberto

No verdadeiro espírito TradingView, o autor deste script o publicou com código aberto, para que os traders possam compreendê-lo e verificá-lo. Um brinde ao autor! Você pode usá-lo gratuitamente, mas a reutilização deste código em uma publicação é regida pelas Regras da Casa. Você pode favoritá-lo para utilizá-lo em um gráfico.

Quer usar esse script no gráfico?

Comentários

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.
Resposta
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/
Resposta
@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.
Resposta
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
Resposta