Skip to content
Advertisement

Tag: algorithmic-trading

How to set condition rules

I have coded this buy/sell strategy in Pine Editor/TradingView: While in a long or short position, it changes position when opposite condition become true, but i want it to keep in position until it hits profit or stop loss. Then it can enter any position that fits again. How can i code this rule? Answer Maybe you want to replace

Advertisement