REM XARONS PIVOT-TRIGGER REM ******************** REM FTSE VARIANTE REM PIVOT-TRIGGER ermitteln highD = (high+High[1]+High[2])/3 lowD = (low+low[1]+low[2])/3 piv = (high+low+close)/3 longtrigger = ((2*piv)-lowD) shorttrigger = ((2*piv)-highD) REM Spread des Underlyings spread = 2 REM ************************ REM Gewinn und Verlust heute REM ************************ REM 1. LONGTRIGGER wurde ausgelöst / SHORTTRIGGER nicht if high > longtrigger[1] and low > shorttrigger[1] then REM ** Open schon über Longtrigger ?? ** if open>longtrigger[1] then gv = 0 REM ** Wenn nicht, dann... ** else gv = (close-longtrigger[1])-spread endif REM 2. SHORTTRIGGER wurde ausgelöst / LONGTRIGGER nicht elsif high> Position ausgestoppt :-( elsif high>longtrigger[1] and lowshorttrigger[1] and open