Download MetaTrader 5
To add comments, please log in or register
Search in documentation is available via MetaTrader 5. Search and learn!
ForexTrader17
1011
ForexTrader17 2014.12.02 02:32 

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
4404
Ernst Van Der Merwe 2014.12.02 09:22  
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
13627
whroeder1 2014.12.02 15:10  
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
1011
ForexTrader17 2014.12.02 20:32  
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
1011
ForexTrader17 2014.12.02 20:32  
pipPod:

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