• Products
  • Community
  • Markets
  • Brokers
  • More
Get started
  • Community
  • /
  • /Simulations

Simulations

MACD 50x Leveraged Strategy Real Equity Simulation 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.
Pine Script® strategy
by Noldo
Updated Feb 15, 2021
22

Select market data provided by ICE Data services. Select reference data provided by FactSet. Copyright © 2025 FactSet Research Systems Inc.© 2025 TradingView, Inc.

More than a product
  • Supercharts
Screeners
  • Stocks
  • ETFs
  • Bonds
  • Crypto coins
  • CEX pairs
  • DEX pairs
  • Pine
Heatmaps
  • Stocks
  • ETFs
  • Crypto
Calendars
  • Economic
  • Earnings
  • Dividends
More products
  • Yield Curves
  • Options
  • News Flow
  • Pine Script®
Apps
  • Mobile
  • Desktop
Community
  • Social network
  • Wall of Love
  • Refer a friend
  • House Rules
  • Moderators
Ideas
  • Trading
  • Education
  • Editors' picks
Pine Script
  • Indicators & strategies
  • Wizards
  • Freelancers
Tools & subscriptions
  • Features
  • Pricing
  • Market data
Trading
  • Overview
  • Brokers
Special offers
  • CME Group futures
  • Eurex futures
  • US stocks bundle
About company
  • Who we are
  • Space mission
  • Blog
  • Careers
  • Media kit
Merch
  • TradingView store
  • Tarot cards for traders
  • The C63 TradeTime
Policies & security
  • Terms of Use
  • Disclaimer
  • Privacy Policy
  • Cookies Policy
  • Accessibility Statement
  • Security tips
  • Bug Bounty program
  • Status page
Business solutions
  • Widgets
  • Charting libraries
  • Lightweight Charts™
  • Advanced Charts
  • Trading Platform
Growth opportunities
  • Advertising
  • Brokerage integration
  • Partner program
  • Education program
Community
  • Social network
  • Wall of Love
  • Refer a friend
  • House Rules
  • Moderators
Ideas
  • Trading
  • Education
  • Editors' picks
Pine Script
  • Indicators & strategies
  • Wizards
  • Freelancers
Business solutions
  • Widgets
  • Charting libraries
  • Lightweight Charts™
  • Advanced Charts
  • Trading Platform
Growth opportunities
  • Advertising
  • Brokerage integration
  • Partner program
  • Education program
Look FirstLook First