Forum

Stuck on my first EA

Hello Everybody. I am messing around with my first EA but I do not have the knowledge to do what I am trying to do. I am trying to add a section to my EA that will do the following action: Look at all open trades (All trades are long, no short positions in the EA) If the trades are showing a

Using a Delay in an EA script.

I was courious if there were a line of code I could place at the bottom of an EA script to make it pause for "X" ammount of time. For Example: My script can open up to 5 positions based on the entry rules but...I do not want entries to be too close. is there any way to either pause the EA, or make

Please Help w/ code for number of open trades per Pair

I am tring to switch this code, so I can have 2 EAs running. One on EUR/USD and the other on USD/CHF. I would like it to check all open orders and have a max of 3 open order for each currency. Could someone please assist. I think it would have to do with the "total" lines...but I cant make it work

Return Starting Price of last order ??

Hello everybody, I am trying to make my EA do a little hedgeing under certain conditions. I have my buy orders happening at the correct time, I would like the EA to open sell orders when: //Open Sell if(Ask = Last Orders Start Price - 0.0025) code code code...open sell (I have this part done). Any

Is this possible ?

If I am using a Moving Average based on Closing Price. Is there a way for it to only compare the last two digits of the Indicator ? For Example: We have the current Bar, We have the bar previous to that (Close1) and the bar previous to that one (Close2). If Close1 = 1.2058 and Close2 = 1.2042 Is

Please Help with Price reconition

Hello Everybody, I am new to this forum...and I would say I have the basics of writing an EA. I have 95% completed an EA but I have run into a situation that I cannot seem to resolve. The EA uses a simple Moving average to dictate when trades are generated. This moving average has to have certian