Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
Dear Codersguru,
Could you please help look into my EA below. Its work perfectly fine in backtesting but not on live demo trading account. They is no buy or sell action at all after the crosses. Thank you very much.
//+------------------------------------------------------------------+
//| 5/13-v2-SOS.mq4 |
//+------------------------------------------------------------------+
extern int Unique_Ref_Number=513;
extern int TakeProfit = 5;
extern int StopLoss=5;
extern double Lots = 1;
extern int Max_Contracts = 1;
extern int emaShortPeriod=5;
extern int emaLongPeriod=13;
extern bool MoneyManagement=true;
extern int Risk=2;
int init() { return(0); }
int deinit() { return(0); }
that's not right, you can look post 516 on page 52
the way you calculate lowest of indicator is not correct
PHP Code:
double lowestFG=9999, highestFG=-9999;//FG short for Forex_Grail, the name of my indicator histogram file. int currentBar=0; int endBar=4; for(currentBar=0;currentBar<endBar; currentBar++) lowestFG=MathMin(lowestFG, iForex_Grail(Symbol(),0,17,PRICE_CLOSE,currentBar)); //0 = anytime, 17 = maperiod of indicator.
if lowestFG <= 0 then go to next statement
Does this read right??
Dave
When I put this into my EA program, it says the iForex_Grail - function is not defined?? Forex_Grail is the name of my custom indicator.
Maybe it is to be stated: lowestFG=MathMin(lowestFG, iCustom(NULL,0,"Forex-Grail Trade Indicator",period,PRICE_CLOSE,currentBar)); ??