| 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 |
|
|||
|
Quote:
Dont forget to add the "m" or whatever is after the pair name if your broker add. FerruFx
__________________
THE HEART of FOREX & THE PROBABILITY METER - Trade with 100% confidence and ... Stress Less!!! Coding services: Experts Advisors, indicators, alerts, etc ... more info by PM NEW: video presentation of the Probability Meter ... 24hrs action on the website |
|
|||
|
This function will do the trick...
Code:
bool NewBar() {
static datetime LastTime = 0;
if (Time[0] != LastTime) {
LastTime = Time[0];
return (true);
} else
return (false);
}
__________________
Build An Expert Advisor. FREE E-course As Seen On TV ![]() ForexArea.com Users of Gap Trader from 'Forex-Assistant' MUST Read This |
|
|||
|
How to close open positions at Friday market close
How can I know when the market is say an hour from the Friday closing or right at market close? I use demo accounts with two different brokers and they are on different server times and I would like to code my EA to close all open positions before the Friday market close. This is just for testing puposes but it is something I would like to know regardless. I don't want to hard code a time due to the fact that different brokers use different server times. Is this possible? I know I can detect market opening but due to the gap behavior seen at times on market openings I would be more comfortable closing positions before the Friday market close.
Thanks! |
|
|||
|
Hi ,
Is any way to pass one indicator variable to an expert advisor? For example if I have 2 moving averages and one cross the other or one is greater than other and store them in 2 variables in my indicator as MA1 and MA2. Is it possible to call these variables to expert advisor? Note: I don't want to put the code of Moving averages in the expert advisor , generally I want to take some variables from indicator and put in an expert advisor. (Something like read the variable from memory). Thank you very much. |
|
|||
|
Quote:
Or for the standard indicators, use their standard functions. Example for MA: iMA(......); FerruFx
__________________
THE HEART of FOREX & THE PROBABILITY METER - Trade with 100% confidence and ... Stress Less!!! Coding services: Experts Advisors, indicators, alerts, etc ... more info by PM NEW: video presentation of the Probability Meter ... 24hrs action on the website |
|
|||
|
How to remove text from Custom Indicators
Hi,
Just a quick question, does anyone know if there is a piece of code I can use so the text and values do not appear on the custom indicator window, as in the pic below. thanks |
|
||||
|
By giving a NULL value to the desired buffer: SetIndexLabel(X,NULL);
__________________
|
![]() |
| Bookmarks |
| Tags |
| automated close order, close, eas, forex, learn mql4, learn mql4 video, mql4 learning, OrderCloseBy, profit, reach, secure profit function, T101_v1.11_orest_IBFXm.mq4, learning mql4 |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Learning Cycles For New Traders | Dan7974 | General Discussion | 350 | 01-18-2008 07:04 PM |
| Learning to code for autotrading | GoatT | Metatrader Programming | 8 | 01-10-2007 09:55 PM |
| Self learning expert | mrtools | Expert Advisors - Metatrader 4 | 32 | 10-22-2006 06:29 PM |