FFCalMod - Updated news indicator / library with backtesting
-
sergiensergien
- Trader
- Posts: 14
- Joined: Sat Dec 28, 2013 10:39 am
FFCalMod - Updated news indicator / library with backtesting
-
bnorberto
- Posts: 1
- Joined: Tue Nov 12, 2013 2:26 pm
FFCalMod - Updated news indicator / library with backtesting
Hi,
Somebody have simple working ea where news filter is working while backtesting?
I have no error but also there is no upcomming news. I saw that files from www.dailyfx.com/files/... returns html bcz of file not found.
Somebody have simple working ea where news filter is working while backtesting?
I have no error but also there is no upcomming news. I saw that files from www.dailyfx.com/files/... returns html bcz of file not found.
- SpiderX
- Trader
- Posts: 554
- Joined: Thu Aug 22, 2013 4:50 pm
FFCalMod - Updated news indicator / library with backtesting
hi,
was just looking at integrating this into an EA.
Some of the codes need updating for Empty4 v600.
Notably: StringSubStr
Please see:
http://www.stevehopwoodforex.com/phpBB3 ... =15&t=3439
Cheers
was just looking at integrating this into an EA.
Some of the codes need updating for Empty4 v600.
Notably: StringSubStr
Please see:
http://www.stevehopwoodforex.com/phpBB3 ... =15&t=3439
Cheers
"Love is patient, love is kind. It does not envy, it does not boast, it is not proud. It does not dishonor others, it is not self-seeking, it is not easily angered, it keeps no record of wrongs.Love does not delight in evil but rejoices with the truth. It always protects, always trusts, always hopes, always perseveres."
-Corinthians 13:4-8
-Corinthians 13:4-8
-
michaeldz
- Trader
- Posts: 23
- Joined: Thu Nov 08, 2012 12:07 am
FFCalMod - Updated news indicator / library with backtesting
Hi!
Here is the code converted to newest MQ4. Seems to work OK, but I'm not 100% sure - the code is a bit complex and I'm not sure how it should work (I've never seen this indicator in action).
Big thanks to sergiensergien
Auto GMT zone/offset would be a nice addition, if somebody knows how to do it.
So far my idea is to set LocalGMTZone and BrokerGMTZone accordingly to:
datetime UserGMTOffset = TimeGMT() - TimeLocal(); // returns GMT offset of local time
datetime ServerGMTOffset = TimeGMT() - TimeCurrent(); // returns GMT offset of servers time
However it will not work on weekends (TimeCurrent).
P.S. Fixed code can be probably downloaded here, if someone has the access:
http://www.forex-tsd.com/advanced-elite ... s-315.html
Here is the code converted to newest MQ4. Seems to work OK, but I'm not 100% sure - the code is a bit complex and I'm not sure how it should work (I've never seen this indicator in action).
Big thanks to sergiensergien
Auto GMT zone/offset would be a nice addition, if somebody knows how to do it.
So far my idea is to set LocalGMTZone and BrokerGMTZone accordingly to:
datetime UserGMTOffset = TimeGMT() - TimeLocal(); // returns GMT offset of local time
datetime ServerGMTOffset = TimeGMT() - TimeCurrent(); // returns GMT offset of servers time
However it will not work on weekends (TimeCurrent).
P.S. Fixed code can be probably downloaded here, if someone has the access:
http://www.forex-tsd.com/advanced-elite ... s-315.html
You do not have the required permissions to view the files attached to this post.
-
Pago
- Posts: 2
- Joined: Tue Sep 02, 2014 9:51 am
FFCalMod - Updated news indicator / library with backtesting
Tank you very much for the nice indi.
I try it on the backtester but it doesn´t work. Could you fix this bug please?!
Or did you have an idee where this bug could be, co I could fix it myself.
I try it on the backtester but it doesn´t work. Could you fix this bug please?!
Or did you have an idee where this bug could be, co I could fix it myself.
- milanese
- TechAdmin
- Posts: 3293
- Joined: Wed Jan 09, 2013 9:02 am
- Location: btr rdx, r8 +
FFCalMod - Updated news indicator / library with backtesting
News- indicators can not be backtested..Pago » Tue Sep 02, 2014 4:04 pm wrote:Tank you very much for the nice indi.
I try it on the backtester but it doesn´t work. Could you fix this bug please?!
Or did you have an idee where this bug could be, co I could fix it myself.
Cheers
Tommaso
Global Prime is the official SHF broker 
Searching for Servers and Workstations with individual configuration?
Just PM
Click here to go to the BoardKnowledgeBase
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
Searching for Servers and Workstations with individual configuration?
Just PM
NOTE: Cookies and JavaScript are required for the using the board, with full functionality
-
sergiensergien
- Trader
- Posts: 14
- Joined: Sat Dec 28, 2013 10:39 am
FFCalMod - Updated news indicator / library with backtesting
Sorry to not agree with you, Tommaso.milanese » Tue Sep 02, 2014 5:31 pm wrote:News- indicators can not be backtested..Pago » Tue Sep 02, 2014 4:04 pm wrote:Tank you very much for the nice indi.
I try it on the backtester but it doesn´t work. Could you fix this bug please?!
Or did you have an idee where this bug could be, co I could fix it myself.
Cheers
Tommaso
I added a way into this EA to be able to be backtested. To do so the EA under test has to write the Current Time into a variable called "_TimeReference". It is only needed to put this into the main loop of the EA:
Code: Select all
GlobalVariableSet ("_TimeReference", (double)TimeCurrent());If you only need how the indicator performed in the past just use a dummy EA with the following code:
Code: Select all
void OnTick() {
GlobalVariableSet ("_TimeReference", (double)TimeCurrent());
}Cheers,
Sergien
-
Pago
- Posts: 2
- Joined: Tue Sep 02, 2014 9:51 am
FFCalMod - Updated news indicator / library with backtesting
The indi download the history 01.06.2014 - 02.09.2014 but it show during the backtest only from 08.08.2014
to 02.09.2014. The news history from 01.06.2014 to 07.08.2014 is missing.
to 02.09.2014. The news history from 01.06.2014 to 07.08.2014 is missing.
-
BeLikeWater
- Posts: 2
- Joined: Sat Nov 08, 2014 7:59 pm
FFCalMod - Updated news indicator / library with backtesting
Hello I have download 20g version and Im not able to make it work, Im going to try with the 20h BETA version now.
I see that .CSV files ended in 2014, how I make to have the files that are missing?
Thank you
Good work! Im looking to make this work!
I see that .CSV files ended in 2014, how I make to have the files that are missing?
Thank you
Good work! Im looking to make this work!
-
BeLikeWater
- Posts: 2
- Joined: Sat Nov 08, 2014 7:59 pm
FFCalMod - Updated news indicator / library with backtesting
What does mean IsEA_Call input?
Thank you!
Thank you!