| 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 (1) | Thread Tools | Display Modes |
|
|||
|
Bar count down with MTF indictaors
MTF = multi time frame indicators
double BarCountDownInSec() { double g; g=Time[0]+Period()*60-TimeCurrent(); return(g); } The above function gives the second count down for bars in the current chart. So if placed on a 5 min chart, it will show second count down for each 5 min bar. Q: How do I get seconds count down for a 15 minute bar (ie 3x 5 min bars), when I am in a 5 min chart, so a count down of 15 minutes from 6.00 to 6.15. then 6.15 to 6.30, while I am in a 5 min chart ??? |
|
||||
|
icustom problem
What is the string name of this indi that I should use for an iCustom part of an EA
I have tried MT4-LevelStop-Reverse-vBO-4 MT4-LevelStop-Reverse- MT4-LevelStop-Reverse vBO-4 vB0.4 vtsbh2483- MT4-LevelStop-Reverse-" + INDICATOR_VERSION + "( So I have no idea what to do next. or do I need to put in the ATRMode,Manual Mode etc String Names Any help would be great |
|
|||
|
Try the first on your list with a number zero 0 instead of a letter O for vB0-4.
Robert Quote:
|
|
|||
|
i tried this but it seems not to work.. i only want one trade per day..
Quote:
|
|
|||
|
Quote:
I check for trade closed today instead of open today. Usage in start is if (LastTradeClosedToday()) return(0); // code here to open new trades //+------------------------------------------------------------------+ //| LastTradeClosedToday | //| Check History to see if last trade closed today | //+------------------------------------------------------------------+ bool LastTradeClosedToday() { int cnt, total; bool Closed; total = HistoryTotal(); for (cnt = total - 1; cnt >= 0; cnt--) { OrderSelect (cnt, SELECT_BY_POS, MODE_HISTORY); if(OrderSymbol()!=Symbol()) continue; if (OrderMagicNumber() != MagicNumber) continue; Closed = false; if (OrderType() == OP_BUY) { if (TimeDay(OrderCloseTime()) == TimeDay(TimeCurrent())) { Closed = true; } cnt = 0; } if (OrderType() == OP_SELL) { if (TimeDay(OrderCloseTime()) == TimeDay(TimeCurrent())) { Closed = true; } cnt = 0; } } return (Closed); } |
|
|||
|
Quote:
|
![]() |
| Bookmarks |
| Tags |
| candle time, CHinGsMAroonCLK, coders guru, expert advisor, forex, how to code, I_XO_A_H, mechanical trading, trading |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/metatrader-programming/554-how-code.html
|
||||
| Posted By | For | Type | Date | |
| Need an experienced programmer? - Page 2 | Post #0 | Refback | 09-24-2008 07:24 AM | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to code this? | iscuba11 | Metatrader 4 mql 4 - Development course | 1 | 08-03-2007 05:22 PM |