Webinars

Free Registeration for:

Monday session
Wednesday session
Thursday session

ForeXecutor


Free ForeXecutor Demo Account

Exploring a simple script Final** PDF Print E-mail

Ok here is the script as we ended it. The settings are still solid though we removed some of the fluff once we decided on the settings and the script was finalized.**


global int ii
global int hh
global lastBreakPrice
global lastBreakPriceBS //the lastBreakPrice with buy/sell action
global int buysellzone  //-1 sell zone; 1 buy zone; replace getValue("4 hr.  40 day", issellposition)

BuyTakeProfit Point(50)
SellTakeProfit Point(50)

//approximate 4 hour BB breakout
if (High[0]>= BLG_U[0](Close, 120, 3)) then
buysellzone=-1
lastBreakPrice=close
endif

if (Low[0]<= BLG_L[0](Close, 120, 3)) then
buysellzone=1
lastBreakPrice=close
endif

//crossover
if buysellzone=-1 and lastBreakPricelastBreakPriceBS
and  CrossDown( EMA[0](Close, 10) , WMA[0](Close, 34) ) then
AddSellEntry Contract = "Sell["+ii+"]"
lastBreakPriceBS=lastBreakPrice
ii=ii+1
ENDIF

if buysellzone=1 and lastBreakPricelastBreakPriceBS
and  CrossUp( EMA[0](Close, 10) , WMA[0](Close, 34) ) then
AddBuyEntry Contract = "Buy["+hh+"]"
lastBreakPriceBS=lastBreakPrice
hh=hh+1
ENDIF

if isbuyposition then
addbuyexit BElOW = lastBreakPriceBS - Point(20))
endif

if issellposition then
addsellexit OVER = lastBreakPriceBS+ Point(20))
endif
For the GBPJP which it is optimized for here are the back tested results:**

forex daily chart


Here’s a shot of its equity line for the year starting with a zero balance.**
forex daily chart

Comments
Add New Search
+/-
Write comment
Name:
Email:
 
Website:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
 
Please input the anti-spam code that you can read in the image.

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."