|
Exploring a simple script Final** |
|
|
|
|
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:**

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

|