Forum

How to enable/disable other users to add me to groups and channels

Hi, How do I enable/disable other users to add me to groups and channels on mql5

invalid stops error

I get an invalid stop error during the mql5 market validation process. I dont undertand why. I suspect it could be that the TP is too close to current price +/- broker stop level. I use the below code to to adjust TP to match broker conditions. I dont know what else could be causing the error. Any

custom symbol fixed spread

Hi, I am trying to get the startegy tester to use a fixed spread on a custom symbol . I have set the settings in the symbol to have a spread of 1 but still the symbol uses floating variable spread in the tester. Does anyone know how to solve this

get mt4 build version

I am trying to store the mt4 build in a variable on an EA im working on. I have tried to write a comment with the following code to get the build number : Comment(" __MQLBUILD__ = ",__MQLBUILD__," __FILE__ = ",__FILE__); The outputs are not the same as the mt4 build number as you can see on the

Mt5 Optimisation - Agents finishes tasks and disables automaticlly

When running an optimisation in mt5 each agent automatically gets a certain number of tasks assigned. Once those tasks are passed by an induvidual agent, that specific agent stops working. However, the optimisation is less than 5% complete. How can I make sure that non of my agents become inactive

mt5 and mt4 backtest completely different

I made a simple EA and tried to backtest it both on mt4 and mt5. The results are completly different. On mt4 I use " every tick " and variable spreads with tick data from tickdata suite and in mt5 i use "every tick based on real ticks". Does anyone know why this is happening

copy from mt5 optimisation results to excel sheet

Hi, how do I copy individual lines of cells from the optimisation results in mt5, so that i can paste it into an excel sheet? In mt4 you can simply right click on any of the optimisation results and copy the line of cells. In mt5 there is no such option

Importing tick data to mt5

Hi, im using tick data suite to backtest in mt4. I am now trying to move to mt5 and would like to import the tick data from tick data suite into mt5. In the settings of tick data suite i need to specify if i want to export the data with GMT offset and with or without DST. My broker is +2 GMT and

Beginners question

Im trying to figure out how the NormalizeDouble function works. Can someone see what i do wrong here? The returned value from line 3 and 4 from the NormalizeDouble function is 0 instead of a rounded number as expected.. double SLBuyLevel = Low[ 1 ]- 20 * Point ; double SLBuyDif = Close[ 1

ATR based TP and SL

I am trying to implement an ATR based SL and TP. I have run into a dead end though and cant figure out where the mistake is. The code compiles but when i use the ATR SL and TP in the OrderSend() no trades are executed. If i set the TP and SL to a fixed amount of pips then orders are opened. I have