EveryDayBetter
Pine Script Master
Pine Script Master
Posts: 27
Joined: February 16th, 2022

How to open a trade (strategy) when the price increases more than 1 Percent in a day?

How can I define, that the strategy opens a trade, when the price increases more than 1 Percent in a day?

Verrattitanesque
Pine Script Rookie
Pine Script Rookie
Posts: 1
Joined: March 10th, 2022

Re: How to open a trade (strategy) when the price increases more than 1 Percent in a day?

(close - open)/close * 100

if close < open

-(close-open)/close *100

I think it's the main idea


Return to “Pine Script Q&A”