Tuesday, May 10, 2011

Put a stop to it, S&C May 2011 S&C - pro real time formulas' proposal

Messaggio da msucci@hotmail.it - Google docs
Putting a stop to it Free article Stock & Commodities, April 2011 More Exit, Less Entry  by David Garrard 
  Money Management








Fai clic per aprire:

Google Documenti semplifica la creazione, la memorizzazione e la condivisione di documenti, fogli di lavoro e presentazioni online.






// by Stocks & Commodities, april 2011
// by David Garrard
// indicators that can be used as stop indicators:
// 1) SMA 10
// 2) Supertrend (0,85; 10)
// 3) ATR (this one*) of last n-bars 14
// 4) lowest or highest value of last m-bars (20) (and this one*)

if CustomClose >= Supertrend[0.85,10] then
    stop1 = customclose + AverageTrueRange[n](customclose)
else
    stop1 = customclose - AverageTrueRange[n](customclose)
endif

if CustomClose >= Supertrend[0.85,10] then
    stop2 = highest[m]
else
    stop2 = lowest[m]
endif

return stop1 as "Stop_ATR", stop2 as "Stop_hi_lw.est"

//AS STOP LOSS INDICATOR is not good
//better Supetrend or SMA10: in particular, the first one is closer to price of 3-400 points (and give no bad results)
// this Mean that ATR-Stop indicator or highest/lowest of n-bar for stop are too large!

// AS STOP PROFIT INDICATOR is very good, expecially with highest -lowest of m-bars!!!!!!!!!!!
//for gaining keep prudentially the nearest of 2 indicators. Or better: high-low until you are distant, then ATR-Stop in trending markets.
// N=20 and m=20 of default are good indications (and their variation does not vary too much final results)


================================================================

///****with Vortex version as "tester"***

myVIp = CALL Vortexplus[k]
myVIm = CALL Vortexminus[k]

if myVIp >= myVIm then
    stop1 = customclose + AverageTrueRange[n](customclose)
else
    stop1 = customclose - AverageTrueRange[n](customclose)
endif

if myVIp >= myVIm then
    stop2 = highest[m]
else
    stop2 = lowest[m]
endif

return stop1 as "Stop_ATR", stop2 as "Stop_hi_lw.est"

//default k = 11, n = 14, m = 20.

==============================================================
very interesting this image


Any source

No comments:

Post a Comment