Webinars

Free Registeration for:

Monday session
Wednesday session
Thursday session

ForeXecutor


Free ForeXecutor Demo Account

Optimized ForeXecutor Scripts Bonus**

I thought today I would give you a script that I optimized for a few of the charts. So here it is. Feel free to try it with other charts and do some optimizing for your self.**


GBPUSD 15 minute Charts

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, 180, 3)) then
buysellzone=-1
lastBreakPrice=close
endif

if (Low[0]<= BLG_L[0](Close, 180, 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(60))
endif

if issellposition then
addsellexit OVER = lastBreakPriceBS+ Point(60))
endif

Make sure you do your own back testing and optimization. It’s important that you understand what is happening with your strategies. Never trade something you don’t understand.**

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."