yatrader2

[Autoview][Alerts]Blank R0.13B

yatrader2 업데이트됨   
This is a fork of JustUncleL's
Dual MA Ribbons R0.13

It is now a blank template for making new strategies / alerts for autoview
The changes are as follows:
  • Removed actual algo
  • Establish functions for long Signal, long Close Signal and short Signal, short Close Signal to minimize the places code must be edited to update / replace algos
  • Make allow Long and allow short and invert trade directions independent options
  • Added support for alternate candle types
  • Added autoset backtest period feature, and optional coloring
  • Moved strategy calls in to functions so they can all be commented out or activated / disabled in a single block at the top of the script

릴리즈 노트:
This is a 1.0 Release of Simple Template for Strategy / Study with Alerts

THIS IS THE ALERTS VERSION, BUT IT IS THE SAME AS THE BACKTEST WITH DIFFERENT COMMENT / UNCOMMENT.

  • Extensive Clean up and bug fixes
  • Enabled testPeriod to be used to limit Alerts too
  • You can completely switch between Strategy and Alerts with a single Comment / Uncomment of the blocks at the top
  • Added a trivial strategy so it works out of the box.
  • Renamed to Simple Template 1.00

This crossover strategy is just a place holder.
This is really just a template for you to build your own strategy for backtesting.
And then to run with autoview.

I included the crossover strategy so it would work out of the box and you'd
have simple example code to modify.

It does however provide a lot of flexibility for what you build, and it is very easy to switch between Strategy and Alerts. You can completely switch between Strategy and Alerts with a single Comment / Uncomment of the blocks at the top of the script and have confidence that the script will run the same in both states.

Other than that you should only need to edit code in the section: between
// BEGIN ACTUAL STRATEGY
and
// END ACTUAL STRATEGY

It supports Renko and HA candles (please take care with both to understand
what you are actually backtesting). See notes in code.

It supports Multiple Timeframes (via a multiplier)

It can be long only short only or both. You can specify different Long Close and Short Open (and Short Close / Long Open) conditions or let them be the same.

In fact you define your whole strategy by just setting those 4 variables.

You can set specific time periods to backtest (or to run the alerts)

Support for various stops:
- Trailing Stop, with Activate Level (as % of price) and Trailing Stop (as % of price)
- Target Profit Level, (as % of price)
- Stop Loss Level, (as % of price)
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?