I read the following pages:
The code would be this:
###################################
int highestBarsAgo = HighestBar(High, 10);
double highestPrice = High[highestBarsAgo];
###################################
###################################
int lowestBar = LowestBar(Low, 10);
double lowestPrice = Low[lowestBar];
###################################
When running the strategy, it gives me the following error: (I attach a screenshot of the error message)
Comment