Chris L told me to debug in a previous post so that's what I'm trying to do right now.
I'm trying to perform the above action but NT8 seem to mark all the bars all the chart instead of ones which mach the condition of closing either at the bottom 30% for shorts or top 30% for longs.
Not sure where the issue issue is:
if ((High [1] - Close[1]) > (High[1] - Low[1]) * 0.3); // if the bar closes at bottom 30% of it's range then mark short
{
Values[0][1] = (Close[1] + 1 * TickSize); //Place indicator at Close +1
}
if ((High [1] - Close[1]) < (High[1] - Low[1]) * 0.3); // if the bar closes at top 30% of it's range then mark long
{
Values[0][0] = (Close[1] - 1 * TickSize); //Place indicator at Close -1
}

Comment