Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
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