Does that even compile?
return(rates_total); Awesome_result += rates_total; // store the result into Awesome_result
You return before doing the calculation!
Print (Awesome_result );
This appears to be outside of any function.
Topics concerning MT4 and MQL4 have their own section.
In future please post in the correct section.
I have moved your topic to the MQL4 and Metatrader 4 section.
- There is no such thing as a "default indicator"
- You show the code for the "Awesome" indicator. You don't show the code of how you read it.
Perhaps you should read the manual. Detailed explanation of iCustom - MQL4 programming forum 2017.05.23
How To Ask Questions The Smart Way. 2004
How To Interpret Answers.
RTFM and STFW: How To Tell You've Seriously Screwed Up.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi all, i am newbie of Mql4, i am trying to write my own code, i want to leverage some result of default indicator, i tried to get them by my coding, but don't why doesn't work. I guess (rates_total) is the result of the indicator, so i created a variable for storage of result:
And after calculation, i will get the result into Awesome_result by following:
Awesome_result += rates_total; // store the result into Awesome_result
However, and then i printed, nothing happens, can i anyone tell me what wrong with my code? the following is the whole code, thx a lot