Strategy switching from Long to Short is OK.
switching from Long to Close fails...
which Strategy should i use to go to Cash?
going long i use this code:
if condition is true{
if (!Strategy.isLong() ( {
Strategy.doLong (....
}
} else {
if(!Strategy.CLOSE()) {...
Strategy.CLOSE(....
}
}
continue......
appreciate any help or insight.
thank you
peter.
switching from Long to Close fails...
which Strategy should i use to go to Cash?
going long i use this code:
if condition is true{
if (!Strategy.isLong() ( {
Strategy.doLong (....
}
} else {
if(!Strategy.CLOSE()) {...
Strategy.CLOSE(....
}
}
continue......
appreciate any help or insight.
thank you
peter.
Comment