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