Download MetaTrader 5

Coding an Indicator for the bar close.

To add comments, please log in or register
ForexTrader17
1041
ForexTrader17  

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. 

Ernst Van Der Merwe
5004
Ernst Van Der Merwe  
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;
whroeder1
15598
whroeder1  
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.
ForexTrader17
1041
ForexTrader17  
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.
ForexTrader17
1041
ForexTrader17  
pipPod:

Thank you.
To add comments, please log in or register