Questions from Beginners MQL5 MT5 MetaTrader 5 - page 44

 
pusheax: You have to take into account the spread, which is constantly changing and distorting the picture????????
Sorry, I don't get it. The picture of what exactly is distorted by a non-permanent/varying spread?
 
pusheax:

Is it possible to make the spread on MetaQuotes-Demo server constant, because debugging, adjustment turns into a nightmare, you have to take into account the spread, which is constantly changing and distorts the picture????????

Floating spread is an unnecessary headache.

You go out in reality once in a while. and you won't have a headache.

 
papaklass:

The spread is a measure of liquidity. When liquidity falls, the spread widens. When liquidity increases, the spread narrows. That is the reality of life. It's a pity that you cannot work with it in the tester.

PS: The constant spread is absurd!

I can't get the indicator that calculates the cumulative price to coincide with the tester's price because of the spread.

I can not agree that the constant spread is absurd, I traded on NordFX, during the news release spread increased to 6000 pips,

Had to say goodbye to them. I can't get the indicator which calculates the cumulative price to match the tester's price because of the spread, I had to give them up.

Документация по MQL5: Стандартные константы, перечисления и структуры / Состояние окружения / Информация об инструменте
Документация по MQL5: Стандартные константы, перечисления и структуры / Состояние окружения / Информация об инструменте
  • www.mql5.com
Стандартные константы, перечисления и структуры / Состояние окружения / Информация об инструменте - Документация по MQL5
 

I've been thinking about the same question for two days. Has anyone thought longer and found the answer?

Question.

How can I write the value of iBBand volatility in MQL5?

That is, for a period of, say, 14 bars we need to write the condition that volatility of the bollinger is with the value ### on more than 7 bars out of 14. Also you can use 2 MAs (bodies 7 out of 14 bars cross 2 MAs with different periods ). Thanks in advance for the answers, because the beginner's brain is already boiling!

 
papaklass:
Would a code like this help you?

input double DLT 
if( mrate[i].high - mrate[i].low > delta )count++;

Должно быть связующее звено между DLT и delta ? При компиляции ссылается на delta. В целом - СПАСИБО - вышел из тупика. Остальное попробую сообразить самостоятельно.
 
Good evening! Happy autumn days, everyone. Tell me, let's say I have a function call in my code
ticket = OrderSendSELL(symb, "OP_SELL", Lot , NormalizeDouble( BID(symb), Digits_), slip, 0, 0, com, MagicNumber, 0, c);

Well, the call is short. Is it correct to put another function call in this call, like this

ticket = OrderSendSELL(symb, "OP_SELL",  GetLoti(   Risk,  ORDER_TYPE_SELL ,    symb , 1 , Lot  ), NormalizeDouble( BID(symb), Digits_), slip, 0, 0, com, MagicNumber, 0, c);
And it goes like this.

Would it be right? I'm sorry, I haven't mastered the functions yet, but I'm not sure about it. Answer, please!

 
Dimka-novitsek:

Will it be correct? I'm just, sorry, not yet familiar with the functions, so I'm not sure, am I? Answer me, please!

Yes, you can do it that way.
 
Thank you!
 
papaklass:
I was re-doing my code and missed the point you wrote. I fixed it this morning. Yes, delta should be written instead of DLT.
Thanks again ))))

Clarified. if(BBUp[i]-BBLow[i]>delta)count++; where BBUp, BBLow are output via indicator handles.

 
pusheax:

I can't get the indicator that calculates the cumulative price to match the tester price because of the spread.

I can't agree that a fixed spread is absurd, I traded at NordFX so during the news release the spread increased to 6000 pips,

yeah. how do you envision a fixed spread ?


If you want a fixed spread, go to the kitchen sandbox. In reality no one even guarantees you execution and volume availability.


Had to say goodbye to them. Trading manually with a floating spread is dangerous, you may not even notice that the spread has widened.

The kids have no idea how the market works.
Reason: