Hey, I am want to set the expirationtime of a Pending stop order , depending of a bool and the starting time and ending time of aTimerange. The bool will be set during optimization (if i want a 24Hours expiration) while the rest, decides if the
How can i Install Metatrader 4 (especially together with the "metaquotes" Filder & " "terminal") in an external Drive? Everytime i do this, this Folder automatically migrates Back from (D:) to (C:) Both of These folders which are
Hello dear Mql-programmers, I got a problem in the following code. It should return a signal (long/short) if the smaller MA just got over the bigger MA and this signal should been kept until the price moves above the smaller MA to send the
If 90% of TP -> Set New SL-> Set new TP... But why does it not work??! It either works only for the SL but not for the TP if i hide the SL part-> it creates endless Takeprofits (everytime +210+210+210+210) <- actually after one
read above... I want too save time during backtests , so I only want to check it in OnInit(). Is that possible? Sadly the following doesnt work:( int OnInit () {StartOrder = OrderSend ( Symbol (), OP_BUY ,Lot, Ask , 10 , 0 , 0
What can I do? The EA opens an endless Amount of Orders ( and shows "error 1"& "error 130") (important -> MT4) int total= OrdersTotal (); LongOrder= 0 ; ShortOrder= 0 ; //If i delete this line it still opens endless orders