Forum

Strategy Tester Returning Wrong Tick Value

In an EA that I am developing in MQL5, I use the function SymbolInfoDouble(symbol, SYMBOL_TRADE_TICK_VALUE ) to get the tick value of pairs that I am trading. It gives me the correct tick value when I run the EA normally. However, when I run it on the strategy tester the function returns wrong tick

Retrieving the original SL of an open order

Dear All, Can someone please give me some clues as to how I could retrieve the original value of SL in an open order after the SL has been moved to BE or beyond? Please note I am using MQL4 and not MQL5. Thanks in advance, Jaya

Action on all charts when a button is pressed in one chart

Hello there, Can someone guide me on how to make an EA on each chart do something once when a button is pressed in any one of the charts in the same terminal? My guess is that I need to use Global Variables here. I am using MQL4 and not MQL5. Thanks in advance