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.