buyLimit = Close[0] + 2.0;
for(i=0; i<BarCount; i++) {
if(Close[i] > buyLimit) {
Buy[i] = sigScaleIn;
buyLimit += 2.0;
}
}
I forgot to add the description: The goal is to buy more whenever the price has risen by 2 points.
buyLimit = Close[0] + 2.0;
for(i=0; i<BarCount; i++) {
if(Close[i] > buyLimit) {
Buy[i] = sigScaleIn;
buyLimit += 2.0;
}
}
I forgot to add the description: The goal is to buy more whenever the price has risen by 2 points.