Working with custom indicators included as resources

 

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

Files:
SqLinReg_EA.mq4  203 kb
SqLinReg.mq4  3 kb
 
In future please post in the correct section
I have moved your topic to the MQL4 and Metatrader 4 section.
 
  1.          // 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

  2. 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.

    return(NormalizeDouble(iCustom(NULL, timeframe, "SqHeikenAshi", 0,0,0,0, 3, shift), 6));
    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 Reference

    Be 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:
  1. 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

  2. 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 Reference

    Be 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