Forum

Any one with idea to get the code working properly

I use this code to disallow more than 2 EA on one mt4 terminal but its operations is not consistent,pls any assistance. Thanks string GLOBAL_NAME = "myeaname" ; int init() { //... GlobalVariableSet (GLOBAL_NAME, WindowHandle( Symbol (), Period ())); return ( 0 ); } int nameea = 0 ; int

Disallow multiple EA instances in one terminal

am trying to disallow multiple running of EAs in one terminal and am finding alittle bit hard.. i have try to use this code but it rather terminate my current EA name on the chart .. #include <WinUser32.mqh> int hndl = WindowHandle( Symbol (), Period ()); if (WindowExpertName() == "niceprofit" )

how to open only 3pairs on a window.pls help

pls can someone help me, i want my EA to open only 4pairs or symbol on a window and ignore other entries on other pairs since maximum require position on pairs is reached...thanks i did this but dont think it worked ,any other code help is high appreciated..thanks if ( OrderSymbol ()> 3 ) {

pls I need your assistance on this EA waiting times

Pls can someone explain this senerio pls,I use this code to tell make the EA wait for some seconds but my problem is when its Attached to each symbol said like EURUSD, and gbpusd after number of wait is completed it loop in to another pair time and Made the pair to wait again ,there by creating

how to open 1 position per direction trend...

Pls I have few difficulties implementing this program line... I want assistance on if ma1 crosses ma2 ---open buy,don't open again till another cross for Sell... Now this is my code If(ma1 > ma2 && bid < OrderOpenprice()) "Open buy" My question is a help to return only 1 buy per direction. Thanks

don't trade if spread is high...pls assistance

Pls I need assistance on this code,if spread high is...return...No trade..But the problem is return (0) is added on the EA code it will not open any order again,but is I remove it Will start working again without regulating the high spread,this is the code..Any corrects pls.thanks double Spread =

how to copy exactly signal providers lot zise .

please i want you to help me on how to copy trade on mql5.com with same lot with the signal provider .... irrespective of my fund are higher or lower. for example if the signal provider open position 0.01 ==== mine will be 0.01 or 0.1 if the signal provider open with 0.03 ===== mine will be 0.03 or

please can someone help me to calculate this lot formular....

please i am looking for a way to get my lot calculation step like this 0.1, 0.2, 0.4, 0.6, 0.8, 0.10 etc but i fine it had to code out instead i get 0.01, 2.00, 4.00, 6.00, 8.00, 10.00 etc please can someone help me make it like this === 0.1, 0.2, 0.4, 0.6, 0.8, 0.10 below is what i have done so far

urgent help needed please

pls why is my order select printing "no order selected" i have try everything both google search yet i can fix this problem i use this orderselect on sell and it works fine but on buy it does not work pls help me, below is my code. pls note that i use this orderselect to open only buy order below

OrderOpenPrice() not working for buy low

please can someone tell me the reason why order ask < OrderOpenPrice()--------->buy is not working. i have been using the function for long to open buy low but suddenly i discovered my ea is no longer opening buy order anymore but open sell very well which i sell high like bid > OrderOpenPrice()