Ontvang nu dagelijks onze kooptips!

word abonnee
Van beleggers
voor beleggers
desktop iconMarkt Monitor

VendexKBB« Terug naar discussie overzicht

Leviatan

40 Posts
Pagina: 1 2 »» | Laatste | Omlaag ↓
  1. [verwijderd] 21 februari 2009 11:21
    Pimping and Pumping up to 51%

    -------------------------------> after

    indicator1 = AverageTrueRange[14](close)
    c1 = (indicator1 >1.3)
    c2 = (indicator1 <1.1)

    if intradayBarindex = 1 then
    up = highest[2](high)
    down=lowest[2](low)
    endif

    if intradaybarindex >0 and Time < 160001 and C1 then
    if close > up then
    buy 50%capital at market
    endif
    endif

    if intradaybarindex >1 and Time < 160001 and C2 then
    if close < down then
    sellshort 50%capital at market
    endif
    endif

    IF LONGONMARKET THEN
    sell at market todayonclose
    endif

    IF shortONMARKET THEN
    sell at market todayonclose
    endif

  2. [verwijderd] 21 februari 2009 16:42
    Er zit helaas een vervelende fout in BackTestProgramma van ChartNet. Iedere trade wordt aan het einde van dag gesloten. Jammer genoeg is ChartNet soms niet te stoppen c.q. te programmeren aan het einde van de dag zodat er trades doorlopen over meerdere dagen hetgeen niet te bedoeling is.

    Versie OBS met 2 bars Reversal:

    ---------------------------> code begint na deze regel
    if intradayBarindex = 1 then
    up = highest[1](high)
    down=lowest[1](low)
    endif

    StopLong = 0

    if Close < Down then
    StopLong =StopLong +1
    If Close{1} < down then
    StopLong =StopLong+1
    endif
    endif

    StopShort=0

    if Close > Up then
    StopShort =StopShort +1
    If Close{1} > Up then
    StopShort =StopShort+1
    endif
    endif

    if intradaybarindex >0 and Time < 160001 then
    if close > up then
    buy 50%capital at market
    endif
    endif

    if intradaybarindex >1 and Time < 160001 then
    if close < down then
    sellshort 50%capital at market
    endif
    endif

    IF LONGONMARKET and StopLong = 2 THEN
    sell at market
    endif

    IF shortONMARKET and StopShort = 2 THEN
    sell at market todayonclose
    endif

    IF LONGONMARKET THEN
    sell at market todayonclose
    endif

    IF shortONMARKET THEN
    sell at market todayonclose
    endif

    -------------------------------> einde code

    Tom

  3. [verwijderd] 21 februari 2009 17:11
    Dan maar zo: 2 BarsReversal einde van de dag sluiting.

    if intradayBarindex = 1 then
    up = highest[1](high)
    down=lowest[1](low)
    endif

    StopLong = 0

    if Close < Down then
    StopLong =StopLong +1
    If Close{1} < down then
    StopLong =StopLong+1
    endif
    endif

    StopShort=0

    if Close > Up then
    StopShort =StopShort +1
    If Close{1} > Up then
    StopShort =StopShort+1
    endif
    endif

    if intradaybarindex >0 and Time < 160001 then
    if close > up then
    buy 50%capital at market
    endif
    endif

    if intradaybarindex >1 and Time < 160001 then
    if close < down then
    sellshort 50%capital at market
    endif
    endif

    IF LONGONMARKET and StopLong = 2 THEN
    sell at market
    endif

    IF shortONMARKET and StopShort = 2 THEN
    buy at market todayonclose
    endif

    IF LONGONMARKET THEN
    sell at market todayonclose
    endif

    IF shortONMARKET THEN
    buy at market todayonclose
    endif

  4. [verwijderd] 21 februari 2009 17:51
    Final Cut Pimping OBS to PingPing
    Indien een Openings positie wordt gesloten tijdens de dag worden er geen trades meer gedaan. Meestal komt dit voor in een zijwaartse markt.First hit is Sit Down.

    ------------------------------------>

    if intradayBarindex = 1 then
    up = highest[1](high)
    down=lowest[1](low)
    Marker =0
    endif

    ParSarLow= lowest[5](low)
    StopLong = 0

    if Close < Down then
    StopLong =StopLong +1
    If Close{1} < down then
    StopLong =StopLong+1
    endif
    endif

    StopShort=0

    if Close > Up then
    StopShort =StopShort +1
    If Close{1} > Up then
    StopShort =StopShort+1
    endif
    endif

    if intradaybarindex >0 and Time < 160001 and Marker < 1 then
    if close > up then
    buy 50%capital at market
    endif
    endif

    if intradaybarindex >1 and Time < 160001 and Marker < 1 then
    if close < down then
    sellshort 50%capital at market
    endif
    endif

    IF LONGONMARKET and Close < Up THEN
    sell at market
    Marker=1
    endif

    IF LONGONMARKET and Close < ParSarLow THEN
    sell at market
    Marker =1
    endif

    IF LONGONMARKET and StopLong = 2 THEN
    sell at market
    Marker =1
    endif

    rem ------------------------------------------------------------------------------------->

    IF shortONMARKET and Close > Down THEN
    sell at market
    Marker =1
    endif

    IF shortONMARKET and StopShort = 2 THEN
    buy at market todayonclose
    Marker =1
    endif

    IF LONGONMARKET THEN
    sell at market todayonclose
    Marker =1
    endif

    IF shortONMARKET THEN
    buy at market todayonclose
    Marker =1
    endif

  5. [verwijderd] 22 februari 2009 14:57
    Willem,

    Zitten nogal wat fouten in de codering die ik heb doorgegeven bij deze de gecorrigeerde. Zijn niet echt fouten maar coderingen stonden op de verkeerde plaats. Zag grote verschillen tussen de ChartNet versie en de MetaStock versie. Met deze versie loopt MetaStock gelijk met de ChartNet variant dus kunnen we aannemen dat het nu goed is.

    if intradayBarindex = 1 then
    up = highest[1](high)
    down=lowest[1](low)
    Marker =0
    endif

    StopLong = 0

    if Close < Down then
    StopLong =StopLong +1
    If Close{1} < down then
    StopLong =StopLong+1
    endif
    endif

    StopShort=0

    if Close > Up then
    StopShort =StopShort +1
    If Close{1} > Up then
    StopShort =StopShort+1
    endif
    endif

    if intradaybarindex >0 and Time < 160001 and Marker < 1 then
    if close > up then
    buy 100%capital at market
    sell at market todayonclose

    IF LONGONMARKET and Close < Down THEN
    sell at market
    Marker=1
    endif

    IF LONGONMARKET and StopLong = 2 THEN
    sell at market
    Marker =1
    endif

    IF LONGONMARKET THEN
    sell at market todayonclose
    Marker =1
    endif

    endif
    endif

    if intradaybarindex >1 and Time < 160001 and Marker < 1 then
    if close < down then
    sellshort 100%capital at market
    buy at market todayonclose
    Marker = 1
    IF ShortONMARKET and High > Up then
    buy at market
    Marker =1
    endif

    IF ShortONMARKET and Close > Up THEN
    buy at market
    Marker =1
    endif

    IF ShortONMARKET and StopShort = 2 THEN
    buy at market todayonclose
    Marker =1
    endif


    IF ShortONMARKET THEN
    buy at market todayonclose
    Marker =1
    endif
    endif
    endif

  6. [verwijderd] 22 februari 2009 16:01
    Zou verder de posities buiten de openingsrange in de gaten houden erboven eronder is gewoon sluiten.
    Verder heb ik een methode ingebouwd dat als een openingstrade is gesloten er geen trades meer plaatsvinden je zou deze kunnen uitschakelen.
    Bouw later wel de stukjes er aan de groen en de rode mutsen.

    Week 08: Grafiek
  7. [verwijderd] 23 februari 2009 17:26
    Heb die OBS in 2 schermen gesplitst tot het moment dat ChartNet met een andere oplossing komt. Scherm Long en Scherm Short. Dit is scherm Short

    C1=Time < 160001
    C2 =Close< WilderAverage[58](close)

    if intradayBarindex =1 then
    up = highest[2](high)
    down=lowest[2](low)
    endif

    StopShort=0

    if Close > Up then
    StopShort =StopShort +1
    If Close[1] > Up then
    StopShort =StopShort+1
    endif
    endif

    if intradaybarindex >1 and C1 and C2 then
    if close < down then
    sellshort 100%capital at market
    buy at market todayonclose
    endif
    endif

    IF ShortONMARKET and StopShort = 2 then
    buy at market
    endif

    IF ShortONMARKET and Close > Up THEN
    buy at market
    endif

  8. [verwijderd] 23 februari 2009 17:33
    Dit is scherm 2 Long gedeelte 2 schermen openen en veilig stellen als Template.
    Weet niet of je kan zeggen dat 19% + 38%= 57%
    is

    C1=Time < 160001
    C2 =Close> WilderAverage[58](close)

    if intradayBarindex =1 then
    up = highest[2](high)
    down=lowest[2](low)
    endif

    StopLong = 0

    if Close < Down then
    StopLong =StopLong +1
    If Close[1] < down then
    StopLong =StopLong+1
    endif
    endif

    if intradaybarindex >0 and C1 and C2 then
    if close > up then
    buy 100%capital at market
    sell at market todayonclose
    endif
    endif

    IF LONGONMARKET and StopLong = 2 THEN
    sell at market
    endif

    IF LONGONMARKET and Close < Down THEN
    sell at market
    endif

40 Posts
Pagina: 1 2 »» | Laatste |Omhoog ↑

Meedoen aan de discussie?

Word nu gratis lid of log in met je emailadres en wachtwoord.