Mistake number 1: MQL5 style implies that the indicator handle must be created ONCE and must be done in OnInit!
Hi Vladimir,
Thanks for your response, I am not sure why it should only be in OnInit and not in OnTick.
I have no programming background, Can you guide me some online resource to learn MQL5 from beginner to advance.
google suggest nothing but this website.
This website contains details but very difficult for me to understand the terminology.
Konut #:
Example: how to get the value of the iSAR indicator in an advisor.
Hi Vladimir,
Thanks for your response, I am not sure why it should only be in OnInit and not in OnTick.
I have no programming background, Can you guide me some online resource to learn MQL5 from beginner to advance.
google suggest nothing but this website.
This website contains details but very difficult for me to understand the terminology.

How to start with MQL5
- 2020.08.26
- www.mql5.com
This thread discusses MQL5 code examples. There will be examples of how to get data from indicators, how to program advisors...

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
Hello folks,
started learning MQL for more than a week now.
made EA which simply opens order based on PARABOLIC SAR indicator.
on sell indicator it sells and on buy indicator it buys. and I lost 100% loss in a year. while backtesting.
I swapped the signal from sell to buy and buy to sell, thinking this loss should now be a profit as stoploss and takeprofit are at same level.
but it did not work I still was down by 50%
Am I missing something, as I am very new to forex.