But ticks are not time, they are price, right? And I'm talking about the timing of the order at the last price (= the last tick).
The EA works by the arrival of the tick. The first tick in a bar can always be caught. The last one is not sure. No one knows if it is the last one or not, until the first tick of a new bar arrives.
The advisor works on the arrival of the tick. The first tick in a bar can always be caught. The last one is not sure. No one knows if it is the last one or not until the first tick of a new bar arrives.
Ok, but at the first tick of a new bar you can place a new order instead of the failed one and trace the triggered one?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
What if there isn't one, first and last second?
I don't get it. Well, is there a penultimate and a second?
I don't get it. Well, is there a penultimate and second one?
Who knows when the ticks will come. It happens that even on M15 there are bars missed (no ticks).
Who knows when the ticks will come. Sometimes there are missed bars on M15 as well (no ticks)
But ticks are not a time, but a price, isn't it? And I'm talking about time of order at last price (= last tick).
But ticks are not time, they are price, right? And I'm talking about the timing of the order at the last price (= the last tick).
The EA works by the arrival of the tick. The first tick in a bar can always be caught. The last one is not sure. No one knows if it is the last one or not, until the first tick of a new bar arrives.
is there a function to display the news on the open window of the currency pair
no
The advisor works on the arrival of the tick. The first tick in a bar can always be caught. The last one is not sure. No one knows if it is the last one or not until the first tick of a new bar arrives.
Ok, but at the first tick of a new bar you can place a new order instead of the failed one and trace the triggered one?
OK, at the first tick of a new bar, can we place a new order to replace the failed one and trailing the one that went down?
Of course you can.
Maybe someone can use the trend detection function for a specific TF and currency pair:
Idea from ONIX forum
>0 - buy
<0 - sell
//================ TrendX =========================================
double TrendX(string Par="EURUSD", int Tf=240, int PeriodPower=13, int Period_Bulls=11, int Period_Bears=10) { double RR=0;
double Bears_array[30]; ArraySetAsSeries(Bears_array,true); int cx=0; while (cx<31)
{Bears_array[cx]= iBearsPower(Par, Tf, PeriodPower,PRICE_CLOSE,cx); cx++; }
double MA_Bears =iMAOnArray(Bears_array,0,Period_Bears,1,MODE_SMMA,0);
double Bulls_array[30]; ArraySetAsSeries(Bulls_array,true); int lx=0; while (lx<31)
{Bulls_array[lx]= iBullsPower(Par, Tf, PeriodPower,PRICE_CLOSE,lx); lx++; }
double MA_Bulls =iMAOnArray(Bulls_array,0,Period_Bulls,1,MODE_SMMA,0);
RR = MA_Bears + MA_Bulls;
return(RR);}
//===================================================================
function call: TrendX("EURUSD",60, 12, 12)