Tâche terminée
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Spécifications
bid, ask, ma and atr already get exported, now i need additionally linear regression values, left and right price values of the linear regression line:
i need the linear regression datas after MA (not after ATR) :
left and right price values of the linear regression line (see image "indicator simple extend"). attached you have 2 source codes of indicators with linear regression calculation.
for all 28 pairs that are already there:
M1 period: 22
M1 period: 23
M1 period: 24
M5 period: 32
M5 period: 33
M15 period: 42
M15 period: 43
M30 period: 52
M30 period: 53
H1 period: 62
H1 period: 63
H4 period: 72
H4 period: 73
D1 period: 82
D1 period: 83
yes, all timeframes with 2-3 different periods, please take exact same periods.
This are 30 additional values to be exported. The total amount of exported values will be 78 including the linear regression datas, there is a limit of 67 datas that can get exported per currency. Way around: use "double" and the limit of 67 can get exceeded, OR IF YOU WOULD LIKE TO USE ANOTHER METHOD THAN "DOUBLE METHOD" LET ME KNOW! See attached file as example (indicator export with double function".
According to a forum post, the code can get shortened a lot this way:
for(int a=0; a<SymbolsTotal ();a++)
for(int b=0; b<8;b++)
for(int c = 0; c<ArraySize(Period);c++)
{
Symbols[a].timeframe[b].period[c].ma= iMA(symbol[a],TF[b],Period[c],method,apply to,Shift); }
....but i don't know if thats true and its not required.
please keep or make the code as short as possible.
Actually its an indicator that exports the datas, not a script, you can let it be an indicator.
files:
Export indicator.mq4
Export indicator with double function
indicator simple extend.jpg
Linear regression.mq4
Linear regression istddev.mq4