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.
but the code didnt execute the order.. whats wrong with the code?
What is the returned error ? You also should numbered the error messages, but take care that if you have two errors, for example on order 2 and 5, you will display for the order 2 the error of the order 5.
What is the returned error ? You also should numbered the error messages, but take care that if you have two errors, for example on order 2 and 5, you will display for the order 2 the error of the order 5.
edited:
sorry.. i think the error is displayed in Expert window rite? And this is what I got after renaming the Error from 1 - 5...
You have the error " trade not allowed in the expert properties"
So hit ctrl-O, then tab "Expert Avisors" and select "Allow live trading"
BTW, renaming the variables will not erase the possibility of false information, you also need to check the error after each OrderSend() call and before the next one.
btw.. got another question.. ive also modified the mt4 default script to check if any trades opened using script above reach +10 pips.. If got any then close all 5 orders..
example..
Trade 1 lost
Trade 2 lost
Trade 3 +10 pips
Trade 4 Pending
Trade 5 Pending
then close all trades n delete all pending orders with magic no. 770..
can u please check whether the script below will do the job as planne?
btw.. got another question.. ive also modified the mt4 default script to check if any trades opened using script above reach +10 pips.. If got any then close all 5 orders..
example..
Trade 1 lost
Trade 2 lost
Trade 3 +10 pips
Trade 4 Pending
Trade 5 Pending
then close all trades n delete all pending orders with magic no. 770..
can u please check whether the script below will do the job as planne?
It seems it should work, just try it... But the programation is bad: if you have a trade with another MN, or a manual trade, you will enter in an endless loop (the while loop will never stop because you close only the orders fitting with a particular MN).
How do I find the number of the most recent bar back of the RSI that has the highest RSI and is also above 75, likewise the most number of the recent bar back of RSI that has the lowest RSI which is also below RSI of 25?
This has me puzzled! Can you help with the statement to solve this??
Much appreciation in advance for your time and effort!
How do I find the number of the most recent bar back of the RSI that has the highest RSI and is also above 75, likewise the most number of the recent bar back of RSI that has the lowest RSI which is also below RSI of 25?
This has me puzzled! Can you help with the statement to solve this??
Much appreciation in advance for your time and effort!