function run(){ int dist = 24; vars high = series(priceHigh(0 - dist / 2)); var lasthigh = MaxVal(high,dist); vars low = series(priceLow(0 - dist / 2)); var lastlow = MinVal(low,dist); if(priceHigh(0) == lasthigh) enterShort(); if(priceLow(0) == lastlow) enterLong(); }
Gamestudio download | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de