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.
Does anybody know what i would use to limit the number of trades per signal ( i would like 1 trade per signal but am getting like 8 and the last one always is a loser)
I realize an EA can be made w/ multiple time frames, BUT can one be written w/ custom times ? I have an EA w/ MTF but I need custom times not default times so they don't "line up" that often.
How to end a order at the CLOSE of the current bar?
I tried:
if (Close[i] < Open[i])
but it did not work.
i'm totaly rookie in mql.
There is no way to know the last tick of a bar before the next bar opens. The "Close[0]" is always the last know bid, and a new bar starts at the first tick following the timeframe grid.
The first tick of a bar is easier to catch, you can use:
1) Volume[0] == 1
2) Bars() > PreviousBars
3) Time[0] > PreviousTime
The last one is the most reliable and the only one to be used on real account.
I said "most" because it may happen to be also wrong, for example in the case of deconnection. When the connection is retablished you might have lose 5 bars, then the first received bar is the current one, NOT the first missed one. The missed ones are coming after. So the times of the received bars are no more sorted ! Tkx MQ for this very intelligent behavior .
PS : But its also true that the missed bars are not tradables.
Last edited by Michel; 01-21-2009 at 10:56 PM.
Reason: addendum