Rewarded

Author: Dreams are worth eight figures., Created: 2023-09-22 01:58:16, Updated:

Ask for a pine language Martin strategy that can run on Trading


More

The Little Dream``pine // @version=5 Indicator (Martingale Strategy, overlay=true) // The initial position size initial PositionSize = input ((1, title="initial position size") // times the multiple MartingaleMultiplier = input ((2, title="multiplied by multiples") // Stop loss percent stopLossDiff = input ((2000, title="stop loss difference") // Percentage of profits takeProfitDiff = input ((2000, title="takeProfitDiff") The current position size = strategy.position_size buySignal = false - Stop the car. if (close - strategy.position_avg_price >= takeProfitDiff) Strategy.close_all is a // Stop loss is doubled if (close - strategy.position_avg_price <= -stopLossDiff) and if (close - strategy.position_avg_price <= -stopLossDiff) the value of the loss is the same as the value of the loss The current position size is the same as the current position size. buySignal:= true if currentPositionSize == 0 BuySignal:= true The current position size: = initial position size // Buying logic This is a list of all the different ways Strategy.order is credited in the database. What's up? For reference only, Martin's tactics are risky.

The Little DreamI'm not being polite.

Dreams are worth eight figures.Thank you Dreams.