OPEN-SOURCE SCRIPT

50 Pips A Day Strategy - Kaspricci

Cập nhật
50 Pips A Day Strategy

This strategy is designed to work on 1 hour timeframe. It is designed to capture the early market move of major forex pairs like EURUSD or GBPUSD. It takes the high and low of the first candle (7 a.m. GMT, London Stock Exchange opens) and places to pending orders at these prices levels.

  • High + additional gap in pips = buy stop pending order
  • Low + additional gap in pips = sell stop pending order


For both orders a stop loss of 15 pips and a take profit of 50 pips is used as a default. As soon as price triggers one pending order, the remaining pending order is cancelled. At the end of the configured session time all open and pending orders are closed / cancelled.

Settings
  • Trading Time - start and end time of session. It is configured for Monday to Friday only. At the beginning the first candle is used to define stop prices for pending orders.
  • Source for Buy Stop order - Default: high. Used to calculate buy stop order. You can add additional pips as a gap.
  • Source for Sell Stop order - Default: low. Used to calculate sell stop order. You can add additional pips as a gap.
  • Stop Loss in Pips - Default: 15. Used for both pending orders.
  • Take Profit in Pips - Default: 50. Used for both pending orders.


This strategy is for educational purposes only! It is not meant to be a financial recommendation.
Phát hành các Ghi chú
Adding two features:
  • you can now select between two stop loss / take profit calculation methods. 1) fix values as before or 2) dynamic calculation based on Average True Range and multipliers for stop loss and take profit.
  • with dynamic stop loss your risk amount is changing too. I added an option to overwrite quantity and adjust it to meet a defined risk percent of equity (keep in mind that equity is changing with each closed trade. So also the total risk amount is changing.)
Phát hành các Ghi chú
Adding custom alert messages that align with davidd.tech strategies enabling simple bot configurations.

Supported list of variables:

  • #nl# => New line
  • #symbol# => The ticker e.g. EURUSD
  • #LongSL# => Long Stop loss, absolut price of stop loss (buy stop price - stop loss in ticks)
  • #LongTP1# => Long Take Profit 1, absolut price of take profit target at 50% of take profit (buy stop price + take profit in ticks * 0.5)
  • #LongTP2# => Long Take Profit 2, absolut price of take profit target at 100% of take profit (buy stop price + take profit in ticks)
  • #LongTPFULL# => Long Take Profit in FULL, same as #LongTP2#
  • #ShortSL# => Short Stop loss, absolut price of stop loss (sell stop price + stop loss in ticks)
  • #ShortTP1# => Short Take Profit 1, absolut price of take profit target at 50% of take profit (sell stop price - take profit in ticks * 0.5)
  • #ShortTP2# => Short Take Profit 2, absolut price of take profit target at 100% of take profit (sell stop price - take profit in ticks)
  • #ShortTPFULL# => Short Take Profit in FULL, same as #ShortTP2#
  • #TakeAmount1# => Percent to remove from trade on hitting TP1, eg. 1.0 (risk in percent * 0.5)
  • #TakeAmount2# => Percent to remove from trade on hitting TP2, eg. 2.0 (risk in percent)
  • #TakeAmountFULL# => Percent to remove from trade on hitting TP3, same as #TakeAmount2#


Please test the alerts carefully as I don't use them by my own! Leave a comment, in case you found a bug.
Phát hành các Ghi chú
Fixed a bug with too many pending orders created, when enabling the strategy feature "on every tick".
Phát hành các Ghi chú
I made several changes to the script.

  • You can now define the time druing which the high and low are determined. Before it took always the first high and low of the first candle of the trading session. This way now you can use the script also on lower timeframes (<= 1h).
  • You can now disable the cancellation of the second pending offer.
  • Wehn enabling the risk based quantity calculation you can choose whether your risk amount is based on intitial capital (always the same) or on current balance (takes net profit of closed trades into account)
  • You can now disable the lot size based calculation of quantity, when risk based percentage is enabled.
  • I fixed a wrong quantity calculation, when using the script for non forex symbols.
Candlestick analysisstrategy

Mã nguồn mở

Theo tinh thần TradingView thực sự, tác giả của tập lệnh này đã xuất bản dưới dạng nguồn mở để các nhà giao dịch có thể hiểu và xác minh. Chúc mừng tác giả! Bạn có thể sử dụng miễn phí. Tuy nhiên, bạn cần sử dụng lại mã này theo Quy tắc nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?

Thông báo miễn trừ trách nhiệm