DAX mini strategy - Contrarian orders accumulation (sellshort) tf = 12h

Category: Strategies By: DEIO Created: March 20, 2017, 10:25 AM
March 20, 2017, 10:25 AM
Strategies
3 Comments

hi,

I am a new user and wanted to post a very simple strategy which wait and accumulate, based on a supertrend indicator (but this is the less important aspect… you can use any other indicator you like).

The system accumulate when the performance is less then 6% and take profit when greater than 0.6%.

Obviously the results seems to be great….. but it’s risky (high potential drawdown).

I set the system to work at lunch time (because it’s comfortable for my needs).

You can change the time frame according to take profit/accumulate parameters and you can obtain various results….

If you want can turn the same strategy using “buy”.

No moneyManagement applied.

I would like to know your opinion about the strategy, but remember that I am at first experience….

🙂

code

//---------------------------------
//TF a 12 h
//dax min 1 Eur.
//---------------------------------
DEFPARAM cumulateorders = true

//margine = (close * 0.5 * POINTVALUE) /100
TIMEWORK = 070000
TIMESTOP = 210000
tp = 0.6
acc = 6
size = 1
IF TIME > TIMEWORK AND TIME < TIMESTOP THEN

 st = supertrend[3,5]
 st1 = supertrend[5,10]

 condopen = st > st1
 if not onmarket then
  if condopen then
   sellshort SIZE SHARES AT MARKET
  endif
 endif

 if shortonmarket then
  perf = (-close + POSITIONPRICE)/POSITIONPRICE * 100
  if perf > tp then
   exitshort at market
   perfc = (-close + POSITIONPRICE) * POINTVALUE * COUNTOFPOSITION *-1
   capitale = capitale + PERFC
  ELSE
   if perf < -acc then
    sellshort SIZE SHARES AT MARKET
   endif
  ENDIF
 ENDIF
ENDIF

 

thx to all

Download
Filename: DAX-contrarian-timeframe-12h.itf
Downloads: 168
DEIO Veteran
As an architect of digital worlds, my own description remains a mystery. Think of me as an undeclared variable, existing somewhere in the code.
Author’s Profile

Comments

Logo Logo
Loading...