Help needed - line of code not working as intended.

Back to topics list  | 1 2 To post a new topic, please log in or register
avatar
12985
WHRoeder 2016.08.26 15:49 #
 
int limit = rates_total - prev_calculated;
:
for(int i = limit-1; i >= 0; i--)
:
return(rates_total);
After the first run limit will always be zero and your loop never runs. Do your lookbacks correctly.
avatar
6
fin_kroon1 2016.08.26 15:50 #
 
It's auto generated code off an auto generating software builder as i suck at coding. so the line which doesn't work is the line I've added manually. 
avatar
12985
WHRoeder 2016.08.26 15:51 #
 
fin_kroon1: It's auto generated code off an auto generating software builder as i suck at coding. so the line which doesn't work is the line I've added manually. 
  • We hate EA builder
  • You couldn't be bothered to learn mql4, therefor there is no common language for us to communicate.
  • There are only two choices: 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, but we are not going to debug your hundreds lines of code.
  • EA builder makes bad code counting up while closing multiple orders.
  • EA builder makes bad code Bars is unreliable (max bars on chart) volume is unreliable (miss ticks) Always use time
  • EA builder makes bad code Not adjusting for 4/5 digit brokers
  • EA builder makes bad code not adjusting for ECN brokers.
  • EA builder makes bad code not checking return codes.
  • EATree uses objects on chart to save values - not persistent storage (files or GV+Flush.) No recovery (crash/reboot.)

Back to topics list   | 1 2  

To add comments, please log in or register