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 iiglobal int hhglobal lastBreakPriceglobal 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 breakoutif (High[0]>= BLG_U[0](Close, 120, 3)) thenbuysellzone=-1lastBreakPrice=closeendifif (Low[0]<= BLG_L[0](Close, 120, 3)) thenbuysellzone=1lastBreakPrice=closeendif//crossoverif buysellzone=-1 and lastBreakPricelastBreakPriceBSand CrossDown( EMA[0](Close, 10) , WMA[0](Close, 34) ) thenAddSellEntry Contract = "Sell["+ii+"]"lastBreakPriceBS=lastBreakPriceii=ii+1ENDIF if buysellzone=1 and lastBreakPricelastBreakPriceBSand CrossUp( EMA[0](Close, 10) , WMA[0](Close, 34) ) thenAddBuyEntry Contract = "Buy["+hh+"]"lastBreakPriceBS=lastBreakPricehh=hh+1ENDIF if isbuyposition thenaddbuyexit BElOW = lastBreakPriceBS - Point(20))endifif issellposition thenaddsellexit OVER = lastBreakPriceBS+ Point(20))endifFor 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 ba


 
forex sato

0 التعليقات: