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.
Need the code to stop the open of positions after a certain time
I've already seen all the posts in this section and I've made a research on all the forum using the google search tool at the top of the forum, but what I've found is not exactly what I'm looking for.
What I need is a code that I have to implement in my EA that stops to open new position after a certain hour, for example after 15 GMT. This parameter should be a setting that I can modify from the user panel.
It would be great if I could set a period of time in which the EA can open the positions, so
I've already seen all the posts in this section and I've made a research on all the forum using the google search tool at the top of the forum, but what I've found is not exactly what I'm looking for.
What I need is a code that I have to implement in my EA that stops to open new position after a certain hour, for example after 15 GMT. This parameter should be a setting that I can modify from the user panel.
It would be great if I could set a period of time in which the EA can open the positions, so
I use trend envelope but during up movement the buffer about trendenvelope short write 254564115 strange number so i use a simple code to put it at zero, there is another way withouth force it to 0?
Code:
TrendEnvUp = iCustom(NULL,0,IndicatorName4,2,0,0,0,0,0,0,0); // trendenvelopes
TrendEnvDown = iCustom(NULL,0,IndicatorName4,2,0,0,0,0,0,1,0); // trendenvelopes
if (TrendEnvUp > 10)
TrendEnvUp=0;
if (TrendEnvDown > 10)
TrendEnvDown=0;
I have another simple questio, that I can't solve.
I would like to open multiposition for every signal that I receive. Exactly I would like to open 3 position for every signal, what's the code to do this.
Regards
This will do it.
If it's only for the print function, no arrays needed.
If you need it for drawing lines, you need something else to activate the buffers.
and the for() function needs to count up, not down.