In future please post in the correct section
I have moved your topic to the MQL4 and Metatrader 4 section.
-
// skip pending orders if(OrderType() == OP_BUYSTOP || OrderType() == OP_BUYLIMIT || OrderType() == OP_SELLSTOP || OrderType() == OP_SELLLIMIT) { continue; }
Do not assume history has only closed orders. There are other types beyond those. If(Ordertype() > OP_SELL)
Do not assume history is ordered by date, it's not.
Could EA Really Live By Order_History Alone? (ubzen) - MQL4 programming forum - Christos Andronoudis: i try make a EA to have a Working with custom indicators included as resources but without success.i have already read documantation but something i make wrong.What are you talking about? You didn't do anything wrong; you haven't done anything as a resource, period.
return(NormalizeDouble(iCustom(NULL, timeframe, "SqHeikenAshi", 0,0,0,0, 3, shift), 6));
Use the publicly released code - Expert Advisors and Automated Trading - MQL5 programming forum 17.02.20
Resources - MQL4 programs - MQL4 ReferenceBe aware that using resources is 40x times slower than using CIs directly.
A custom indicator as a resource - MQL4 programming forum 2019.11.26
William Roeder:
- Do not assume history has only closed orders. There are other types beyond those. If(Ordertype() > OP_SELL)
Do not assume history is ordered by date, it's not.
Could EA Really Live By Order_History Alone? (ubzen) - MQL4 programming forum - What are you talking about? You didn't do anything wrong; you haven't done anything as a resource,
period.
Use the publicly released code - Expert Advisors and Automated Trading - MQL5 programming forum 17.02.20
Resources - MQL4 programs - MQL4 ReferenceBe aware that using resources is 40x times slower than using CIs directly.
A custom indicator as a resource - MQL4 programming forum 2019.11.26
thats what i have done in line23 and 266 in metaeditor shows me 0 errors but in tester the EA stops and in journal shows me invalid pointer access.thanks for your time
Files:
SqLinReg_EA.mq4
203 kb
Keith Watford:
In future please post in the correct section
I have moved your topic to the MQL4 and Metatrader 4 section.
Keith Watford:
In future please post in the correct section
I have moved your topic to the MQL4 and Metatrader 4 section.
You are right,sorry
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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,please if someone can help i try make a EA to have a Working with custom indicators included as resources but without success.i have already read documantation
but something i make wrong. if someone can help i appreciate it.i have upload the custom indicator and a EA which use ths indicator (the EA its not something special i use it only to succed the i custom function.sory for my english