Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information
I'm not too clear on your question but if you're trying to phsyically change an external variable so that it will show up in your paramenters as changed then you can't do that. However if you change the value of an external variable from within your EA it stays changed until you recall the init function by either changing time frames, re-entering your external variables by looking them and pusing SAVE etc.
Not sure what you want to achieve but maybe take a look at global variables or consider writing values to a file.
Good luck
Lux
you got it right lux, sorry for not so clear... im not programmer and just learning to code this
Yes i'm trying to write the Extern variable
thank you for the save idea i like it... i'll try to make the EA save then load it nice.
hi all just learning to write an ea and am using 2 moving averages my second moving average on my chart will aloow me to apply price from previous indicator data but i cant find a way to do this in the code. any help here would be greatly appreciated.
I'm trying to write a very simple EA to execute one sell order at 09:00 hrs each day. When I backtest, it seems to execute multiple orders each day at 09:00hrs, between 1-7 orders per day. I was anticipating 1 order per day of the backtest data. I am testing against H1 data. Any help would be much appreciated:
You need to count the number of total orders for the current symbol that have the same magic number as the EA and if it's more than one don't open any more. Take a look in some EA's you already have and you'll find numerous examples of counting orders.
I'm newbie and I have another question about EA, i learned all lesson from codersguru and change a code a little bit for not using Trailing Stop, just open / close position when short EMA crosses long EMA, and I have one problem because the EA does not reverse the position. How to make code which would at the same time close Buy and open Sell ? ?
I'm newbie and I have another question about EA, i learned all lesson from codersguru and change a code a little bit for not using Trailing Stop, just open / close position when short EMA crosses long EMA, and I have one problem because the EA does not reverse the position. How to make code which would at the same time close Buy and open Sell ? ?
Yes, I too would like to either (a) learn how to write indicators/EA's in MT4 or (b) tell someone what I need and get them written. The main issue is that I tend to use about 6 major indicators over the main currencies. It would be helpful if instead of sounds, I could get a visual alert telling me the pair and necessary action, better would be switching to the chart concerned. Most mistakes are made because you either miss the activator or you forget the entry procedure. Any help welcome