This was a grid trading example for intraday trading.
Please be advised that every commodity have diferent kind of reaction and between periods therefore the percentages need to be adjusted acording to the change %.
In order to specify the adjustment rate we add the in the script.
For Example ;
Last 3 days high points are %25 , %13 and %8 , the average %is about %9 therefore you have to put the adjustment ratios something like;
Z%1 = %3
Z%2 = %6
Z%3 = %9
Feel free to use the script with caution( it was not a investment advice), this was only a example of grid trading strategy on our trading platform.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.