Termos de Referência
Hi everyone,
I need to store 2 data from a cross of 2 ema, each signal is generated by this and similar(there are 11 emas):
TouchTime=TimeCurrent(); if(ema1[1] > ema2[1] && ema1[0]< ema2[0]) { if(TouchTime != emacross1_TouchTime) { emacross1_TouchTime= TouchTime; } } if(ema2[1] > ema3[1] && ema2[0]< ema3[0]) {...
and I would like to store the current and previous signal of this array:
int touchedline[10]; int temp = 0; int valuearray = 0; touchedline[0]=emacross1_TouchTime; touchedline[1]=emacross2_TouchTime; touchedline[2]=emacross3_TouchTime; touchedline[3]=emacross4_TouchTime; touchedline[4]=emacross5_TouchTime; touchedline[5]=emacross6_TouchTime; touchedline[6]=emacross7_TouchTime; touchedline[7]=emacross8_TouchTime; touchedline[8]=emacross9_TouchTime; touchedline[9]=emacross10_TouchTime;
I tried with this loop, but on tick mode when multiple signal are generated on the same bar it doesn't work correctly (as you can see from the picture attached):
int highest=-1, previoushighest=-1; for(int i=0;i<10;i++) { if(touchedline[i]>temp) { highest=i; temp=touchedline[i]; } } temp=0; for(int i=0;i<10;i++) { if(touchedline[i]>temp && i!=highest) { previoushighest=i; temp=touchedline[i]; } } Print("act_highest :",highest); Print("prv_highest :",previoushighest);
Respondido
1
Classificação
Projetos
764
63%
Arbitragem
33
27%
/
45%
Expirado
23
3%
Livre
2
Classificação
Projetos
0
0%
Arbitragem
2
0%
/
100%
Expirado
0
Livre
3
Classificação
Projetos
20
30%
Arbitragem
5
20%
/
80%
Expirado
5
25%
Livre
4
Classificação
Projetos
10
40%
Arbitragem
7
14%
/
86%
Expirado
4
40%
Livre
5
Classificação
Projetos
46
54%
Arbitragem
3
67%
/
0%
Expirado
14
30%
Livre
Pedidos semelhantes
C# .net to MT5 bridge to read indicator
100 - 300 USD
We trading using C# application running via API https://www.mtsocketapi.com to send orders and some other commands to MT5. We have to read UT bot alert indicator in our C# application
MT4 TO PINESCRIPT
30+ USD
I NEED TO HAVE MY INDICATOR CONVERTED TO PINESCRIPT. IF YOU CHARGE PER LINES PLEASE ADVISE ALSO I NEED THIS DONE QUICKLY. IF YOU ARE ABLE FINISH WITHIN A DAY OR 2 PLEASE APPLY. THE INDICATOR IS BASED OFF ZIG ZAG AND RSI
I'm looking for a website developer that can create a registration form with email and username. This information will be part of a license key on indicators and EAs sold on that website. However there will be a new job created for this stage. For now I just need a registration box with email and user name to be input by the user. A list or database of this information to be created. There should also be a help chat
Informações sobre o projeto
Orçamento
10- USD
Prazo
de 1 para 3 dias