| Following a simple script(4) |
|
|
|
| Tuesday, 24 March 2009 18:51 | |||||||||
Today we’ll go over the actual entry’s created by the script. The first thing I want to remind you of are the global variables at the top of the script, specifically the ECA and ECB variables. In the following script theyrefer to the Moving Averages used in the script. You can see that the script is much easier to edit using this group of variable instead of having to look though all the lines and making sure you didn’t mess something up you weren’t supposed too. The lastBreakPrice is ahold over from the original script when it was designed to reference a 4 hr charts. We didn’t want multiple signals coming from the same 4 hr candle. Even though it isn’t used as long as we call the global variable in the script it won’t cause a problem. //crossover if buysellzone=-1 and lastBreakPricelastBreakPriceBS and CrossDown(ECA , ECB) and ECA < BLG_U[0](Close, 80, 2)) then AddSellEntry lastBreakPriceBS=lastBreakPrice ii=ii+2 ENDIF if buysellzone=1 and lastBreakPricelastBreakPriceBS and CrossUp(ECA , ECB) and ECA > BLG_L[0](Close, 80, 2)) then AddBuyEntry lastBreakPriceBS=lastBreakPrice hh=hh+2 ENDIF The idea is to begin to define a condition that is reliably efficient at returning points to you, and entry’s are the first step in that process. Don’t forget that once you start working with this script you can add lots of stuff after the Entry tag to filter the script’s entry’s. Tomorrow I will post the final version of the script optimized for the GBPJPY pair that provides the following results for a back tested 2 years.
Powered by !JoomlaComment 3.26
3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."
|








ECB