| New signals service! | |
|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
the asctrend expert works a similar way.. but with asctrend as indicator.. ASCTrend system
post your indicator, let us look ![]() |
|
||||
|
Hi t0shiba, could you check this Universal MA Cross EA ? Maybe the EA could help you a bit. Thank you
![]()
__________________
David Michael H "Trader helps traders with sincerity, honesty and integrity" |
|
|||
|
Check symbol and EA magicnumber
Hi
Thanks codersguru The following also checks the symbol and magicnumber (I hope)- so one doesn't get one's ea messing with each other Code:
double GetLastProfit(string symbol1,int magicEA )
{
int total = HistoryTotal();
datetime cur_order = 0;
datetime last_order=0;
double profit=0;
for(int cnt = 0 ; cnt < total ; cnt++)
{
OrderSelect(cnt,SELECT_BY_POS,MODE_HISTORY);
if(OrderSymbol()!= symbol1 || OrderMagicNumber() != magicEA) continue;
cur_order = OrderCloseTime();
if(cur_order>last_order)
{
last_order = cur_order;
profit = OrderProfit();
}
}
return (profit);
}
Last edited by cardio; 05-06-2006 at 04:05 AM. |
|
|||
|
how long does history last
Hi
If my machine shuts down and I have to restart my ea - will functions like OrderSelect(cnt,SELECT_BY_POS,MODE_HISTORY); - still bring back valid orders - or are these orders only valid for a session of metaquotes? Any ideas? I now realize I will have to modify my ea's so that my public variables get persisted to file - and give the user an option to read them back if the user has to restart his machine. |
|
||||
|
Trying to code alert into 3 Line Break indicator
I'm trying to code the 3 Line Break indicator to show a change in trend when it changes color. My programming skills are not good and I'm trying to get it to give an audible and visual alert like "the trend has changed to up". I'm trying to go through the programming lessons and I am seeing if anyone can give some assistance. Thanks.
DeSoft |
|
|||
|
Code Needed to set Time to Trade in EA
Hi, Can anyone help me with the code for the following:
I have an EA which I want to trade 3 times or less in a day dependin g on the time. The times are as follows (GMT+1), 08:00 - 12:00, 16:00 - 20:00 and 20:00 - 00:00 (the 20:00 to 00:00 should be optional). Could maybe set with TRUE/False values?? Any help much appreciated |
|
||||
|
extern bool OOAAT = false;
extern datetime allowtime = D'2006.05.17 00:00'; //-------------- ------------------------------------------------------------------- note : -OOAAT =open only after a time -to be more specific you can put other condition(s) in the big-italic-underline line hope this help |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to code this? | iscuba11 | Metatrader 4 mql 4 - Development course | 1 | 08-03-2007 04:22 PM |