Spécifications
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);
Répondu
1
Évaluation
Projets
764
63%
Arbitrage
33
27%
/
45%
En retard
23
3%
Gratuit
2
Évaluation
Projets
0
0%
Arbitrage
2
0%
/
100%
En retard
0
Gratuit
3
Évaluation
Projets
20
30%
Arbitrage
5
20%
/
80%
En retard
5
25%
Gratuit
4
Évaluation
Projets
10
40%
Arbitrage
7
14%
/
86%
En retard
4
40%
Gratuit
5
Évaluation
Projets
46
54%
Arbitrage
3
67%
/
0%
En retard
14
30%
Gratuit
Commandes similaires
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
Hi I want you to make software, let's give the software a name " rocky", I want to explain the project to understand the possibility, example: let's assume I have a computer and there is some internet browsers open, now the software "rocky" you will make is monitoring the computers full screen or a region of screen continuesly and as soon as the internet browser updates with some graphical changes (which is the text
Position: Telegram Bonk Bot Type Developer Budget: $150 Start Date: Immediate Project Overview: We are seeking an experienced and skilled Telegram Bot Developer to complete and launch an advanced TG BOT Notification and Automated Trading Bot. This bot is designed to provide real-time notifications about new token info and execute automated trades based on user-defined preferences. 😁 The core functionality and
Informations sur le projet
Budget
10- USD
Délais
de 1 à 3 jour(s)