2010年3月19日 星期五

無 bug 的 this bar

variables : mkp(0)

If mkp = 0 then 
 if XXXX > low then 
  sell this bar at XXXX or higher 
  sell this bar at XXXX or lower 
 else if YYYY < high then
    buy this bar at YYYY or higher
    buy this bar at YYYY or lower
 end if
end if


If mkp = 1 then
 if XXXX > low then 
  sell this bar at XXXX or higher 
  sell this bar at XXXX or lower 
 end if 
end if 

If mkp = -1 then
 if YYYY < high then
  buy this bar at YYYY or higher
  buy this bar at YYYY or lower
 end if
end if
mkp = marketposition

沒有留言: