Noldo

MACD 50x Leveraged Strategy Real Equity Simulation

Noldo Cập nhật   
Hello, I wrote this script to merge the two scripts I shared before.
The aim here is to see the real value of the state of the capital as a result of leveraged transactions and to combine both long and short directions.
Scripts :

MACD Long 50x Leverage Strategy :

MACD Short 50x Leverage Strategy :

The parameters have not changed so they are the same as the previous two scripts:

Adding margin: Forbidden or not specified. (Add Margin : No)

  • Position Size : %1 (0.01) (For each trade)
  • Stop-Loss : %2 (For each trade)
  • Long : Crossover(delta,0) (Standard MACD)
  • Long Exit : Long Stop Level or Short Entry
    (In the case of Long Stop, all trades are closed and no positions are opened in short direction.)
  • Short : Crossunder(delta,0) (Standard MACD)
  • Short Exit : Short Stop or Long Entry
    (In the case of Short Stop, all trades are closed and no positions are opened in the long direction.)

NOTE :
This is a simulation made using standard parameters, showing the state of the balance in very simple rules with leveraged transactions only.
The nice thing here is the direct observation of the results by making modifications on the strategy parameters.
Regards.
Phát hành các Ghi chú:
Net capital bug fixed.
Mã nguồn mở

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

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

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

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