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 found some interesting indicator.
Author is KimIV.
It is his website.
i-SignalOfTrade indicator.
Download from here (WinRar archive).
This indicator will signal to you about any trading events on your account: open the order, modify the order, hit stop loss or take profit, and so on. Just anything.
It will signal you by the following ways:
UseAlert=True - by alert in the window.
UseComment=True - comments on the chart.
UsePrint=False - write in log file.
UseSendMail=False - by email.
UseSound=True - by sound
I've seen EA/Scripts that close all open orders but I'm looking for and EA to close all open orders at a specified time. Anyone have an EA like this?
or can someone show me what code to change on an EA that opens orders to add code to close and order.
Thank you
EDIT: if anyone has an EA that Opens an order at a specified time then closes the order at another time can someone post here please.
Last edited by matrixebiz; 04-13-2008 at 02:12 AM.
this EA open trades at specified time, but not close at specified time.
I'm looking for the same code ( close all orders at specified time ) to built in exist EA's.
May be this help
Quote:
Originally Posted by matrixebiz
I've seen EA/Scripts that close all open orders but I'm looking for and EA to close all open orders at a specified time. Anyone have an EA like this?
or can someone show me what code to change on an EA that opens orders to add code to close and order.
Thank you
EDIT: if anyone has an EA that Opens an order at a specified time then closes the order at another time can someone post here please.
I'm still learning by copy and past, because I'm a totally newbie.
I need a function thats close all open trades at specified time.
I have try something.
Don't have any errors with compile. But with strategytester I have follow message:
Testgenerator: unmatched data error(volume limit 719 at 2008.03.27 12:30 exeeded
Testgenerator: unmatched data error(volume limit 135 at 2008.03.27 23:00 exeeded
Black thats the original code. That works
Blue thats what i i like to insert
Thanks for any help
//+-----------------------------------------------------------------------+
//| Check for close order conditions |
//+-----------------------------------------------------------------------+
void CheckForCloseConditions()
{
int ticket;
if (GetSignal()==2)
{
OrderClose(OrderTicket(),OrderLots(),Ask,3,Red);
return(0);
}
}
}
return(0);
}
//+-----------------------------------------------------------------------+
//| Check for close order conditions trailing |
//+-----------------------------------------------------------------------+
void CheckForCloseConditionsTrailing()
{
int ticket;
if (UseCloseTime){
if (!(Hour()>=CloseTime && Hour()>=CloseTime)) {
Comment("Time for close trade has come !");
return(0);
} else Comment("");
}else Comment("");
if (UseCloseTime){
if (!(Hour()>=CloseTime && Hour()>=CloseTime)) {
Comment("Time for close trailing trade has come !");
return(0);
} else Comment("");
}else Comment("");
What's mean with "global scope"? The variables in begin of script to define the parameters of indicators ect?
See attached # 1EA_Test_Template. I need this to test function of scripts.
Let it run in strategytester and it works.
Open Ea with MetaEditor and activate the inactive script after int start()
Now compile and let it run in strategytester, the EA don't trade. See the error message in journal.
Quote:
Originally Posted by matrixebiz
How do you fix a "'CloseHour' - expression on global scope not allowed" error?
Do script & Include files need to be compiled?
If so, do they need the full works, or can they be treated the same as an exe file? (Down load/Close Metatrader/Re-open)
Thanks guys
__________________
It ain't the length of the trend, it's what you do with it!