OPEN-SOURCE SCRIPT

MACD 50x Leveraged Long Strategy Results with Real Equity

업데이트됨
Hello there.
I was looking for a way to simulate leveraged transactions in Tradingview and this script came out.
You can examine the equity graph without looking at the strategy results.
Thus, the facts will come to light.
Strategy parameters:

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

  • Position size: (for each trade) 1%

  • Stop-Loss: (2%)

  • Long: macd crossover

  • Exit: macd crossunder


Or ofc touching the stop-Loss value as predicted.

Warning: This strategy simulation is for Long direction only.
Regards.


릴리즈 노트
Correction in line 37:
98% of the average entry price is taken as the Stop-Loss value.
(2% below the average entry price)
릴리즈 노트
Net capital bug fixed.
릴리즈 노트
We forgot to add principal position size if we win.
The previous version was wrong.
Because he saw the starting position size as a loss.

I also designed the percentage profit calculation much simpler.
I will do this update when I have enough time.
릴리즈 노트
Apology!
I was skeptical after high success rates.
The old version was correct.
Change (Strategy.position_size) statement already adds prinsipal position size.
Update cancelled.
beyondtechnicalanalysisEquityleveragetradingMoving Average Convergence / Divergence (MACD)positionsizereal

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

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

면책사항