| Exploring a simple script** |
|
|
|
I decided that I want to talk about something that I have been working on for the last year, and after attending a seminar over the weekend, I decided to just do it. Someone said something to me that really stuck. I am going to paraphrase it, but here it is. You can give people whatever they want and very few of them are going to use it or be satisfied with it.
Normal 0 false false false EN-US X-NONE X-NONE 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)
//approximate 4 hour BB breakout if (High[0]>= BLG_U[0](Close, 80, 2)) then buysellzone=-1 lastBreakPrice=high[1] endif
if (Low[0]<= BLG_L[0](Close, 80, 2)) then buysellzone=1 lastBreakPrice=low[1] endif
//crossover if buysellzone=-1 and lastBreakPricelastBreakPriceBS and CrossDown(ECA , ECB) and ECA < BLG_U[0](Close, 80, 2)) then AddSellEntry lastBreakPriceBS=lastBreakPrice ii=ii+1 ENDIF
if buysellzone=1 and lastBreakPricelastBreakPriceBS and CrossUp(ECA , ECB) and ECA > BLG_L[0](Close, 80, 2)) then AddBuyEntry lastBreakPriceBS=lastBreakPrice hh=hh+1 ENDIF
if isbuyposition then addbuyexit BElOW = lastBreakPriceBS - Point(0)) endif
if issellposition then addsellexit OVER = lastBreakPriceBS+ Point(0)) endif
if isbuyposition and CrossDown( XCA, XCB) then addbuyexit endif
if issellposition and CrossUp( XCA, XCB) then addsellexit endif
Powered by !JoomlaComment 3.26
3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."
|







MA
