Coding an Indicator for the bar close.

 

Need help to write an indicator that will show where bar closed. Whether it closed in the top 25% of its range or bottom 25% of its range.

Thanks. 

 
Eric1704:

Need help to write an indicator that will show where bar closed. Whether it closed in the top 25% of its range or bottom 25% of its range.

Thanks. 

double Quarter = (High[1]-Low[1])/4;
if(Close[1] >= High[1] - Quarter)   ClosedInTopQuarter;
if(Close[1] <= Low[1] + Quarter)    ClosedInBottomQuarter;
 
Eric1704: Need help to write an indicator that ...
You have only three choices: Search for it, learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
 
WHRoeder:
Eric1704: Need help to write an indicator that ...
You have only three choices: Search for it, learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.

Thank you.
 
pipPod:

Thank you.
Reason: