It takes the variable x, however never uses it and instead just uses 5.
For clarity this is the solution provided
”’
Xmavg_price: {[X]
whereClause: () ; //enlisting JPM to keep as a symbol and not interpreted as a variable
byClause:enlist [sym]!enlist
sym;
returnClause:enlist[price_5]!enlist (mavg;5;
price);
?[trade;whereClause;byClause;returnClause]
}
Xmavg_price 5
”’