|
|||||||
| 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 |
|
||||
|
here it is
Period() |
|
||||
|
Quote:
Code:
string tf()
{
switch(Period())
{
case PERIOD_M1: return("M(1)");
case PERIOD_M5: return("M(5)");
case PERIOD_M15: return("M(15)");
case PERIOD_M30: return("M(30)");
case PERIOD_H1: return("H(1)");
case PERIOD_H4: return("H(4)");
case PERIOD_D1: return("D(1)");
case PERIOD_W1: return("W(1)");
case PERIOD_MN1: return("MN(1)");
default:return("Unknown timeframe");
}
}
__________________
You need proffesional mql coder? Contact me! I will help you! ........................................ http://www.fxservice.eu/ ........................................ |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Multi Timeframe Indicators | keris2112 | Indicators - Metatrader 4 | 2280 | 07-04-2008 09:22 PM |
| Multiple Timeframe indicator | kaarem | General Discussion | 2 | 04-06-2007 03:56 PM |
| get current timeframe () or the like.. | arm73c05 | Metatrader 4 | 3 | 02-21-2007 07:51 PM |
| Timeframe / Shift | divergence_trader | Metatrader 4 | 2 | 02-12-2007 01:04 PM |