Relative Content

Tag Archive for pine-scriptpine-script-v5trading

Pinescript – Tradingview strategy – Fixed stoploss & Dynamic take profit

I want to make a (weekly) pullback trading strategy, and test it in the strategy tester. I’m struggling however to set the initial stoploss at a fixed value so it doesn’t update as the trade progresses.
I can’t code myself, so I’ve been using ChatGPT for the code below, but it doesn’t seem to understand what i’m trying to do.

Pinescript – Tradingview strategy – Fixed stoploss & Dynamic take profit

I want to make a (weekly) pullback trading strategy, and test it in the strategy tester. I’m struggling however to set the initial stoploss at a fixed value so it doesn’t update as the trade progresses.
I can’t code myself, so I’ve been using ChatGPT for the code below, but it doesn’t seem to understand what i’m trying to do.

Pinescript – Tradingview strategy – Fixed stoploss & Dynamic take profit

I want to make a (weekly) pullback trading strategy, and test it in the strategy tester. I’m struggling however to set the initial stoploss at a fixed value so it doesn’t update as the trade progresses.
I can’t code myself, so I’ve been using ChatGPT for the code below, but it doesn’t seem to understand what i’m trying to do.

Pinescript – Tradingview strategy – Fixed stoploss & Dynamic take profit

I want to make a (weekly) pullback trading strategy, and test it in the strategy tester. I’m struggling however to set the initial stoploss at a fixed value so it doesn’t update as the trade progresses.
I can’t code myself, so I’ve been using ChatGPT for the code below, but it doesn’t seem to understand what i’m trying to do.