Codes

The intersections of two lines for MetaTrader 4

In MetaTrader 4, we intend to calculate the intersection coordinates of two straight line objects with different slopes using MQL4

Send a message from metatrader to telegram for MetaTrader 4

With this script, you can send a message from MetaTrader 4 to Telegram

Forum

Bug in documentation about ObjectMove function

In here: https://docs.mql4.com/objects/objectmove written: ObjectMove The function changes coordinates of the specified anchor point of the object at the specified chart. There are two variants of the function: bool ObjectMove ( string object_name, // object name int point_index

ChartIndicatorDelete does can delete any indicators?

I tested these sample codes for delete indicator on the chart: mql4: https://docs.mql4.com/chart_operations/chartindicatordelete mql5: https://www.mql5.com/en/docs/chart_operations/chartindicatordelete The "ChartIndicatorDelete" function works for delete self indicator. But can not delete another

Different results ObjectGetShiftByValue and ObjectGetShiftByValueMQL4 in MQL5

As mentioned here: https://www.mql5.com/fa/articles/81 To get the number of candles in the intersection of a line and a price, in MQL5, instead of the ObjectGetShiftByValue function, I used ObjectGetShiftByValueMQL4 , the code of which is suggested as follows: int ObjectGetShiftByValueMQL4( string

In Strategy Tester, what is the way to check the permissibly of trade?

In MQL5, to test allowed trade symbol, I will try the following command: SymbolInfoInteger ( _Symbol , SYMBOL_TRADE_MODE ) In real terms, the value of 0 is equivalent to SYMBOL_TRADE_MODE_DISABLED. But in the tester, the value of 4 equals SYMBOL_TRADE_MODE_FULL. It's incorrect. In Strategy Tester