| 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 |
|
||||
|
Some code to see if trades were opened today. You would need to add one for each symbol but it works.
Code:
int OKToTrade()
{int i;
int Traded=0;
int Bar;
string TradeDay,CurrentDay;
for (i=0;i<OrdersTotal();i++)
if (CancelOppositeIfOpened==true)
{
//---- check selection result
if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)==true)
{
TradeDay = TimeToStr(OrderOpenTime(),TIME_DATE);
CurrentDay = TimeToStr(TimeCurrent(),TIME_DATE);
if (TradeDay == CurrentDay)Traded++;
}
}
return(Traded);
}
int OKToTrade1()
{int i;
int Traded=0;
int hstTotal=HistoryTotal();
int Bar;
string TradeDay,CurrentDay;
if (CancelOppositeIfOpened==true)
for(i=0;i<hstTotal;i++)
{
//---- check selection result
if(OrderSelect(i,SELECT_BY_POS,MODE_HISTORY)==true)
{
TradeDay = TimeToStr(OrderOpenTime(),TIME_DATE);
CurrentDay = TimeToStr(TimeCurrent(),TIME_DATE);
if (TradeDay == CurrentDay && OrderMagicNumber()==MagicNumber)Traded++;
}
}
return(Traded);
}
|
|
||||
|
Thanks CEO!
Thanks for the code snippet CEO. I heard you had been ill some time back and I pray and trust you're doing well now! I'm hoping we can find someone who is willing to give this a go and produce a working EA to test the theory.
To answer your question Sameer, you could probably use this with more pairs, but when you go beyond the four majors, things get more complicated in terms of gauging the underlying correlations at play. You could make it more profitable, but you could also make it very UNprofitable. If we had a working EA, we could try this on as many pairs as you like using forward demo testing. Again, any takers? ![]()
__________________
\o/ In Christ Alone! Pipskateer |
|
||||
|
One more FreedomRocks
Hi,
What you guys know about freedom rocks? Is it a good service? Are their results real or not? I'm asking this for one of my friends not for me. I'm not interested but just asking before my friend goes with them... Thanks Have a nice day ![]() |
|
||||
|
Freedom Rocks is NOT a scam, but they ARE a multi-level marketing company, much like Amway, Quistar, or the rest of them. I don't like MLM's simply because there is ALWAYS a conflict of interest. Whenever someone says to you "this is a great product", always ask of them, "what do you get for selling it to me" and factor that in when considering how "great" the product is.
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Intraday Trading | HighFireTrend | Commercial Trading Systems and indicators | 2575 | Yesterday 08:29 PM |
| Boostrade intraday EAs | boostrade | Expert Advisors - Metatrader 4 | 2 | 04-06-2007 11:50 PM |