Hello dear friends !!! Everyone decides for himself. Will Forex be his main source of income or just a game. Of course, most traders are looking for profitable trading. They've already searched all over the Internet looking for something... ))) And I'm going all the way back in 2008. It was the only time I got relaxed, when I bought the strategy. I bought it in 2013. I started to earn real money on the stock market from that time. Thus, earning or not earning forex is a question that everyone can answer only to himself. You know, I'll give you some advice. Who will accept it, and someone will ignore it. You have to live Forex, and you have to love it. And not just want to use it to make easy money. You can make easy money at the factory. You don't have to think there. That's where the management thinks for you. All you have to do is work eight hours. I know what you're thinking. Look at the strategy I'm using. And you tell yourself. Whether or not you can make money with it. ***
I will help in any way I can. I, too, have had help from experienced traders in my time. I have been trading since 2008. I don't take money from people because I take it (the green stuff) from the market. It's enough for me!
FXMigor: I will help in any way I can. I, too, have had help from experienced traders in my time. I have been trading since 2008. I don't take money from people because I take it (the green stuff) from the market. I do not take money from people, it's the money I take from the market. That's enough for me!
I do not take any money from them (the green ones), that's enough for me! I have no need to advertise here, I will be banned for advertising.
TheExpert Advisor Ais written. Inside it, only the indicator B is written. In the onTick section the calculated indicator value is saved in the b1 variable.
So every time new price appears, the indicator will be recalculated and b1 will be updated?
TheExpert Advisor Ais written. Inside it, only the indicator B is written. In the onTick section the calculated indicator value is saved in the b1 variable.
So every time new price appears, the indicator will be recalculated and b1 will be updated?
TheExpert Advisor Ais written. There is only indicator B inside it. In the onTick section the calculated indicator value is saved in the b1 variable.
So every time new price appears, the indicator will be recalculated and b1 will be updated?
It depends on how the indicator is written. If it has the logic of the zero candle refreshing, then yes. If not, then the indicator will be updated only with the arrival of a new candle. The variant of the total recalculation of the indicator on every tick is also possible.
Dear forum members, I would like to know what exactly is meant by a "tick" in metatrader4. Is it a Bid or Ask price change? Or it makes no difference whether the tick handler is triggered in both cases?
Dear forum members, I would like to know what exactly is meant by a "tick" in metatrader4. Is it a Bid or Ask price change? Or it makes no difference whether the tick handler is triggered in both cases?
Dear forum members, I would like to know what exactly is meant by a "tick" in metatrader4. Is it a Bid or Ask price change? Or there is no difference and in both cases the tick handler will work?
OnTick misses 50-70% of price changes (last) comparing to OnBookEvent. I don't quite understand who needs it and why they need it at all. The documentation says right away that several ticks can come to the terminal simultaneously and create only one ontick event.
In theory, it's more reasonable to use OnBookEvent and then filter out the necessary changes.
But I have a problem here too. It looks like this:
voidOnBookEvent(conststring &symbol)
{
if(symbol==_Symbol) // Нужный символ
{
MqlTick mtick[];
CopyTicks(_Symbol,mtick,COPY_TICKS_ALL,0,1); // Скопировали структуру с последним тиком
lastprice=mtick[0].last; // Взяли из него последнюю сделкуif(lastprice!=lastprice1) // Сравнили с предыдущим тиком
{
//Записали всю информацию в лог
logger.write("Время: "+(string)mtick[0].time+" Bid: "+(string)mtick[0].bid+" Ask: "+(string)mtick[0].ask+" Last: "+(string)mtick[0].last+" Volume: "+(string)mtick[0].volume+" Flags: "+(string)mtick[0].flags);
// "тик изменил цену последней сделки"if (mtick[0].flags & TICK_FLAG_LAST) {logger.write("Last: "+(string)mtick[0].last+" Volume: "+(string)mtick[0].volume+" Flags: "+(string)mtick[0].flags);}
lastprice1=lastprice;
}
}
}
I will help in any way I can. I, too, have had help from experienced traders in my time. I have been trading since 2008. I don't take money from people because I take it (the green stuff) from the market. I do not take money from people, it's the money I take from the market. That's enough for me!
Good evening,
Please advise on a general question.
TheExpert Advisor Ais written. Inside it, only the indicator B is written. In the onTick section the calculated indicator value is saved in the b1 variable.
So every time new price appears, the indicator will be recalculated and b1 will be updated?
Good evening,
Please advise on a general question.
TheExpert Advisor Ais written. Inside it, only the indicator B is written. In the onTick section the calculated indicator value is saved in the b1 variable.
So every time new price appears, the indicator will be recalculated and b1 will be updated?
Good evening,
Please advise on a general question.
TheExpert Advisor Ais written. There is only indicator B inside it. In the onTick section the calculated indicator value is saved in the b1 variable.
So every time new price appears, the indicator will be recalculated and b1 will be updated?
Good day!
Dear forum members, I would like to know what exactly is meant by a "tick" in metatrader4. Is it a Bid or Ask price change? Or it makes no difference whether the tick handler is triggered in both cases?
Good day!
Dear forum members, I would like to know what exactly is meant by a "tick" in metatrader4. Is it a Bid or Ask price change? Or it makes no difference whether the tick handler is triggered in both cases?
Good day!
Dear forum members, I would like to know what exactly is meant by a "tick" in metatrader4. Is it a Bid or Ask price change? Or there is no difference and in both cases the tick handler will work?
OnTick misses 50-70% of price changes (last) comparing to OnBookEvent. I don't quite understand who needs it and why they need it at all. The documentation says right away that several ticks can come to the terminal simultaneously and create only one ontick event.
In theory, it's more reasonable to use OnBookEvent and then filter out the necessary changes.
But I have a problem here too. It looks like this:
The result is about the following:
I.e. last is different but the flag is notTICK_FLAG_LAST.
What am I doing wrong?