View Single Post
  #7 (permalink)  
Old 05-27-2007, 05:48 AM
ryanklefas's Avatar
ryanklefas ryanklefas is offline
Senior Member
 
Join Date: Apr 2006
Location: USA
Posts: 438
ryanklefas is on a distinguished road
Quote:
Originally Posted by lowphat
one way is to declair a bool at the top or in init? to kill it after one trade if it won or lost but there is prolly a better way
then hitting the reset button i would think should start it over to make one trade again
int init()
bool stoptrade=false
_____________________


if (stoptrade==false)
{
if (logic)sell
if (logic)buy
stoptrade=true
}
Simple. And it could work. Then you could reset the boolean when a new day starts, at say:

Hour()==0 and Minute()==0.
__________________
"Don't work harder, work smarter." -- my Java professor

Advertise on The All New FireCell Network
"Where online investing makes sense"

Coder for Hire:
http://firecell.info
Reply With Quote