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 have never used this statement before and now I shall add this to my collection for future reference. You made my day, and now I can proceed with my logic for my EA.
May God Bless You and give you a Long and Healthy Life!
I have problem with my EA, I use buystop and sellstop with TP.
In by backtest, most of times it could execute with no problem but other times it's error INVALID_STOPS (130)
I already check when it's error, my active price and pending position in acceptable range.
What happen ?
I have problem with my EA, I use buystop and sellstop with TP.
In by backtest, most of times it could execute with no problem but other times it's error INVALID_STOPS (130)
I already check when it's error, my active price and pending position in acceptable range.
What happen ?
Thanks in advance
Try to use NormalizeDouble(price,Digits). Sometimes price of metatrader is not 1.2000 but 1.20020031023012 and the rest of the digits is a problem for metatrader when placing pending order. Use NormalizeDouble and it will be ok
__________________
You need proffesional mql coder? Contact me! I will help you!
........................................ http://www.fxservice.eu/
........................................
that gives me the highest bar back number, but I need a modified statement to work with the RSI. Any suggestions on this??
Dave
Here is the suggestion:
add your rsi values to an array, and then use ArrayMaximum and ArrayMinimum functions. They return index of array instead of value, so you will know which i is it.
__________________
You need proffesional mql coder? Contact me! I will help you!
........................................ http://www.fxservice.eu/
........................................
Try to use NormalizeDouble(price,Digits). Sometimes price of metatrader is not 1.2000 but 1.20020031023012 and the rest of the digits is a problem for metatrader when placing pending order. Use NormalizeDouble and it will be ok
i had a problem , how to make only 1 position open and 2 pending.
let just say Buy and Buystop , Sellstop.
i had an info before from someone in mql4, he use :
if(buystoporder>0 && sellstoporder>0)return(0);
and before that , he use switch(OrderType()).
I am confuse , where do i have to change the code?
i am ended in the buystop and sellstop open several times when i change the code, while if not, it wait until one is trigerred , reach their SL or TP and then make a new 2 pending.
My goal is 1 open and 2 pending, so when the open reach the SL or TP, one of the pending is trigerred, one isnot trigerred will be deleted. and make another 2 pending.
and Is it possible to put magic number in switch() option?
Greatly thanks for your help.
Last edited by Kieruwin; 04-07-2008 at 06:59 AM.
Reason: no response