Forum

Need help: selecting a specific open trade from many available open trades

Hi everyone, I have an EA which opens 2 trades simultaneously for a pair. i have also ensured that when a pair is trading, no new trades on the same pair is opened but trades for other pairs are allowed. simply put i want a maximum of 4 pairs (8 in total) to be traded simultaneously. 1. To avoid

Prevent ordering of a new trade within same candle after having closed a trade in that same candle

Hi all, I'm using the below code to prevent any new Order from being sent if there is already an Order sent to server within the same candle. This code works fine...... <SNIP> similarly i substituted the lastorderbartime to lastclosebartime hoping that i could use the same code to prevent a new

Creating a fixed value from variables after entering a trade.

Greetings again to all community members... i would really appreciate some assistance on a problem that has been making me crack my head for too long without any success... maybe its just a simple tweek for some but being a newcomer this is a bit tough for me. my problem is... 1. Im not using a

how to get the profit for recent trading.

Greetings.... In my trading strategy, i'm only allowing a max loss 0f 20% from initial deposit for a specific period, and upon reaching a profit level ..lets say 15%, the trade criteria will follow a new sets of lotsize and other set parameters specific to a higher band and no new trades shall be

Gold Symbol in EA for MT4

hi, i have written a simple EA which works nicely with Currency pairs namely EURUSD and GBPUSD with reasonable profits...im however not sure how to code the Symbol for Gold trading as the XAUUSD doesnt seem to work at all. appreciate if someone could advise the correct symbol to be used in the EA