calculateonlastbars countofshortshares drawonlastbaronly countoflongshares intradaybarindex currentdayofweek estimatedvolume countofposition strategyprofit cumulateorders crosses under weightedclose opendayofweek positionprice currentsecond shortonmarket typicalprice nocashupdate tomorrowopen currentmonth longonmarket positionperf crosses over currentyear preloadbars currenttime nextbaropen equityframe medianprice customclose currenthour roundeddown pointvalue flatbefore set target tradeprice openminute tradeindex totalprice roundedup sellshort contracts flatafter yesterday %trailing pointsize openmonth ptrailing undefined dayofweek $trailing timeframe exitshort openhour opentime set stop perpoint screener trailing contract standard ticksize opendate coloured pipvalue barindex defparam onmarket openyear minutes openday pprofit default pipsize %profit cumsum return profit dclose shares market downto target minute volume square elsif share range endif while break dopen %stop round dhigh today month ploss graph close style limit %loss $loss Serif high quit then dlow open date sqrt sell bold time days call wend once lots loss hour cash loss else stop atan year next sin cos abs min buy mod max for tan rem log low xor day lot sgn exp not and if do as by or at